hectcastro / docker-riak-cs

A Docker project to bring up a local Riak CS cluster.
https://registry.hub.docker.com/u/hectcastro/riak-cs/
Apache License 2.0
42 stars 21 forks source link

Add support for HAProxy #7

Closed hectcastro closed 10 years ago

hectcastro commented 10 years ago

This commit adds support for HAProxy via the DOCKER_RIAK_CS_HAPROXY environmental variable. When set, an additional container will be started with HAProxy. All Riak CS containers in the cluster will be linked to the HAProxy container, providing one endpoint that load balances requests evenly against all Riak CS nodes.

Aims to resolve https://github.com/hectcastro/docker-riak-cs/issues/6.

hectcastro commented 10 years ago

Added an error message if HAProxy support is enabled without automatic clustering.