diff options
author | Azul <azul@riseup.net> | 2014-07-15 13:13:28 +0200 |
---|---|---|
committer | Azul <azul@riseup.net> | 2014-07-15 13:13:28 +0200 |
commit | ac5781ef6edaf03f06fa980478726aa7d11653c0 (patch) | |
tree | 7ce6183346537102159ef2e7f20ca7b8bb090289 | |
parent | ed292e8ef362e1c5a638480eda02b2ddfde936a7 (diff) |
haproxy default to couch_write, couch_read on GET
METH_POST probably does not catch PUT, DESTROY etc. So instead we
now use the master as the default and only use the replications
for GET and HEAD requests.
-rw-r--r-- | puppet/modules/site_haproxy/templates/couch.erb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/puppet/modules/site_haproxy/templates/couch.erb b/puppet/modules/site_haproxy/templates/couch.erb index baa31486..f42e8368 100644 --- a/puppet/modules/site_haproxy/templates/couch.erb +++ b/puppet/modules/site_haproxy/templates/couch.erb @@ -4,8 +4,8 @@ frontend couch option httplog option dontlognull option http-server-close # use client keep-alive, but close server connection. - use_backend couch_write if METH_POST - default_backend couch_read + use_backend couch_read if METH_GET + default_backend couch_write backend couch_write mode http |