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 DeathStarBench Source Code

Modifying the source

  • Clone the DeathStarBench source code from GitHub
git clone https://github.com/delimitrou/DeathStarBench.git

  • Search and replace all occurrences of username “yg397” with “anuphal” in the source
cd DeathStarBench/socialNetwork && grep -RiIl yg397 | xargs sed -i 's/yg397/anuphal/g' #### Files changed #### docker/openresty-thrift/xenial/Dockerfile helm-chart/socialnetwork/templates/hooks/mcrouter/post-install-hook.yaml helm-chart/socialnetwork/charts/social-graph-service/values.yaml helm-chart/socialnetwork/charts/url-shorten-service/values.yaml helm-chart/socialnetwork/charts/text-service/values.yaml helm-chart/socialnetwork/charts/nginx-thrift/values.yaml helm-chart/socialnetwork/charts/compose-post-service/values.yaml helm-chart/socialnetwork/charts/user-timeline-service/values.yaml helm-chart/socialnetwork/charts/user-service/values.yaml helm-chart/socialnetwork/charts/user-mention-service/values.yaml helm-chart/socialnetwork/charts/media-frontend/values.yaml helm-chart/socialnetwork/charts/mcrouter/values.yaml helm-chart/socialnetwork/charts/mcrouter/charts/memcached/values.yaml helm-chart/socialnetwork/charts/home-timeline-service/values.yaml helm-chart/socialnetwork/charts/media-service/values.yaml helm-chart/socialnetwork/charts/post-storage-service/values.yaml helm-chart/socialnetwork/charts/unique-id-service/values.yaml Dockerfile

  • Delete existing .tgz charts from location “DeathStarBench/socialNetwork/helm-chart/socialnetwork/charts“
rm -rf DeathStarBench/socialNetwork/helm-chart/socialnetwork/charts/*.tgz
  • Modify other files as required for architecture consistency

socialNetworkDockerfile - Left AMD64 and Right ARM64.png

Installing Charts with “helm”

#Execute command “helm install” to launch pods in namespace “social-network“ kubectl create namespace social-network cd DeathStarBench/socialNetwork/helm-chart helm install social-network ./socialnetwork/ -n social-network --set \ global.mongodb.sharding.enabled=true, \ global.mongodb.standalone.enabled=false, \ global.redis.cluster.enabled=true, \ global.redis.standalone.enabled=false, \ global.memcached.cluster.enabled=true, \ global.memcached.standalone.enabled=false \ --timeout 10m0s watch kubectl get pods -n social-network
Next: Generating Docker Images from Social Network source code
Previous: Porting Bitnami Containers: “mcrouter”
Created At : May 10th 2023, 7:12:20 pm
Last Updated At : July 31st 2023, 4:57:27 pm
Ampere Logo

Ampere Computing LLC

4655 Great America Parkway Suite 601

Santa Clara, CA 95054

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