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 2021/10/28 22:10:46 UTC

[GitHub] [couchdb] nickva commented on pull request #3807: Use configured shards db in custodian instead of "dbs"

nickva commented on pull request #3807:
URL: https://github.com/apache/couchdb/pull/3807#issuecomment-954263760


   How to test:
   
    * Create `n=1` and `n=2` dbs
    * Notice that custodian shouldn't emit errors
    * Set one of the nodes in maintenance mode. Custodian should emit errors.
    * Bring node back to production and kill one of the nodes. Custodian should also emit errors.
   
   ```
   http put $DB/n1db'?n=1'
   http put $DB/n2db'?n=2'
   ```
   
   ```
   config:set("couchdb", "maintenance_mode", "true", false).
   
   custodian:report().
   [{<<"n2db">>,{0,2147483647},{live,1}},
    {<<"n1db">>,{0,2147483647},{live,0}},
    {<<"_users">>,{2147483648,4294967295},{live,2}},
    {<<"_users">>,{0,2147483647},{live,2}},
    {<<"_replicator">>,{2147483648,4294967295},{live,2}},
    {<<"_replicator">>,{0,2147483647},{live,2}}]
   ```
   
   ```
   [notice] 2021-10-28T20:51:30.985095Z node1@127.0.0.1 <0.109.0> -------- config: [couchdb] maintenance_mode set to true for reason nil
   [critical] 2021-10-28T20:51:30.987098Z node1@127.0.0.1 <0.2089.0> -------- 1 shard in cluster with only 1 copy on nodes not in maintenance mode
   [critical] 2021-10-28T20:51:30.987134Z node1@127.0.0.1 <0.2089.0> -------- 1 shard in cluster with only 0 copies on nodes not in maintenance mode
   [warning] 2021-10-28T20:51:30.987196Z node1@127.0.0.1 <0.2089.0> -------- 4 shards in cluster with only 2 copies on nodes not in maintenance mode
   ```
   
   
   
   


-- 
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