Skip to content

DB shard corrupted on single node corrective action? #3305

Answered by kocolosk
bdoyle0182 asked this question in Q&A
Discussion options

You must be logged in to vote

100% yes that's a safe thing to do assuming your database is running with multiple shard replicas and something I've seen done many times successfully. A couple of things to note:

  1. You can confirm the sharding of the database in question via the _shards endpoint: https://docs.couchdb.org/en/stable/api/database/shard.html
  2. Consumers of the _changes feed will automatically switch over to a different shard replica, which may cause some updates to be replayed on the feed.
  3. You may want to put the node hosting the rebuilding shard file into "maintenance mode" to prevent it from contributing to responses before internal replication gets it caught up: https://docs.couchdb.org/en/stable/config/couc…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@bdoyle0182
Comment options

Answer selected by bdoyle0182
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants