Ampere Computing Logo
Contact Sales
Ampere Computing Logo
DSB Social Network - Transition and Tuning Guide
DSB Social Network - Transition and Tuning Guide

IntroductionAcquire and Navigate DeathStar Bench Source CodeUnderstanding Scope of Changes to the Source CodePorting Dependent Binaries: Replacing AMD64 Binaries with ARM64 binariesPorting Bitnami Containers: “mongodb-sharded”Porting Bitnami Containers: “redis-cluster”Porting Bitnami Containers: “mcrouter”Porting DeathStarBench Source CodeGenerating Docker Images from Social Network source codeSetting up Kubernetes Cluster on BareMetal ServersLaunch Social network module on BareMetal ServersRun Workload From Remote Client on ClusterAppendix
DSB Social Network - Transition and Tuning Guide

Porting Bitnami Containers: “mongodb-sharded”

Step 1:

  • Clone the bitnami containers repository and open “mongodb-sharded” Dockerfile for editing.
git clone https://github.com/bitnami/containers.git vim containers/bitnami/charts/mongodb-sharded/6.0/debian-11/Dockerfile

Step 2:

  • Update location of the S3 Bucket or Repo mentioned previously in the Dockerfile
  • Replace the Stacksmith URL given in the Dockerfile with the custom URL of the S3 Bucket or Repository where the packages have been stored
  • Other changes include:
    • Update Line 14: OS_ARCH="${TARGETARCH:-amd64}" \ 🡪 OS_ARCH="${TARGETARCH:-arm64}" \
    • Update: "Bitnami” -> “https://anuphal.s3.amazonaws.com/${COMPONENT}.tar.gz”
    • Update Line 34: curl -SsLf "Bitnami " -O ; \
    • Delete Line 36: sha256sum -c "${COMPONENT}.tar.gz.sha256" && \
    • Update Line 38: rm -rf "${COMPONENT}".tar.gz{,.sha256} ; \ 🡪 rm -rf "${COMPONENT}".tar.gz; \

Step 3:

  • Build the mongodb-sharded docker image (Refer Appendix B)
  • Push to Dockerhub or private repository (Refer Appendix B)

Step 4:

  • In the already cloned repository of “containers”, we will now build “bitnami-shell”
cd containers/bitnami/bitnami-shell/11/debian-11 vim Dockerfile
  • Update Line 14: OS_ARCH="${TARGETARCH:-amd64}" \ 🡪 OS_ARCH="${TARGETARCH:-arm64}" \
  • Save the changes
  • Build the bitnami-shell docker image (Refer Appendix B)
  • Push to Dockerhub or private repository (Refer Appendix B)

Step 5:

  • In the already cloned repository of bitnami “containers”, we will now build “mongodb-exporter”. This package is originally from github repository “percona” and forked by “bitnami”
cd containers/bitnami/mongodb-exporter/0/debian-11 vim Dockerfile
  • Update Line 14: OS_ARCH="${TARGETARCH:-amd64}" \ 🡪 OS_ARCH="${TARGETARCH:-arm64}" \

  • Update: "Bitnami ” -> “https://anuphal.s3.amazonaws.com/${COMPONENT}.tar.gz”

  • Delete Line 29: curl -SsLf "Bitnami " -O ; \

  • Delete Line 31: sha256sum -c "${COMPONENT}.tar.gz.sha256" && \

  • Update Line 33: rm -rf "${COMPONENT}".tar.gz{,.sha256} ; \ 🡪 rm -rf "${COMPONENT}".tar.gz; \

  • Save the changes

  • Build the mongodb-exporter docker image (Refer Appendix B)

  • Push to Dockerhub or private repository (Refer Appendix B)


Step 6:

  • Modify the mongodb-sharded helm chart, tar the package and copy to DeathStarBench
cd charts/bitnami/mongodb-sharded vim values.yaml
  • Modify following lines (Use your Dockerhub username instead of anuphal. Please note that line numbers may differ in latest updates in Github repository):
    • Line 77: repository: anuphal/mongodb-sharded
    • Line 78: tag: latest
    • Line 244: repository: anuphal/bitnami-shell
    • Line 245: tag: latest
    • Line 475-479: enabled: false (This is for persistence.enabled=True)
    • Line 1245: enabled: false (This is for persistence.enabled=True)
    • Line 1539: repository: anuphal/mongodb-exporter
    • Line 1540: tag: latest
cd .. tar czvf mongodb-sharded-6.0.1.tgz mongodb-sharded/ git clone https://github.com/delimitrou/DeathStarBench.git #If an older version of mongodb-sharded-x.y.z.tgz already exists in the charts directory, #then please delete it and keep the new tgz in its place mv mongodb-sharded-6.0.1.tgz DeathStarBench/socialNetwork/helm-chart/socialnetwork/charts/
Next: Porting Bitnami Containers: “redis-cluster”
Previous: Porting Dependent Binaries: Replacing AMD64 Binaries with ARM64 binaries
Created At : May 10th 2023, 6:14:41 pm
Last Updated At : July 31st 2023, 4:55:20 pm
Ampere Logo

Ampere Computing LLC

4655 Great America Parkway Suite 601

Santa Clara, CA 95054

image
image
image
image
 |  |  |  |  |  | 
© 2023 Ampere Computing LLC. All rights reserved. Ampere, Altra and the A and Ampere logos are registered trademarks or trademarks of Ampere Computing.
This site is running on Ampere Altra Processors.