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 2017/11/08 20:51:49 UTC

[GitHub] kocolosk commented on issue #796: CouchDB Error - No DB shards could be opened

kocolosk commented on issue #796: CouchDB Error - No DB shards could be opened
URL: https://github.com/apache/couchdb/issues/796#issuecomment-342955446
 
 
   @FelipeTaiarol it's worth noting that the `[cluster]` block controls the number of shard files that are created per database. The default value in your configuration is 8, so that means your 1300 databases actually correspond to 10400 unique shard files. The `max_dbs_open` value actually controls the number of concurrently open shard files, so it may be that you're still asking the process that manages the list of open databases to do a lot of work to keep at most 5000 of them open.
   
   If your database count is going to hold steady at 1300 I would look at increasing the limit again. If you are going to keep creating new databases you probably want to be using a smaller value for `[cluster] q`. The small databases probably don't need to be sharded and so you can just set that to 1. It is possible to override the default when creating a database using the query string, e.g. `PUT /dbname?q=1`.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services