Skip to content

Sentinel Kubernetes Setup #2536

Answered by mp911de
S-Lutz asked this question in Q&A
Oct 25, 2023 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

Fully dynamic environments require lookups prior to running your application. While there is certainly some dynamic possible, when a Sentinel setup gets updated (adding or removing sentinels), it is not possible to fully reconfigure your infrastructure while your application is running.

If you do not require Master/Replica functionality (replica reads), then I suggest using a service name and hide additional sentinels behind that service (Load-balancer-like). Lettuce queries in Sentinel mode a sentinel to obtain the master IP address upon connect and reconnect.

That seems the easiest approach for now.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@S-Lutz
Comment options

Answer selected by S-Lutz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants