haproxy/backend/services/config¶
Configuration options for HAProxy backend services
HAProxy Backend Service Configuration¶
This parameter defines additional HAProxy configuration directives for individual service instances on backend nodes. It allows per-service customization of connection limits, health checks, and other server-specific options.
Requirements¶
- Must be defined on backend nodes (haproxy/role = backend)
 - Must use valid HAProxy server configuration syntax
 - Service names must match those defined in haproxy/backend/services
 
Usage¶
Define configuration options for services:
haproxy/backend/services/config:
  http: "maxconn 64"
  https: "verify none check check-ssl inter 10s fall 2 rise 3"
  postgres: "check port 5432 inter 2s rise 2 fall 3"
Example configurations for different service types:
haproxy/backend/services/config:
  # Basic web service with connection limit
  http: "maxconn 100"
  # SSL service with health checks
  https: "verify none check check-ssl inter 10s fall 2 rise 3"
  # Backup server configuration
  http_backup: "check backup inter 1s"
  # Database with custom check
  postgres: "check port 5432 inter 2s"
Common configuration options:
- maxconn: Maximum connections to this server
- check: Enable health checking
- backup: Mark server as backup
- inter: Health check interval
- rise/fall: Success/failure counts for health status