diff options
author | varac <varacanero@zeromail.org> | 2017-02-23 11:42:47 +0100 |
---|---|---|
committer | varac <varacanero@zeromail.org> | 2017-03-15 19:22:50 +0100 |
commit | cce9af1fce42c29bf062cccfc46ef356d83a6328 (patch) | |
tree | b7f6a7de0f11e9381eb833a09f1cc1175dbce9ca /puppet/modules/site_haproxy/templates/couch.erb | |
parent | bb4dd153bbf1174a95017d0046ea9e1320fd81a9 (diff) |
[8144] Remove Haproxy
We used haproxy because we had multiple bigcouch nodes but now
with a single couchdb node this is not needed anymore.
- Resolves: #8144
Diffstat (limited to 'puppet/modules/site_haproxy/templates/couch.erb')
-rw-r--r-- | puppet/modules/site_haproxy/templates/couch.erb | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/puppet/modules/site_haproxy/templates/couch.erb b/puppet/modules/site_haproxy/templates/couch.erb deleted file mode 100644 index f42e8368..00000000 --- a/puppet/modules/site_haproxy/templates/couch.erb +++ /dev/null @@ -1,32 +0,0 @@ -frontend couch - bind localhost:<%= @listen_port %> - mode http - option httplog - option dontlognull - option http-server-close # use client keep-alive, but close server connection. - use_backend couch_read if METH_GET - default_backend couch_write - -backend couch_write - mode http - balance roundrobin - option httpchk GET / # health check using simple get to root - option allbackups # balance among all backups, not just one. - default-server inter 3000 fastinter 1000 downinter 1000 rise 2 fall 1 -<%- @servers.sort.each do |name,server| -%> -<%- next unless server['writable'] -%> - # <%=name%> - server couchdb_<%=server['port']%> <%=server['host']%>:<%=server['port']%> <%='backup' if server['backup']%> weight <%=server['weight']%> check -<%- end -%> - -backend couch_read - mode http - balance roundrobin - option httpchk GET / # health check using simple get to root - option allbackups # balance among all backups, not just one. - default-server inter 3000 fastinter 1000 downinter 1000 rise 2 fall 1 -<%- @servers.sort.each do |name,server| -%> - # <%=name%> - server couchdb_<%=server['port']%> <%=server['host']%>:<%=server['port']%> <%='backup' if server['backup']%> weight <%=server['weight']%> check -<%- end -%> - |