Skip to content

Latest commit

 

History

History
29 lines (20 loc) · 934 Bytes

README.md

File metadata and controls

29 lines (20 loc) · 934 Bytes

Purpose

This repo contains the processes necessary to build a dynamic nginx 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. While these will typically be other nginx services (e.g. nginx-backend-eg) this is not required.

For example, starting this container to balance n number of apache httpd containers (e.g. apache-backend-eg) or a golang binary that servers and http api.

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

Usage

For example usage, please see the stack-nginx-lb repo.

License

MIT