public
Created

twilio haproxy config

  • Download Gist
haproxy.config
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
# Twilio HTTP HAProxy Configuration
# Version: 0.1
 
global
daemon
log 127.0.0.1 local0 info
maxconn 60000
spread-checks 3
 
 
defaults twilio-defaults
log global
maxconn 1000
mode http
option http-server-close
 
timeout client 6s
timeout server 6s
timeout connect 4s
 
option redispatch
retries 2
 
frontend twilio-frontend
bind 127.0.0.1:1xxxx # insert your port number here
default_backend twilio-backends
option httplog
 
backend twilio-backends
 
balance roundrobin
option httpchk GET /healthcheck

Please note, our actual configuration has more detail besides this, but I limited the configuration here to things I mentioned in the post.

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.