Nomad
HAProxy
@hashicorp
HAProxy is a free, very fast and reliable solution offering high availability, load balancing, and proxying for TCP and HTTP-based applications. It runs as a Nomad system job.
- Community
- Pack
Updated 2 years ago
- GitHub(opens in new tab)
HAProxy
This pack contains a single system job that runs HAProxy across all Nomad clients.
See the Load Balancing with HAProxy tutorial for more information.
Dependencies
This pack requires Linux clients to run.
Variables
http_port
(number) - The Nomad client port that routes to the HAProxy. This port will be where you visit your loadbalanced applicationui_port
(number) - The port assigned to the HAProxy UIservice_name
(string) - The consul service you wish to load balanceconsul_dns_port
(number) - The consul DNS portversion
(string) - The haproxy docker image version. For options, see: https://hub.docker.com/_/haproxypre_provisioned_slot_count
(number) - Backend slots to pre-provision in HAProxy configresources
(object) - The resource to assign to the HAProxy system task that runs on every clientjob_name
(string) - The name to use as the job name which overrides using the pack namedatacenters
(list of string) - A list of datacenters in the region which are eligible for task placementregion
(string) - The region where the job should be placed