-
Notifications
You must be signed in to change notification settings - Fork 3k
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
ipam/crd: Add new flag for configuring custom resource update rate #23017
ipam/crd: Add new flag for configuring custom resource update rate #23017
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! I'm overall fine with the proposal. I think we should reconsider the name though.
Also: Should we add Helm variables for this as well?
027318d
to
1669d48
Compare
@gandro Thanks for the comment! Please take another look. |
1669d48
to
d1af6e4
Compare
/test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me, thank you!
In crd ipam modes, the current agent side ciliumnode update rate is hardcoded as 15 seconds, which might be too big in burst pod creation cases. e.g. when a large number of pods are scheduled to a single node, let's say 25 pods and the `pre-allocate` is set to 5, a maximum of 5 IPs can be allocated every 15 seconds (update of used IPs are rate limited), which causes some pods to wait too long. This commit adds a new agent flag `ipam-cilium-node-update-rate` to configure the ciliumnode custom resource update rate. Signed-off-by: Jaff Cheng <jaff.cheng.sh@gmail.com>
d1af6e4
to
8fea8f1
Compare
/test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice change, thanks
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
In crd ipam modes, the current agent side custom resource update rate is hardcoded as 15 seconds, which might be too big in burst pod creation cases. e.g. when a large number of pods are scheduled to a single node, let's say 25 pods and the
pre-allocate
is set to 5, a maximum of 5 IPs can be allocated every 15 seconds (update of used IPs are rate limited), which causes some pods to wait too long.This commit adds a new agent flag
ipam-cilium-node-update-rate
to configure the ciliumnode custom resource update rate.Signed-off-by: Jaff Cheng jaff.cheng.sh@gmail.com