Skip to content

[Bug]: maxParallel doesn't work during recovery #3459

Description

@anthonator

Is there an existing issue already for this bug?

  • I have searched for an existing issue, and could not find anything. I believe this is a new bug.

I have read the troubleshooting guide

  • I have read the troubleshooting guide and I think this is a new bug.

I am running a supported version of CloudNativePG

  • I have read the troubleshooting guide and I think this is a new bug.

Contact Details

No response

Version

1.21.1

What version of Kubernetes are you using?

1.26

What is your Kubernetes environment?

Cloud: Other

How did you install the operator?

Helm

What happened?

With the provided config we'd expect barman to load WAL files in parallel during a full recovery.

bootstrap:
    recovery:
        source: core-db-15

externalClusters:
    - barmanObjectStore:
            destinationPath: {{ .Values.dbBackupPath }}

            s3Credentials:
                accessKeyId:
                    key: ***

                    name: ***
                secretAccessKey:
                    key: ***

                    name: ***
            wal:
                maxParallel: 15

        name: core-db-15

Despite this configuration only 1 WAL is being restored at a time.

Cluster resource

No response

Relevant log output

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

Activity

  1. added
    triage
    on Dec 5, 2023
  2. Knorreman commented on Mar 7, 2024

    @Knorreman

    I am seeing the same behavior and our recovery times are very slow

  3. Grubla commented on Mar 8, 2024

    @Grubla

    Yeah, this is affecting us as well!

  4. florianfischerx commented on Oct 30, 2024

    @florianfischerx

    Hi,

    this is not resolved I guess?
    I see only one barman-cloud-wal-restore process, serially running per WAL.

    This is quite confusing, because the documentation for recovery https://cloudnative-pg.io/documentation/1.24/recovery/ lists maxParallel as an option, and highlights that this is relevant.

    But looking at https://github.com/cloudnative-pg/cloudnative-pg/blob/main/internal/cmd/manager/walrestore/cmd.go and it's history, it appears that parallel restore is not being done in case of a bootstrap (i.e. when using barman-cloud-restore).

    Is this intended behavior? Recovery now takes several hours for us.

  5. github-actions commented on Mar 2, 2025

    @github-actions
    Contributor

    This issue is stale because it has been open for 60 days with no activity.

  6. github-actions commented on Mar 17, 2025

    @github-actions
    Contributor

    This issue was closed because it has been inactive for 14 days since being marked as stale.

  7. auwtch commented on Mar 28, 2025

    @auwtch

    Hi, can we reopen the issue?

  8. pzeinlinger commented on Apr 28, 2025

    @pzeinlinger

    @mnencia Sorry to comment on a closed issue, but I'm observing behavior that suggests the parameter is ignored during a restore, which seems related to the discussion here. Should I open a new issue?

  9. mnencia commented on May 6, 2025

    @mnencia
    Member

    @pzeinlinger Thank you for reporting this issue. I'd like to give you some clarifications regarding the functional and our current direction: the parallel WAL retrieval during recovery functions correctly when using CNPG-I backup plugins, such as plugin-barman-cloud, and we are deprecating the in-tree backup implementation in favor of CNPG-I backup plugins. Documentation updates related to this transition are being addressed in #6876 and #7065.

  10. removed
    triage
    on Jul 3, 2026
  11. added
    bug 🐛
    on Jul 3, 2026
  12. added theissue type on Jul 3, 2026
  13. reopened this on Jul 3, 2026
  14. added a commit that references this issue on Aug 11, 2026
    e997aa0
  15. added 3 commits that reference this issue on Aug 11, 2026
    dc3f10c
    02cb0ab
    a72d8d9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bug 🐛

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions