Skip to content

Commit

Permalink
Merge pull request #11 from Oefenweb/add-support-for-tune
Browse files Browse the repository at this point in the history
Add support for tune.*
  • Loading branch information
tersmitten committed Nov 27, 2015
2 parents df1f5a0 + dfc14d1 commit 6566b78
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ Set up the latest version of [HAProxy](http://www.haproxy.org/) in Ubuntu system
* `haproxy_global_ssl_default_bind_ciphers`: [default: `kEECDH+aRSA+AES:kRSA+AES:+AES256:RC4-SHA:!kEDH:!LOW:!EXP:!MD5:!aNULL:!eNULL`]: This setting is only available when support for OpenSSL was built in. It sets the default string describing the list of cipher algorithms (`"cipher suite"`) that are negotiated during the SSL/TLS handshake for all `"bind"` lines which do not explicitly define theirs
* `haproxy_global_ssl_default_bind_options`: [default: `no-sslv3`]: This setting is only available when support for OpenSSL was built in. It sets default ssl-options to force on all `"bind"` lines
* `haproxy_global_nbproc`: [default: `1`]: Number of processes to create when going daemon. This requires the `daemon` mode. By default, only one process is created, which is the recommended mode of operation
* `haproxy_global_tune`: [default: `[]`]: (Performance) tuning declarations
* `haproxy_global_tune.{n}.key`: [required]: Setting name (e.g. `ssl.cachesize`)
* `haproxy_global_tune.{n}.value`: [required]: Setting value (e.g. `50000`)

* `haproxy_defaults_log`: [default: `global`]: Enable per-instance logging of events and traffic. `global` should be used when the instance's logging parameters are the same as the global ones. This is the most common usage
* `haproxy_defaults_mode`: [default: `http`]: Set the running mode or protocol of the instance
Expand Down
4 changes: 4 additions & 0 deletions templates/etc/haproxy/global.cfg.j2
Original file line number Diff line number Diff line change
Expand Up @@ -61,3 +61,7 @@
{% if haproxy_global_nbproc > 1 %}
nbproc {{ haproxy_global_nbproc }}
{% endif %}

{% for tune in haproxy_global_tune | default([]) %}
tune.{{ tune.key }} {{ tune.value }}
{% endfor %}

0 comments on commit 6566b78

Please sign in to comment.