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 | |
maxconn 5000 | |
tune.bufsize 18432 | |
tune.maxrewrite 9216 | |
stats socket /var/run/haproxy.sock mode 600 level admin | |
stats timeout 2m # Wait up to 2 minutes for input | |
tune.ssl.default-dh-param 2048 | |
ssl-default-bind-ciphers ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA:ECDHE-RSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-RSA-AES256-SHA256:DHE-RSA-AES256-SHA:ECDHE-ECDSA-DES-CBC3-SHA:ECDHE-RSA-DES-CBC3-SHA:EDH-RSA-DES-CBC3-SHA:AES128-GCM-SHA256:AES256-GCM-SHA384:AES128-SHA256:AES256-SHA256:AES128-SHA:AES256-SHA:DES-CBC3-SHA:!DSS | |
ssl-default-bind-options no-sslv3 no-tls-tickets |
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
# file descriptors | |
fs.file-max = 100000 | |
# virtual memory | |
# we don't have swap, make it explicit | |
vm.swappiness = 0 | |
# networking | |
# general backlogs | |
# The maximum number of "backlogged sockets". Default is 128. |
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
-- example reporting script which demonstrates a custom | |
-- done() function that prints results as JSON | |
done = function(summary, latency, requests) | |
io.write("\nJSON Output:\n") | |
io.write("{\n") | |
io.write(string.format("\t\"requests\": %d,\n", summary.requests)) | |
io.write(string.format("\t\"duration_in_microseconds\": %0.2f,\n", summary.duration)) | |
io.write(string.format("\t\"bytes\": %d,\n", summary.bytes)) | |
io.write(string.format("\t\"requests_per_sec\": %0.2f,\n", (summary.requests/summary.duration)*1e6)) |
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
-- example reporting script which demonstrates a custom | |
-- done() function that prints results as JSON | |
done = function(summary, latency, requests) | |
io.write("\nJSON Output:\n") | |
io.write("{\n") | |
io.write(string.format("\t\"requests\": %d,\n", summary.requests)) | |
io.write(string.format("\t\"duration_in_microseconds\": %0.2f,\n", summary.duration)) | |
io.write(string.format("\t\"bytes\": %d,\n", summary.bytes)) | |
io.write(string.format("\t\"requests_per_sec\": %0.2f,\n", (summary.requests/summary.duration)*1e6)) |