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

Run Workload From Remote Client on Cluster

  • Login to the external client via ssh
# Run the following commands to create the workload setup git clone https://github.com/ahalarnkar-ampere/deathstarbench-ah.git cd deathstarbench-ah && 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 ../../ # Build for wrk on arm64 fails for x86. Use #ifdef to skip this x86 header for aarch64 sed -i 's/#include <x86intrin.h>/#ifdef __x86_64__\n #include <x86intrin.h>\n#endif\n/g' src/hdr_histogram.c # Retrieve the LoadBalancer IP address to be used in wrk command on Line 15 loadbalancerip=$(kubectl get all -A | grep LoadBalancer | awk '{print $5}') #Execute wrk binary with options ./wrk -t10 -c1000 -d5m -R3000 -L -s ./scripts/social-network/mixed-workload.lua http://$loadbalancerip:8080

  • The workload scripts are available on this path,
cd deathstarbench-ah/socialNetwork/wrk2/scripts/social-network

DSB code example 18 The social-network workload scripts. Note: The above image is for reference purpose only


  • The usage of the wrk command can be best understood here
    • Also, pasted below for quick reference

DSB code example 19

Next: Appendix
Previous: Launch Social network module on BareMetal Servers
Created At : May 24th 2023, 6:51:43 pm
Last Updated At : July 31st 2023, 5:01:51 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.