sergey-safarov opened a new issue, #5850:
URL: https://github.com/apache/couchdb/issues/5850

   ### Provide a brief overview of what the new feature is all about
   
   Before CouchDB shutdown I want make sure load-balancer do not send more 
client request.
   I use script which enable `nolb` maintenance mode and waiting when 
load-balancer move client request to other node.
   Script can be found at https://github.com/apache/couchdb-docker/issues/286
   
   To make sure no more HTTP requests on the node used stats counter like
   ```sh
   curl -s -u admin:pass \
     http://127.0.0.1:5984/_node/_local/_stats/couchdb/httpd/requests| jq
   {
     "value": 20569549,
     "type": "counter",
     "desc": "number of HTTP requests"
   }
   ```
   
   When counter is not increased more then CouchDB node can be shutdown.
   
   I found request to health endpoint  `/_up` also increase statistic counter 
in request above.
   
   ### Tell us how the new feature should work. Be specific
   
   Could you exclude request to health endpoint  `/_up` from counting.
   To keep old behavior it can be done configurable.
   
   ### Not required. Suggest how to implement the addition or change
   
   _No response_
   
   ### Additional Context
   
   _No response_


-- 
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