wohali commented on issue #9: Understanding how to run a cluster
URL: https://github.com/apache/couchdb-docker/issues/9#issuecomment-301362406
 
 
   Again, sticky sessions are not required and will definitely affect your 
performance.
   
   
   >> A session cookie acquired on one node is recognised by any other node if
   >> you follow the instructions below (these are in the docs and 
_cluster_setup
   >> does this too).
   >> 
   >> You need to ensure each node has the same secret in couch_httpd_auth. It's
   >> randomized at startup if not set, so set it to something (large, random)
   >> before starting couchdb.
   >> 
   >> For _admin_ users, you also need to ensure you set the same hashed version
   >> in the .init file as the salt value is part of the cookie state (so that
   >> cookies are invalidated when passwords change).
   >> 
   >> Basically, anything in the .ini file needs synchronising between the nodes
   >> externally. By hand, but more likely using chef / puppet, etc.
   >> 
   >> Cloudant, for example, generates default.ini from a template which sets a
   >> cluster-wide couch_httpd_auth  secret and the [admins] section.
 
----------------------------------------------------------------
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