Skip to content

haproxy/config/global

Configuration options for HAProxy backend services

HAProxy Global Configuration

This parameter defines the global configuration directives for HAProxy that affect the entire process. These settings impact process management, connection handling, and logging.

For full documentation refer to: https://www.haproxy.com/documentation/haproxy-configuration-tutorials/core-concepts/global/

Requirements

  • Must use valid HAProxy global configuration syntax
  • Directives must be supported by the installed HAProxy version
  • Log facility must be available on the system if logging is configured

Usage

Configure global HAProxy settings:

haproxy/config/global: |
  log         127.0.0.1 local2
  pidfile     /var/run/haproxy.pid
  maxconn     4000
  daemon

Common configuration options: - maxconn: Maximum number of concurrent connections - log: Syslog settings - daemon: Run in background mode - user/group: Process ownership - nbproc: Number of processes