-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Disable balancer while indexes are inconsistent #1766
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
Conversation
cursor.sort() contains a warning about the 32MB limit on non-indexed sorting, this adds the same warning to $orderby - which is the underlying operator that powers sort(). The warning is largely a copy+paste with superficial name replacements. Signed-off-by: kay <[email protected]>
Signed-off-by: kay <[email protected]>
A chunk migration can cause an index build, so we should advise to disable the balancer to avoid performance issues.
:term:`shard`. Also ensure the balancer has been disabled for all | ||
collections on which you'll be creating an new index. This will prevent | ||
an automatic index build as chunks are migrated. The balancer should be | ||
enabled after the indexes have been updated on all shards. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
putting this fact here is pretty awkward, because the tutorial isn't about sharded clusters, and so this fact might be weird for users in a sharded cluster. Perhaps we can put this fact somewhere else and then cross reference it here?
It looks like this pull request/branch is in a weird state. Could you rebase to make it seem a bit more coherent. |
Feel free to open this as a DOCS ticket and we can figure out the best place for this bit of information if you like. |
note: backport to 2.4 |
Bulk closing stale pull requests. |
* DOCS-15590-refineshardkey-updates * DOCS-15590-refineshardkey-updates * DOCS-15590-refineshardkey-updates Co-authored-by: jason-price-mongodb <[email protected]> Co-authored-by: jason-price-mongodb <[email protected]>
A chunk migration can cause an index build, so we should advise to disable the balancer to avoid performance issues.