nickva commented on issue #5420:
URL: https://github.com/apache/couchdb/issues/5420#issuecomment-2629077847

   @jamesaimonetti thanks for reaching out
   
   Backups in the couch_server message queue are often due to frequent opens 
and closes, especially when the db handle lru is full and there are not enough 
idle handles to replace. 
   
   So a few things to try could be:
    
     * Raise the 
[max_dbs_open](https://docs.couchdb.org/en/stable/maintenance/performance.html#max-dbs-open)
 if memory allows it.
   
     * Disable idle_check_timeout. This setting was later removed 
altogether:`[couchdb]  idle_check_timeout = infinity`
   
     * Try toggling `update_lru_on_read`:  `[couchdb] update_lru_on_read = 
false`. If it was set to true, trying setting to false, and vice-versa. It's 
kind of dependent on your traffic pattern.
   
     * Increase the number of CPU (schedulers) available if 
possible.`couch_server` processes are sharded across the number of available 
schedulers. So having 32 schedulers vs 16 would spread the open calls and the 
lru across 32 couch_server processes.
   
     * Inspect your logs to see if there is anything timing out or crashing 
constantly.


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to