-
Notifications
You must be signed in to change notification settings - Fork 333
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create HA Redis deployment as an option #41
Comments
Probably also want to evaluate the Redis Operator and anything else that looks promising. |
Some thoughts.
More information: Regarding the Operators: there are several implementation, https://github.com/spotahome/redis-operator seems to be most starred. It allows to easily deploy Redis replicas with Sentinels saving us from having to configure everything manually. The downside is that clients have to support Sentinel, and because of autoconfiguration it may be not so easy to workaround that with HAProxy. Also there's Helm chart with similar setup (3 Redises + 3 Sentinels). |
Yeah, I didn't do a good job of explaining, sorry :( I should have said "HA proxy + multiple redis instances set up for sentinel" or the like. We'll need the redis-sentinel for the automatic failover and resiliency, and the HA proxy (or a k8s resource that can do something similar) so that the clients don't have to be 'redis-sentinel' clients, but just regular redis clients to keep this a 'drop-in' replacement. Something like this: https://karlstoney.com/2015/07/23/redis-sentinel-behind-haproxy/ If there's a Redis operator that can get us along the path, that's probably what we want to use. |
Redis Operator definitely simplifies Redis management in k8s. If we decide to go with it then I see several ways to still live with 'non-sentinel' client.
|
I like the first option, provided it has reasonable performance characteristics. Thanks for all the research! |
PR #48 |
Basic work here would be something like:
redis-sentinel
to justredis
and update the OM codebase to match this change (so future users won't be confused by the naming)deployments/k8s/redis-deployment.json
/redis-service.json
andinstall/yaml/01-redis.yaml
that stands up a HA redis deployment that users can elect to use if they need it.The text was updated successfully, but these errors were encountered: