Here are a couple of templates that worked for me to run the Marathon-LB with some custom settings. Hope this can be a useful example to someone.
Increasing timeout values.
cat << EOL > /local1/marathon-lb/templates/HAPROXY_HEADglobal daemon log /dev/log local0 log /dev/log local1 notice maxconn 4096 tune.ssl.default-dh-param 2048defaults log global retries 3 maxconn 3000 timeout connect 5s timeout client 20m timeout server 20m option redispatchlisten stats bind 0.0.0.0:9090 balance mode http stats enable monitor-uri /_haproxy_health_checkEOL cat << EOL > /local1/marathon-lb/templates/HAPROXY_HTTP_FRONTEND_HEADfrontend marathon_http_in bind *:8001 mode httpEOL cat << EOL > /local1/marathon-lb/templates/HAPROXY_HTTPS_FRONTEND_HEADfrontend marathon_https_in bind *:8043 ssl {sslCerts} mode httpEOL
