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: “redis-cluster”

Requirements:

  • Build bitnami/redis-cluster image for arm64 and push to Docker Hub
  • Build bitnami/redis-exporter image for arm64 and push to Docker Hub

Step 1: Build redis-cluster image from bitnami for arm64

  • Clone the bitnami containers repository and open Dockerfile for editing.
git clone https://github.com/bitnami/containers.git cd containers/bitnami/redis-cluster/7.0/debian-11/ vim Dockerfile

  • Update the Docker file:

    • Update Line 14: OS_ARCH="${TARGETARCH:-amd64}" \ -> OS_ARCH="${TARGETARCH:-arm64}" \
    • Update: "Bitnami ” -> “https://anuphal.s3.amazonaws.com/${COMPONENT}.tar.gz”
    • Delete Line 30: curl -SsLf "Bitnami " -O ; \
    • Delete Line 32: sha256sum -c "${COMPONENT}.tar.gz.sha256" && \
    • Update Line 34: rm -rf "${COMPONENT}".tar.gz{,.sha256} ; \ -> rm -rf "${COMPONENT}".tar.gz; \
  • Build Dockerfile (Refer Appendix B)

  • Push to Dockerhub (Refer Appendix B)


Step 2: Build redis-exporter image from bitnami for arm64

  • Clone the bitnami containers repository from GitHub: Let’s build from here and open Dockerfile for editing.
git clone https://github.com/bitnami/containers.git cd containers/bitnami/redis-exporter/1/debian-11 vim Dockerfile
  • Update the 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; \
  • Build from Dockerfile and push image to Docker Hub (Refer Appendix B)


Step 3 (Modify redis-cluster chart from bitnami for ARM64):

  • Clone the bitnami charts repository and open “bitnami/charts/bitnami/redis-cluster/values.yaml” for editing
git clone https://github.com/bitnami/charts.git vim bitnami/charts/bitnami/redis-cluster/values.yaml
  • Search for the key “repository:” and replace its value from “bitnami” to “anuphal” or your
    • Search for key “tag:” and replace its value to “latest”
    • If PVC (PersistentVolumeClaim) is not set for the cluster, then search for keyword “persistence” and change its member “key: value” from enabled: true to enabled: false
Next: Porting Bitnami Containers: “mcrouter”
Previous: Porting Bitnami Containers: “mongodb-sharded”
Created At : May 10th 2023, 6:29:48 pm
Last Updated At : July 31st 2023, 4:55:59 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.