Skip to content

Files

Latest commit

4dd92fa · Dec 8, 2023

History

History
30 lines (23 loc) · 932 Bytes

README.md

File metadata and controls

30 lines (23 loc) · 932 Bytes

Kubernetes

HA KeyDB (Redis drop-in replacement)

Topology

  • 2x KeyDB (Redis) pods (with Active Replication)
  • 3x TCPProxy pods

The KeyDBs will be connected between each other using Active Replication and the TCPProxies will be used to load balance the traffic between the KeyDBs.

Deploying the example

  • Deploy the KeyDBs using the following command:
cd examples/kubernetes
kubectl apply -f keydb/*
  • Deploy the TCPProxies using the following command:
cd examples/kubernetes
kubectl apply -f tcp-proxy/*

Connecting to HA KeyDB

  • To connect to the HA KeyDB, you have to connect to the TCPProxy service and port 6379

That's it!

You now have a HA KeyDB setup with Active Replication and TCPProxy load balancing.