Created
October 11, 2013 18:20
-
-
Save stevepereira/6939555 to your computer and use it in GitHub Desktop.
Redis config, she no work.
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 characters
| global | |
| log 127.0.0.1 local0 | |
| log 127.0.0.1 local1 notice | |
| maxconn 4096 | |
| daemon | |
| #debug | |
| #quiet | |
| user haproxy | |
| group haproxy | |
| stats socket /var/run/haproxy.sock | |
| defaults | |
| log global | |
| mode http | |
| maxconn 10000 | |
| retries 3 | |
| timeout check 10s | |
| timeout client 1m | |
| timeout connect 10s | |
| timeout http-keep-alive 10s | |
| timeout http-request 10s | |
| timeout queue 1m | |
| timeout server 1m | |
| option dontlognull | |
| option redispatch | |
| option redis-check | |
| option forwardfor | |
| option http-server-close | |
| option httplog | |
| balance roundrobin | |
| cookie SERVERID insert indirect nocache | |
| frontend redis | |
| mode tcp | |
| bind *:6379 | |
| default_backend rb | |
| backend rb | |
| server redis-01 redis-01:6379 | |
| server redis-02 redis-02:6379 backup |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment