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

feat(controller): Allow to modify time related configurations in leader election #5234

Merged
merged 1 commit into from
Feb 26, 2021
Merged

feat(controller): Allow to modify time related configurations in leader election #5234

merged 1 commit into from
Feb 26, 2021

Conversation

terrytangyuan
Copy link
Member

@terrytangyuan terrytangyuan commented Feb 26, 2021

One of our large clusters were under high load the other day and the current lease/leader configuration needs to be adjusted to avoid frequent leader election and reduce etcd’s pressure under such load. Otherwise, the etcd server would not be able to handle too many requests and fail with error like Failed to update lock: etcdserver: too many requests, which leads to periodically restart of the controller.

This PR exposes relevant configurations via environment variables.

Signed-off-by: terrytangyuan terrytangyuan@gmail.com

Checklist:

…er election

Signed-off-by: terrytangyuan <terrytangyuan@gmail.com>
@terrytangyuan
Copy link
Member Author

terrytangyuan commented Feb 26, 2021

cc @sarabala1979 Could you take a look at this too?

@sarabala1979 sarabala1979 merged commit bd4b46c into argoproj:master Feb 26, 2021
@terrytangyuan terrytangyuan deleted the expose-leader-election-config branch February 26, 2021 20:31
@simster7 simster7 mentioned this pull request Mar 1, 2021
32 tasks
simster7 pushed a commit that referenced this pull request Mar 2, 2021
…er election (#5234)

Signed-off-by: terrytangyuan <terrytangyuan@gmail.com>
@simster7 simster7 mentioned this pull request Mar 8, 2021
@simster7 simster7 mentioned this pull request Apr 19, 2021
50 tasks
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

Successfully merging this pull request may close these issues.

None yet

2 participants