An open API service indexing awesome lists of open source software.

https://github.com/ahmedalaa14/apache-loadbalancer

Creating a single HAProxy and two Apache containers with Docker compose.
https://github.com/ahmedalaa14/apache-loadbalancer

apache docker-compose hapr html5 load-balancer

Last synced: over 1 year ago
JSON representation

Creating a single HAProxy and two Apache containers with Docker compose.

Awesome Lists containing this project

README

          

# Creating a single HAProxy and two Apache containers with Docker compose.
- In this porject we will create two identical Apache servers and one HAProxy container.

- When we want to access our website, We will be calling HAProxy, not the Apache servers. HAProxy will divert traffic to Apache servers in "round-robin" fashion.

1. HTTP Request goes to HAProxy container.

2. HAProxy container goes either Apache container 1 or 2.

3. Response is served by Apache container 1 or 2.

* To test this use command
$ for in in {1..10} ; do echo "the working server is curl -s http://127.0.0.1:90/"; done