nickva opened a new pull request #539: Close idle dbs URL: https://github.com/apache/couchdb/pull/539 Previously idle dbs, especially sys dbs like _replicator once opened once for scanning would stay open forever. In a large cluster with many _replicator shards that can add up to a significant overhead, mostly in terms of number of active processes. Add a mechanism to close dbs which have an idle db updater. Before hibernation was used to limit the memory pressure, however that is often not enough. Some databases are only read periodically so their updater would time out. To prevent that from happening keep the last read timestamp in the couch file process dictionary. Idle check then avoid closing dbs which have been recently read from. (Original idea for using timeouts in gen_server replies belongs to Paul Davis) COUCHDB-3323 Related to previous PR from before monorepo merge: https://github.com/apache/couchdb-couch/pull/236 ---------------------------------------------------------------- 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: [email protected]
With regards, Apache Git Services
