Skip to content

[Feature]: Introduce Delay Between Cluster Rollouts #5384

Closed

Description

@gbartolini

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

Activity

  1. added
    triage
    on Aug 27, 2024
  2. self-assigned this
    on Aug 27, 2024
  3. added
    enhancement 🪄
    do not backport
    and removed
    triage
    on Aug 27, 2024
  4. added this to the 1.25.0 milestone on Aug 27, 2024
  5. added a commit that references this issue on Sep 27, 2024
    af6b367
  6. moved this to Done in Roadmapon Sep 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

do not backportenhancement 🪄

Type

No type

Projects

Relationships

None yet

Development

No branches or pull requests

Issue actions