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

MongoDB, slow chunk Migration for collection config.system.sessions with removing Shard - Config server relation #282

Open
MiaAltieri opened this issue Oct 26, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@MiaAltieri
Copy link
Contributor

Deployment

Sharded Cluster with 3 shards + 1 config server. (Note: each component has replication enabled, but only one replica)

Action

Remove the shard that hosts config.system.sessions collection

Problem

Drainage takes 20-25minutes

Context

MongoDB Forum Post
Stack Overflow Post

@MiaAltieri MiaAltieri added the bug Something isn't working label Oct 26, 2023
@github-actions
Copy link

MiaAltieri added a commit that referenced this issue Nov 2, 2023
## Issue
No tests for shard removal

## Solution
Add tests for various removal scenarios

## Extras
1. These tests highlighted an issue with slow drainage. A large TIMEOUT
period has been added to the tests and an issue (#282 ) has been added
to the repo
2. Wait for relation_changed to be given both key and ops password, as
these seem to not always be given from the config server on
relation-joined. [discussed
here](https://chat.charmhub.io/charmhub/pl/prmxufjyfbnt9qrzdrxoxkqz3e)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant