-
We will be using KeyDB (https://keydb.dev/) as our upstream Redis
- KeyDB supports Active Replication (https://docs.keydb.dev/docs/active-rep)
- 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.
- 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/*
- To connect to the HA KeyDB, you have to connect to the TCPProxy service and port 6379
You now have a HA KeyDB setup with Active Replication and TCPProxy load balancing.