Last active
December 21, 2015 00:29
-
-
Save markusklems/6220686 to your computer and use it in GitHub Desktop.
Revisions
-
markusklems revised this gist
Aug 13, 2013 . 1 changed file with 2 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -18,4 +18,6 @@ listen riak 0.0.0.0:8087 server riak6 192.168.75.231:8087 check weight 1 maxconn 1024 " | sudo tee -a /etc/haproxy/haproxy.cfg sed -i -e "s|ENABLED=0|ENABLED=1|" /etc/default/haproxy sudo /etc/init.d/haproxy start -
markusklems revised this gist
Aug 13, 2013 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -2,7 +2,7 @@ sudo apt-get install haproxy echo " listen riak 0.0.0.0:8087 balance leastconn mode tcp -
markusklems revised this gist
Aug 13, 2013 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -2,7 +2,7 @@ sudo apt-get install haproxy echo" listen riak 0.0.0.0:8087 balance leastconn mode tcp -
markusklems revised this gist
Aug 13, 2013 . 1 changed file with 2 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -17,3 +17,5 @@ listen riak 0.0.0.0:8087 server riak5 192.168.75.235:8087 check weight 1 maxconn 1024 server riak6 192.168.75.231:8087 check weight 1 maxconn 1024 " | sudo tee -a /etc/haproxy/haproxy.cfg sudo /etc/init.d/haproxy start -
markusklems revised this gist
Aug 13, 2013 . 1 changed file with 6 additions and 5 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -10,9 +10,10 @@ listen riak 0.0.0.0:8087 option contstats option tcpka option srvtcpka server riak1 192.168.75.233:8087 check weight 1 maxconn 1024 server riak2 192.168.75.234:8087 check weight 1 maxconn 1024 server riak3 192.168.75.236:8087 check weight 1 maxconn 1024 server riak4 192.168.75.238:8087 check weight 1 maxconn 1024 server riak5 192.168.75.235:8087 check weight 1 maxconn 1024 server riak6 192.168.75.231:8087 check weight 1 maxconn 1024 " | sudo tee -a /etc/haproxy/haproxy.cfg -
markusklems created this gist
Aug 13, 2013 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,18 @@ #!/bin/bash sudo apt-get install haproxy echo"\n listen riak 0.0.0.0:8087 balance leastconn mode tcp option tcplog option contstats option tcpka option srvtcpka server riak-1 192.168.1.1:8087 check weight 1 maxconn 1024 server riak-2 192.168.1.2:8087 check weight 1 maxconn 1024 server riak-3 192.168.1.3:8087 check weight 1 maxconn 1024 server riak-4 192.168.1.4:8087 check weight 1 maxconn 1024 server riak-5 192.168.1.5:8087 check weight 1 maxconn 1024 " | sudo tee -a /etc/haproxy/haproxy.cfg