Sign inSign up

stackhub/haproxy

By stackhub

•Updated over 10 years ago

Haproxy service that dynamically adjusts to backends coming and going.

Image
1

6.6K

stackhub/haproxy repository overview

⁠Purpose

This repo contains the processes necessary to build a dynamic haproxy container that acts as a load balancer to http backends.

⁠Overview

Conceptually, this container is meant to be balance n number of backend http services. These will typically be nginx
e.g. nginx-backend-eg⁠ or apache-backend-eg⁠

However a golang binary or Tomcat service that answers httpd requests would also work as well.

The container checks every 5 seconds for new services at its serivce key.
When it sees a change, it rewrites the haproxy.cfg file and reloads the haproxy service.

⁠Usage

For example usage, please see the stack-haproxy repo⁠.

⁠Stats

If you would like to see the stats page, navigate to http://IPADDR:1936/haproxy?stats. You will be prompted for basic auth:

  • username: stackhubdemo
  • password: stackhubpass

If you are working locally you can check with curl:

curl -u stackhubdemo:stackhubpass http://localhost:1936/haproxy?stats

⁠License

MIT

Tag summary

Content type

Image

Digest

sha256:42ad14385…

Size

111.2 MB

Last updated

over 10 years ago

docker pull stackhub/haproxy