Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PBM-1414 Set Number of Parallel Collections to 1 by default #1041

Open
wants to merge 9 commits into
base: dev
Choose a base branch
from

Conversation

radoslawszulgo
Copy link
Collaborator

No description provided.

@defbin
Copy link
Member

defbin commented Oct 30, 2024

maybe here https://github.com/percona/percona-backup-mongodb/blob/dev/pbm/snapshot/restore.go#L20

@radoslawszulgo
Copy link
Collaborator Author

maybe here https://github.com/percona/percona-backup-mongodb/blob/dev/pbm/snapshot/restore.go#L20

I'm not sure. I anyway need to declare this variable. I could do it with 0, and then always overwrite with what comes from the configuration. Would it be better?

@defbin
Copy link
Member

defbin commented Oct 30, 2024

I meant, the request is about changing --numInsertionWorkersPerCollection to 1 (instead of 10). But your PR changes --numParallelCollections

@boris-ilijic
Copy link
Member

In addition by ticket requirement, the same parameter should be exposed as an option of restore command (e.g. --num-insertion-workers) which would override currently only available config parameter: restore.numInsertionWorkers
https://docs.percona.com/percona-backup-mongodb/reference/restore-options.html#restorenuminsertionworkers

radoslawszulgo and others added 5 commits October 31, 2024 13:16
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
cmd/pbm/main.go Show resolved Hide resolved
pbm/restore/logical.go Outdated Show resolved Hide resolved
pbm/restore/logical.go Outdated Show resolved Hide resolved
radoslawszulgo and others added 2 commits November 6, 2024 19:02
fix formatting and add a default value to help

Co-authored-by: Dmytro Zghoba <[email protected]>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants