You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@couchdb.apache.org by GitBox <gi...@apache.org> on 2022/07/05 19:29:04 UTC

[GitHub] [couchdb] nickva commented on a diff in pull request #4085: Add an option to let custodian always use [cluster] n value

nickva commented on code in PR #4085:
URL: https://github.com/apache/couchdb/pull/4085#discussion_r914138410


##########
rel/overlay/etc/default.ini:
##########
@@ -753,3 +753,13 @@ port = {{prometheus_port}}
 ; to disable this setting could be if the views need an upgrade but located on
 ; read-only file system.
 ;commit_on_header_upgrade = true
+
+[custodian]
+; When set to `true`, force using `[cluster] n` values as the expected n value
+; of of shard copies. In cases where the application prevents creating

Review Comment:
   In this case it would be a the user's application which uses CouchDB underneath. Say, if they'd never be a chance to have any databases with `n=2` or `n=1`. But, there is a chance the shard map could be manipulated by hand (rebalancing shards, restoring backups, etc) and so we'd want custodian to warn about some missing copies. With the current scheme of taking n = `number of shard ranges in the shard map` it's impossible to check for that condition (but, instead we allow creating dbs with n < cluster n and don't flag that as an error in custodian).



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@couchdb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org