Repository navigation
Description
Is there an existing issue already for this feature request/idea?
- I have searched for an existing issue, and could not find anything. I believe this is a new feature request to be evaluated.
What problem is this feature going to solve? Why should it be added?
When multiple PostgreSQL clusters are rolled out simultaneously—typically after an operator upgrade or an image catalog change—each cluster undergoes an internal rolling update. This can lead to a significant spike in activity, which may strain resources or affect performance. Managing these rollouts in a more staggered manner would mitigate this risk.
Describe the solution you'd like
Introduce a new operator-level configuration option called CLUSTER_ROLLOUT_DELAY. This setting, defined in seconds, will dictate the delay between rollouts of individual clusters. By default, this delay should be set to 0 (no delay), but users can adjust it according to their needs.
Major benefits:
- Reduced Resource Strain: Spreading out rollouts can prevent sudden spikes in resource usage.
- Improved Stability: Staggered updates reduce the risk of potential downtime or performance degradation.
- Customizability: Allows operators to tailor the rollout process according to their specific environment and operational requirements.
Describe alternatives you've considered
See #5272 - which will be developed to solve the problem differently and in a mutually exclusive way.
Additional context
Consider adding logging to track the application of the delay to help in troubleshooting and auditing.
We should also consider - even in a different patch - to introduce another option to delay the rollout within a cluster, when updating the instances. Maybe the option name could be INSTANCE_ROLLOUT_DELAY.
Backport?
No
Are you willing to actively contribute to this feature?
Yes
Code of Conduct
- I agree to follow this project's Code of Conduct
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
- StatusShow more project fieldsDone
Activity
feat: spread Pod rollout (cloudnative-pg#5391)