-
Notifications
You must be signed in to change notification settings - Fork 21
PSMDB-1284 Doc: File copy based initial sync #912
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
Merged
Merged
Changes from 2 commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
daedd00
PSMDB-1284 Doc: File copy based initial sync
nastena1606 7268d2a
Updated after the review
nastena1606 6513838
Updated the description
nastena1606 60dc621
Updated after the review
nastena1606 28c8b97
Merge branch '7.0' into PSMDB-1284-Doc-FCBIS-7.0
nastena1606 2f05e11
Fix wording in initial-sync.md
igorsol 7ddc3d0
Updated PSMDB version
nastena1606 b7a0582
Update docs/initial-sync.md
nastena1606 5b495bb
Update docs/initial-sync.md
nastena1606 5b99642
Update docs/initial-sync.md
nastena1606 66fec49
Updated PSMDB version
nastena1606 b396508
Added no support for Percona Memory Engine
nastena1606 0ded761
Merge remote-tracking branch 'upstream/PSMDB-1284-Doc-FCBIS-7.0' into…
nastena1606 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# File copy based initial sync | ||
|
||
!!! admonition "Version added: [7.0.21-12](release_notes/7.0.21-12.md)" | ||
|
||
When a new member joins the replica set, it receives the data from the existing replica set node via the initial sync. | ||
|
||
The default initial sync method is logical, during which Percona Server for MongoDB clones all databases except the `local` database, builds all collection indexes, pulls oplog records and applies the changes to the data set. Read more about [logical initial sync in MongoDB documentation](https://www.mongodb.com/docs/manual/core/replica-set-sync/#logical-initial-sync-process). | ||
|
||
Starting with version 7.0.21-12, you can select **file copy based** as the initial sync method. You must have the WiredTiger storage defined in Percona Server for MongoDB configuration. File copy based initial sync is the physical copying of the data files from source to target. This sync method is faster than logical, which is especially beneficial in heavy write environments. It speeds up cluster scaling and increases restore performance. | ||
|
||
File copy-based initial sync is implemented in a similar way as in MongoDB Advanced and has the same configuration options. For workflow and known limitations, refer to [MongoDB documentation](https://www.mongodb.com/docs/manual/core/replica-set-sync/#file-copy-based-initial-sync). | ||
nastena1606 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
To select the initial sync method, specify the following configuration in the configuration file for the target server: | ||
|
||
```yaml | ||
setParameter: | ||
initialSyncMethod: fileCopyBased | ||
``` | ||
|
||
You can only set this configuration at startup. | ||
nastena1606 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
|
||
File copy based initial sync is available in [Percona Server for MongoDB Pro out of the box](psmdb-pro.md). You can also receive this functionality by [building Percona Server for MongoDB from source code](install/source.md). | ||
|
||
|
||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.