Skip to content

mesoscloud/haproxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status Docker Stars Docker Pulls

haproxy

Join the chat at https://gitter.im/mesoscloud/mesoscloud

HAProxy is a tcp/http load balancer, the purpose of this image is to run haproxy with config from ZooKeeper, starting and reloading haproxy on config change with as close to zero client request interruption as possible. A secondary goal is handle and recover from ZooKeeper outages without interrupting the haproxy process (and client requests).

The haproxy-marathon image is used to generate HAProxy config using Marathon as a data source (and storing the resulting config in ZooKeeper), see https://github.com/mesoscloud/haproxy-marathon

CentOS

e.g.

docker run -d \
-e ZK=node-1:2181 \
--name=haproxy --net=host --restart=always mesoscloud/haproxy:1.5.17-centos-7

Ubuntu

e.g.

docker run -d \
-e ZK=node-1:2181 \
--name=haproxy --net=host --restart=always mesoscloud/haproxy:1.5.17-ubuntu-14.04