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

[issue] regarding horizontal scaling for operators #2836

Open
ragarwalll opened this issue May 22, 2024 · 1 comment
Open

[issue] regarding horizontal scaling for operators #2836

ragarwalll opened this issue May 22, 2024 · 1 comment

Comments

@ragarwalll
Copy link

ragarwalll commented May 22, 2024

when we deploy any operator, lets say I have scaled upto 2 replicas.
The watcher will basically watch the specified path/resources in both the replicas right?

If yes, this in turn means that it might happen that both "reconciles" would be called in both pod, right?
So, my question here is how do I manage efficiency for operators. In recent weeks, one of the operators I build is taking heavy traffic and I am looking for addressing this issue is the right way.

Can you please suggest how do I approach this issue in the best possible way?

@troy0820
Copy link
Member

You can use leader election which can prevent this.

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