Skip to content

The color to use for the haproxy backend nodes

This parameter is used to set per-service frontend specific configuration options, such as connection mode. Additionally, the data structure allows a config key which allows the user to pass any arbitrary data to the haproxy.cfg frontend stanza.

Refer to the full documentation for all directives supported by HA Proxy: : https://www.haproxy.com/documentation/haproxy-configuration-manual/latest/#4.1

  • mode - accepts one of: tcp, http, or log
  • balance - sets the load balancing algorithim.
  • config - alows the user to pass any config directives specified in the documentation

The following example will ensure the http frontend definition will set the mode to http and the balance method to "roundrobin". The http8080 frontend definition will contain "mode tcp" and will set the compression algorithms. (note that the a mode defined in a config stanza will not be verified for correctness. This is done to demonstrate different methods of passing arbitrary config directives, but the recommended method to set the mode is using the mode keyword property.)

Example:

default: http: mode: http balance: roundrobin http8080: config: | mode tcp compression algo gzip