You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@couchdb.apache.org by GitBox <gi...@apache.org> on 2018/08/13 16:06:55 UTC

[GitHub] wohali commented on issue #1555: Is it the right way to load balance couchdb with nginx?

wohali commented on issue #1555: Is it the right way to load balance couchdb with nginx?
URL: https://github.com/apache/couchdb/issues/1555#issuecomment-412571999
 
 
   Through experience, CouchDB developers recommend using [HAProxy](https://www.haproxy.org/) as a load balancer. We provide a default configuration that just works™ here: https://github.com/apache/couchdb/blob/master/rel/haproxy.cfg
   
   We do [document our recommended Nginx configuration](http://docs.couchdb.org/en/stable/best-practices/nginx.html) as well. Getting it right is difficult, and there are specific issues with configuring Nginx properly as a reverse proxy for CouchDB when you are using replication, so be sure to review our documentation.
   
   At present, CouchDB does not natively have the concept of "read-only replicas," so there is no need to separate `GET` and `PUT` requests.
   
   Finally, remember that in a 2.x CouchDB cluster, additional nodes don't participate in requests for databases you've already created unless you move shards to those new nodes. See the new 2.2.0 documentation on [shard management](http://docs.couchdb.org/en/stable/cluster/sharding.html) for more details.

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services