-
Notifications
You must be signed in to change notification settings - Fork 807
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
Allow overriding node attach limits as driver CLI parameter #347
Comments
Not sure how is this going to work if the worker nodes are of different instance type where each has a different attach limit. I think this should be a per node attributes. |
The Are you referring to how will this be set during deploy time? |
The flow of this code is: csi-ebs-driver-on-node --> store-limit-> CSINode --> scheduler uses CSINode object during counting volumes. So it is perfectly possible to support this on per-node basis. It is another problem, how will tools like kops will surface this configuration parameter though.. |
Probably I missed something. How could cluster operator set this new CLI parameter differently for drivers on different node? Since it is deployed as daemon set, I am assuming the pods in daemon set are identical |
Could this be solved by ensuring that daemonset that targets the same kind of nodes use one selector while other kind of nodes uses another selector? I do not think it should be too difficult to do for a kube admin who is running into these kind of issues... |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
/remove-lifecycle stale |
On EC2 Nitro instances, the number of attachable EBS volumes is not a fixed value that can be calculated and supplied when the CSI driver is launched, regardless of instance type, that is correct throughout the lifetime of the node. Because the formula is MaxEbsAttachableVolumes = MaxAttachments - AttachedENIs, where MaxAttachments depends on the EC2 instance type, the value must be recalculated each time a new ENI is attached or detached from the instance. |
Agree that this proposal is very suboptimal |
Designing a generic mechanism to calculate number of attachments as shared resource is kind of a tricky problem. There are various ways overrides can be configured such as pre-allocating a number for ENIs or percentage of attachments(and subtracting it from max). It would be nice if AWS had a API for determining |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
/remove-lifecycle stale |
Given the fact that prior CSI there was no solution that allowed overriding the volume limits per node but only globally in the whole cluster (https://v1-18.docs.kubernetes.io/docs/concepts/storage/storage-limits/#custom-limits), and given the above discussed complexities: Would it make sense to proceed with the suggested CLI flag for now until a more sophisticated solution can be implemented? This way, at least the existing clusters that were leveraging the |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Stale issues rot after 30d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
This is fixed #522 |
Given all the complexities around how limits will be calculated on the node, it is a good idea to just allow an admin to override the limits when starting the csi-ebs driver.
The text was updated successfully, but these errors were encountered: