Skip to content

[Feature]: Configuring archive_mode #11304

Open

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?

Currently, archive_mode is not configurable. It is managed directly by the operator, which sets it to on on every instance, except on a designated primary (sets to always). It can only be disabled through the cnpg.io/skipWalArchiving annotation.

Describe the solution you'd like

I would like to expose archive_mode to external configuration. The default transitions to always (which stops requiring a restart when a designated primary is promoted), leaving the plugin implementation to make it run only on the primary or designated primary instances.

Users will be able to set it of on (leaving only the actual primary to archive, for example in a shared object store), or off to disable it entirely, deprecating the cnpg.io/skipWalArchiving annotation.

Describe alternatives you've considered

N/A

Additional context

No response

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 this to the 1.31.0 milestone on Aug 8, 2026
  2. self-assigned this
    on Aug 8, 2026
  3. added
    enhancement 🪄
    on Aug 8, 2026
  4. moved this to Todo in Roadmapon Aug 12, 2026
  5. gbartolini commented on Oct 23, 2026

    @gbartolini
    ContributorAuthor

    Let's try and aim for 1.31 but due to the amount of work queued up, especially regarding #11721, this could be postponed to 1.32.

  6. modified the milestones: 1.31.0, 1.32.0 on Nov 10, 2026
  7. gbartolini commented on Nov 10, 2026

    @gbartolini
    ContributorAuthor

    We have decided to move this to 1.32 due to time constraints for the 1.31 release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancement 🪄

Projects

  • Status
    Todo

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions