feat: Add Valkey Sentinel & HAProxy support in High Availability setup.#137
feat: Add Valkey Sentinel & HAProxy support in High Availability setup.#137khtee wants to merge 5 commits intovalkey-io:mainfrom
Conversation
|
Nice work! I have some notes/questions:
|
Good points! Will work on both improvements. |
|
Good job, I have some questions too, Also, would that make sense to run sentinel as a side container in the replica STS pods ? |
|
Thank you @khtee can't wait to get this merged in 🙏 |
I got confused, thinking |
@dmaes I guess when you suggest to implement HAproxy, it's for sentinel incompatible clients workloads ? |
Added following enhancements.
|
That's correct. The truly kubernetes-native way would probably be to have a sentinel-master Service, using a |
Signed-off-by: KHTee <teekahhui@hotmail.com>
Signed-off-by: KHTee <teekahhui@hotmail.com>
Co-authored-by: Dieter Maes <dieter.maes@dmaes.be> Signed-off-by: khtee <75174583+khtee@users.noreply.github.com>
Signed-off-by: KHTee <teekahhui@hotmail.com>
Allow HAProxy to retry DNS resolution during startup when pending for Valkey node to start. Essentially it does the following - Try to use the last known IP. - If none, query the libc resolver (DNS). - If that fails, resolve to none (meaning the server has no IP address yet, but HAProxy won't crash) and wait for the runtime resolver health-checks to pick up the DNS correctly. Signed-off-by: KHTee <teekahhui@hotmail.com>
Feat #22