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
Disable leader-election #8919
Comments
@fanminshi: This issue is currently awaiting triage. If Ingress contributors determines this is a relevant issue, they will accept it by applying the The Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
thanks for your report. I have opened a PR to use LeaseLock for election. #8921 |
@tao12345666333 thanks for the PR. However, the new PR will redirect writes to |
Hahaha, yes. |
Of course, adjusting the time of ttl is also a solution |
|
I think we should add a feature flag such as
https://kubernetes.io/docs/reference/command-line-tools-reference/kube-scheduler/ |
The Kubernetes project currently lacks enough contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
/remove-lifecycle stale |
@ensonic @fanminshi do you mind opening a PR for it? Thanks! |
/help |
@rikatz: GuidelinesPlease ensure that the issue body includes answers to the following questions:
For more details on the requirements of such an issue, please see here and ensure that they are met. If this request no longer meets these requirements, the label can be removed In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
In a single node k8s setup, there is no need to enable leader-election inside the ingress-controller. The issue with constant leader election lease renewal is that it adds unwanted writes to etcd. In return, those writes can reduce disk life-span on small and cheap edge device.
By analyzes etcd PUT operation, I noticed the following PUT within 8 minutes span.
Specially, I would like to tune those parameters via command-line tool.
ingress-nginx/internal/ingress/controller/status.go
Lines 117 to 124 in c85765a
Or simply turn it off via a command line flag.
Thanks,
The text was updated successfully, but these errors were encountered: