The haproxy modules
  • Python 48.4%
  • Dockerfile 23.6%
  • Shell 17%
  • Makefile 11%
Find a file
Petr "Stone" Hracek 660bcdd20e Update tests
Signed-off-by: Petr "Stone" Hracek <phracek@redhat.com>
2017-04-07 15:09:05 +02:00
files Update tests and fixing Makefile 2017-04-05 16:04:11 +02:00
tests Update tests 2017-04-07 15:09:05 +02:00
.gitignore ignore .idea directory 2017-04-06 13:45:27 +02:00
Dockerfile Update tests and fixing Makefile 2017-04-05 16:04:11 +02:00
haproxy.yaml Using master as for base-runtime as for Fedora rawhide 2017-04-03 12:16:09 +02:00
help.md Update tests and fixing Makefile 2017-04-05 16:04:11 +02:00
Makefile Update tests and fixing Makefile 2017-04-05 16:04:11 +02:00
README.md Update tests and fixing Makefile 2017-04-05 16:04:11 +02:00
sources Initial setup of the repo 2017-03-28 13:35:34 +00:00

haproxy

HAProxy reverse proxy for high availability environments.

Summary

  • Dockerfile - build container image with haproxy.
  • openshift-template.yml - Template for OpenShift to haproxy.

How to use the container

  • Copy ./examples/haproxy.cfg to /etc/haproxy/haproxy.cfg
  • Run two HTTPD servers on IP1:port1 and IP2:port2
  • Modify /etc/haproxy/haproxy.cfg so it uses relevant addresses and ports.

Command for running haproxy docker container:

docker run -it n

How to run haproxy as standalone container

Copy haproxy-container.service to /usr/lib/systemd/system/ directory

sudo cp haproxy-container.service /usr/lib/systemd/system/
systemctl daemon-reload

Command for running memcached as standalone container:

systemctl start haproxy-container

How to stop memcached as standalone container

Command for stopping haproxy as standalone container:

systemctl stop haproxy-container

How to test the haproxy

Statistic can be seen on haproxy url http://<haproxy_url>/haproxy?stats.