Skip to content

Dynamic service using Nginx as a load balancer. Adjusts to backends coming and going.

License

Notifications You must be signed in to change notification settings

stackhub/service-nginx-lb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Dynamic service using Nginx as a load balancer. Adjusts to backends coming and going.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages