-
Notifications
You must be signed in to change notification settings - Fork 359
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
Redis Cluster Persistence #77
Comments
Hi @rhefner1, One quick question, do you have redis-operator/example/redisfailover/persistant-storage-no-pvc-deletion.yaml Lines 10 to 11 in 7bba835
|
@jchanam Yes, I do. Here's the file I'm using (templated for use with Helm): https://gist.github.com/rhefner1/5ea5e547743dff47f200494d17961698#file-redis-yaml-L49 And |
Hi! I've found the issue. It's needed to say to Redis that it has to save the data on disk. More info: https://redis.io/topics/persistence I'll set a default It's very important to have into account that some data loss could happen. |
Hi @rhefner1, Have you tested the new version proposed? It's available here: quay.io/spotahome/redis-operator:devops-819-add-configuration-to-persist-data Thanks! |
@jchanam just tried it out and it looks good to me! Thanks! |
So I have a cluster set up running on the latest 0.5.0 version (thanks for that release!). I have persistence enabled in the config and I can confirm that the persistent volume claims are created as expected. However:
Actual behaviour
When all three Redis nodes (data nodes, not sentinel) disappear, the cluster loses all state. Here's what happens:
Expected behaviour
When the cluster recovers, the counter resumes from 50.
So I have a few questions:
Thanks in advance! Great project! cc: @jchanam
The text was updated successfully, but these errors were encountered: