You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm working with a Kubernetes Custom Resource Definition (CRD) controller. I've noticed that when the controller restarts, it attempts to reconcile all existing Custom Resources (CRs). This process causes a delay in processing newly created CRs.
My questions are:
What are the best practices to mitigate this delay in processing new CRs after a controller restart?
Does the controller-runtime library provide any built-in mechanisms to implement a priority queue or similar functionality to prioritize the processing of new CRs?
If controller-runtime doesn't offer such functionality, what are some effective ways to implement a priority system within the reconciliation loop?
Are there any performance considerations or potential drawbacks to implementing a priority system in a CRD controller?
I'm particularly interested in solutions that can be implemented using Go and the controller-runtime library. Any insights, code examples, or best practices would be greatly appreciated.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm working with a Kubernetes Custom Resource Definition (CRD) controller. I've noticed that when the controller restarts, it attempts to reconcile all existing Custom Resources (CRs). This process causes a delay in processing newly created CRs.
My questions are:
What are the best practices to mitigate this delay in processing new CRs after a controller restart?
Does the controller-runtime library provide any built-in mechanisms to implement a priority queue or similar functionality to prioritize the processing of new CRs?
If controller-runtime doesn't offer such functionality, what are some effective ways to implement a priority system within the reconciliation loop?
Are there any performance considerations or potential drawbacks to implementing a priority system in a CRD controller?
I'm particularly interested in solutions that can be implemented using Go and the controller-runtime library. Any insights, code examples, or best practices would be greatly appreciated.
Beta Was this translation helpful? Give feedback.
All reactions