-
Notifications
You must be signed in to change notification settings - Fork 366
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
Feature request: Add support for Redis with persistent memory #111
Comments
Hi @marcemq, Thanks for opening the issue! Currently, any PVC can be used in redis failovers. This is done because the redis has the option to add a full PVC template inside it's spec. You can find an example here. Does this covers the needs for using Optane? |
Not entirely, some changes needs to be added, i.e:
|
Correct me please if I'm wrong. After reading the documentation, I see that the following has to be done:
In the case of RedisOperator, all the part of enabling When the preparation part is done, a PVC of the type About the image prepared, it's also a variable, so you can use any redis image that you need to. For example this one: https://github.com/pmem/pmem-redis Where is an example of a redisFailover CR that would potentially use the
Does the operator need to talk directly to the |
Sorry for the statement that I've used, which is confusing 🙊
I wanted to meant that some changes needs to be made in order to use the I've took the liberty to send a PR for it and tested with two provisioners, and worked just fine 😊 🎉 |
Hi @marcemq, After reading the PR, I think that this configuration can be all done via I think it's better to work to add the possibility to make the operator more configurable rather than add code for a very specific use cases. |
Hi there 😊 I've manage to test having
From logs:
I can erase adding the |
Hi @marcemq, It looks it's a problem with the options passed to the redis-server:
For me, instead of addid specific configuration for pmem, I'd rather add the possibility to configure the commands passed to the redises. What do you think? |
I understand that I have queries from the conversation in these both issues:
What will be the best approach? |
Answering my own questions 🙊😊
Also, I've tried to add this command by So, do you know how to pass this command? |
As a resume:
We have two options:
@jchanam what do you think? Do you know any other way to pass this command? |
Hi @marcemq, For me, the goal of changes should be to create the most open option, so it's generic and not attached to a specific product or service. That's why, for me it'd be better to make the commands configurable. |
@marcemq, I've created a branch with the command configurable for both redis and sentinel: https://github.com/spotahome/redis-operator/tree/make-command-configurable You can test the operator with this image: quay.io/spotahome/redis-operator:make-command-configurable Does this cover your needs? |
@jchanam I've tested your branch Are you planning to merge your branch to master? If so, I can send a PR with the deployment used as an example, what do you say?
|
Would be nice that the operator supports usage of persistent memory along with Optane™ DC Persistent Memory hardware too.
So, if a user have access to such hardware, she/he can ask for
persistent volumes
usingpersistent volume claims
which can be provided bypmem-csi
, which stands for Persistent Memory Container Storage Interface DriverThe text was updated successfully, but these errors were encountered: