How to set HAproxy maxconn values with Director?
Environment
- Red Hat OpenStack Platform 10
Issue
- How to set the HAproxy maxconn settings via Director in a YAML template?
- After realizing HAproxy maxconn needs to be updated, how to include this in Director templates so to not get overwritten during a stack update?
Resolution
-
Director templates in OSP10 provide a tripleO class we can use to set this. In the
network-environment.yamlfile for example, these can be set:parameter_defaults: ControllerExtraConfig: tripleo::haproxy::haproxy_global_maxconn: 40960 tripleo::haproxy::haproxy_default_maxconn: 16384
Root Cause
- Need to make the changes suggested in this solution article permanent.
Diagnostic Steps
# [*haproxy_global_maxconn*]
# The value to use as maxconn in the HAProxy global config section.
# Defaults to 20480
#
# [*haproxy_default_maxconn*]
# The value to use as maxconn in the HAProxy default config section.
# Defaults to 4096
SBR
Product(s)
Components
Category
Tags
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.