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

Add flags to configure controller parameters #492

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

sushrk
Copy link
Contributor

@sushrk sushrk commented Nov 14, 2024

Issue #, if available:
#451 partly

Description of changes:

  1. Add support to configure controller parameters via flags, flags added
nodeWorkerCount: The number of node workers, default 10
userClientQPS: The EC2 user client QPS rate, default 12
userClientBurst: The EC2 user client burst limit, default 18
instanceClientQPS: The EC2 instance client QPS rate, default 12
instanceClientBurst: The instance client burst limit, default 18
apiServerQPS: The API server client QPS rate, default 20
apiServerBurst: The API server client burst limit, default 30
maxPodConcurrentReconciles: The maximum number of concurrent reconciles for pod controller, default 20
maxNodeConcurrentReconciles: The maximum number of concurrent reconciles for node controller, default 10

Customers can configure these values via controller flags eg here when running the controller on dataplane or non-EKS CP. Controller on EKS will use the defaults defined above.

- --node-mgr-workers=xx
- --user-client-qps=xx
- --user-client-burst=xx
- --instance-client-qps=xx
- --instance-client-burst=xx
- --apiserver-qps=xx
- --apiserver-burst=xx
- --max-pod-reconcile=xx
- --max-node-reconcile=xx

Verified controller is able to run, SGPP tests passed:

Ran 18 of 22 Specs in 1190.175 seconds
SUCCESS! -- 18 Passed | 0 Failed | 0 Pending | 4 Skipped
PASS
  1. Changed to r.Log.Info("branch ENI cool down period not configured in amazon-vpc-cni configmap, will retain the current cooldown period", "cool down period", curCoolDownPeriod) to avoid logging benign errors in the controller and make it easier to parse error logs.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@sushrk sushrk requested a review from a team as a code owner November 14, 2024 08:15
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.

1 participant