incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alexander Shorin <kxe...@gmail.com>
Subject Re: max_dbs_open and idle db
Date Tue, 24 Jun 2014 15:12:16 GMT
Database considered idle by active references to it and by related
active operations (like compaction):
https://github.com/apache/couchdb/blob/master/src/couchdb/couch_db.erl#L1115
CouchDB uses LRU cache to manage opened databases and frees idle by demand:
https://github.com/apache/couchdb/blob/master/src/couchdb/couch_server.erl#L490
leads to:
https://github.com/apache/couchdb/blob/master/src/couchdb/couch_server.erl#L261

There is nothing need to be configured.
--
,,,^..^,,,


On Tue, Jun 24, 2014 at 7:01 PM, Herman Chan <hermanccw@gmail.com> wrote:
> Hi there,
>
> In the description of max_db_open, it says "CouchDB reference counts
> database accesses internally and will close idle databases when it must."  I
> was wondering what's consider idle in couchdb and if the idle time is
> configurable?
>
> Herman

Mime
View raw message