Skip to content
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

any plans to change : current implementation is limited to reconfiguring one Redis replication at a time #13

Closed
cameronbraid opened this issue Feb 23, 2020 · 2 comments

Comments

@cameronbraid
Copy link
Contributor

The readme states

One Redis Operator deployment is designed to rule multiple Redis replication setups. However you should bear in mind that current implementation is limited to reconfiguring one Redis replication at a time

First of all to clarify what this means. Am I correct in saying that I cant create two

apiVersion: k8s.amaiz.com/v1alpha1
kind: Redis
...

custom resources and have the operator manage them both ?

Are there plans to remove this limitation ?

@nrvnrvn
Copy link
Collaborator

nrvnrvn commented Feb 27, 2020

This limitation means that you can have two kind: Redis resources configured and deployed but if you change something to both of them at the same time then the operator will reconfigure them one after another, but not concurrently or in parallel.

So, technically it means that when the Redis controller is added to the manager by default it allows only one reconciliation to run at a time. And if for instance, you need to manage 100 Redis'es using a single controller then the reconciliation requests may queue up depending on how long it takes time to run a single cycle. In this case you definitely would want to run multiple reconciliation cycles concurrently.

But again, it does not mean you are bound to only one Redis per Redis operator. The fact that there is no concurrency in managing multiple Redis'es is just something to bear in mind.

I've added it to the v1 roadmap to make it configurable.

See:

c, err := controller.New("redis-controller", mgr, controller.Options{Reconciler: r})

if options.MaxConcurrentReconciles <= 0 {
options.MaxConcurrentReconciles = 1
}

@nrvnrvn
Copy link
Collaborator

nrvnrvn commented Jun 15, 2022

superseded by nrvnrvn/k8dis#2

@nrvnrvn nrvnrvn closed this as completed Jun 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants