iilyak commented on issue #539: Close idle dbs
URL: https://github.com/apache/couchdb/pull/539#issuecomment-305596346
 
 
   I know it is out of the scope of this PR but I want to mention the 
possibility anyway. 
   We could store extend statistics in the process dictionary. For example we 
could store following keys:
     - rx_access_time
     - tx_access_time
     - rx_bytes (payload size of last request (last request or counter since we 
open?))
     - tx_bytes (payload size of last request (last request or counter since we 
open?))
     - rx_requests
     - tx_requests
   In this case we would kill two birds with one stone. 
   1. we would account for both reads and writes when we make a decision to 
close the file.
   2. we can extend couch_debug to return :
    - recently accessed files
    - top N files which write the most
    - top N files which read the most
 
----------------------------------------------------------------
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

Reply via email to