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

Launch Social network module on BareMetal Servers

  • Confirm if helm was installed correctly in Step 5 of the previous section
helm version

  • Clone DeathStarBench repository from Github and build luajit dependency
git clone https://github.com/amperecomputing/deathstarbench-ah.git cd DeathStarBench && git checkout arm64-port cd socialNetwork/wrk2/deps && rm -rf luajit git clone https://luajit.org/git/luajit.git cd luajit && make && sudo make install && sudo ln -sf luajit-2.1.0-beta3 /usr/local/bin/luajit cd ../../ sed -i 's/#include <x86intrin.h>/#ifdef __x86_64__\n #include <x86intrin.h>\n#endif\n/g' src/hdr_histogram.c make clean make

  • Launch social-network module using helm
cd ../helm-chart/ kubectl create namespace social-network # ************* Status of namespace creation **************# namespace/social-network created 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=false,\ global.memcached.standalone.enabled=true,\ nginx-thrift.replicas=2,mongodb-sharded.shards=2,\ mongodb-sharded.shardsvr.dataNode.replicaCount=1,\ mcrouter.memcached.replicaCount=1,\ global.replicas=2,\ mongodb-sharded.mongos.replicaCount=2 \ --timeout 10m0s & # ************* Installation status **************# NAME: social-network LAST DEPLOYED: Fri Mar 3 12:05:31 2023 NAMESPACE: social-network STATUS: deployed REVISION: 1 TEST SUITE: None #*************************************************# kubectl get nodes -n social-network # ************* Status of Deployed pods **************# ahalarnkar@dsb-client:~/DeathStarBench/socialNetwork/wrk2$ kubectl get pods -n social-network NAME READY STATUS RESTARTS AGE compose-post-service-85567557dd-7d8wd 1/1 Running 0 89s compose-post-service-85567557dd-cgqlv 1/1 Running 0 89s home-timeline-service-cb4b778b4-xhws4 1/1 Running 2 (78s ago) 90s home-timeline-service-cb4b778b4-xz267 1/1 Running 2 (79s ago) 90s jaeger-556cc9fc44-965gq 1/1 Running 0 89s jaeger-556cc9fc44-fx9wk 1/1 Running 0 89s media-frontend-6fd6f7fb8b-4kqmw 1/1 Running 0 88s media-frontend-6fd6f7fb8b-8wl9g 1/1 Running 0 88s media-memcached-8574ffdf8f-p4k4l 1/1 Running 0 88s media-memcached-8574ffdf8f-xt4rr 1/1 Running 0 88s media-service-7f558f6984-7l74s 1/1 Running 0 90s media-service-7f558f6984-qf8kg 1/1 Running 0 90s mongodb-sharded-configsvr-0 1/1 Running 0 90s mongodb-sharded-mongos-547fd58779-927qh 1/1 Running 0 87s mongodb-sharded-mongos-547fd58779-bwltx 1/1 Running 0 87s mongodb-sharded-shard0-data-0 1/1 Running 0 90s mongodb-sharded-shard1-data-0 1/1 Running 0 90s nginx-thrift-5f6f68c5d7-28dw5 1/1 Running 0 87s nginx-thrift-5f6f68c5d7-sfdml 1/1 Running 0 87s post-storage-memcached-788bd7b5c7-f9p49 1/1 Running 0 90s post-storage-memcached-788bd7b5c7-w5jc5 1/1 Running 0 90s post-storage-service-74586fcd45-hkr9p 1/1 Running 0 90s post-storage-service-74586fcd45-xgwhn 1/1 Running 0 90s redis-cluster-readiness-hook 0/1 Completed 0 90s setup-collection-sharding-hook 0/1 Completed 0 57s social-graph-service-6559f8495-bcpz8 1/1 Running 0 88s social-graph-service-6559f8495-fzvrk 1/1 Running 0 88s social-network-redis-cluster-0 1/1 Running 0 90s social-network-redis-cluster-1 1/1 Running 0 90s social-network-redis-cluster-2 1/1 Running 0 89s text-service-75c6874cb9-26jb9 1/1 Running 0 89s text-service-75c6874cb9-vf8vj 1/1 Running 0 89s unique-id-service-9497f6dcd-9k7gj 1/1 Running 0 88s unique-id-service-9497f6dcd-pnrzc 1/1 Running 0 88s url-shorten-memcached-78f5bc6bc7-clrsd 1/1 Running 0 88s url-shorten-memcached-78f5bc6bc7-jdcb6 1/1 Running 0 88s url-shorten-service-5866bc8974-45w28 1/1 Running 0 87s url-shorten-service-5866bc8974-sjvn5 1/1 Running 0 87s user-memcached-78fd8cbfd5-p4k45 1/1 Running 0 87s user-memcached-78fd8cbfd5-qgnbw 1/1 Running 0 87s user-mention-service-7c89b46c97-4dwng 1/1 Running 0 89s user-mention-service-7c89b46c97-jz5jj 1/1 Running 0 89s user-service-cdd57484f-fs7lh 1/1 Running 0 89s user-service-cdd57484f-njhmr 1/1 Running 0 89s user-timeline-service-7755c6bd88-7f8k9 1/1 Running 0 90s user-timeline-service-7755c6bd88-fbj8v 1/1 Running 0 90s #*************************************************#
Next: Run Workload From Remote Client on Cluster
Previous: Setting up Kubernetes Cluster on BareMetal Servers
Created At : May 24th 2023, 6:45:46 pm
Last Updated At : July 31st 2023, 5:01:13 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 is running on Ampere Altra Processors.