-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
finished load balancers and syslogging
- Loading branch information
Showing
10 changed files
with
107 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,7 @@ | |
MSG=small edit | ||
dev: | ||
sudo docker-compose down | ||
sudo docker-compose build | ||
sudo docker-compose up | ||
|
||
github: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
# HAProxy load balancers (round-robin) | ||
### HAProxy load balancers (round-robin) | ||
Load balancers for each app tier powered by [HAProxy](http://www.haproxy.org/)'s | ||
[docker build](http://hub.docker.com/_/haproxy/). Cookie-based policies | ||
(e.g. return users to same servers for caching purposes) is currently | ||
(e.g. return users to same servers for caching purposes) are currently | ||
not enabled; load balancing is purely round-robin style. | ||
In actual production, Docker Swarm would (should) be | ||
used, and could leverage `docker-compose`'s `scale` feature (currently | ||
not used, app servers are fully enumerated and handled by respective load | ||
used, and could leverage `docker-compose`'s `scale` feature (which is | ||
currently not used, web/api servers are fully enumerated and handled by respective load | ||
balancers). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,31 @@ | ||
global | ||
maxconn 2048 | ||
log /dev/log local2 | ||
log-send-hostname | ||
|
||
defaults | ||
log global | ||
mode http | ||
option httplog | ||
option dontlognull | ||
timeout connect 5000ms | ||
timeout client 50000ms | ||
timeout server 50000ms | ||
|
||
frontend http-in | ||
frontend http-in | ||
bind *:8000 | ||
capture request header Host len 50 | ||
default_backend servers | ||
|
||
backend servers | ||
server server1 ${EXP0_PORT_8000_TCP_ADDR}:${EXP0_PORT_8000_TCP_PORT} | ||
server server2 ${EXP1_PORT_8000_TCP_ADDR}:${EXP1_PORT_8000_TCP_PORT} | ||
server server3 ${EXP2_PORT_8000_TCP_ADDR}:${EXP2_PORT_8000_TCP_PORT} | ||
server exp0 ${EXP0_PORT_8000_TCP_ADDR}:${EXP0_PORT_8000_TCP_PORT} | ||
server exp1 ${EXP1_PORT_8000_TCP_ADDR}:${EXP1_PORT_8000_TCP_PORT} | ||
server exp2 ${EXP2_PORT_8000_TCP_ADDR}:${EXP2_PORT_8000_TCP_PORT} | ||
|
||
listen stats | ||
bind *:1937 | ||
mode http | ||
stats enable | ||
stats uri / | ||
stats hide-version | ||
stats auth username:password |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,31 @@ | ||
global | ||
maxconn 2048 | ||
log /dev/log local2 | ||
log-send-hostname | ||
|
||
defaults | ||
log global | ||
mode http | ||
option httplog | ||
option dontlognull | ||
timeout connect 5000ms | ||
timeout client 50000ms | ||
timeout server 50000ms | ||
|
||
frontend http-in | ||
frontend http-in | ||
bind *:8000 | ||
capture request header Host len 50 | ||
default_backend servers | ||
|
||
backend servers | ||
server server1 ${MODELS0_PORT_8000_TCP_ADDR}:${MODELS0_PORT_8000_TCP_PORT} | ||
server server2 ${MODELS1_PORT_8000_TCP_ADDR}:${MODELS1_PORT_8000_TCP_PORT} | ||
server server3 ${MODELS2_PORT_8000_TCP_ADDR}:${MODELS2_PORT_8000_TCP_PORT} | ||
server models0 ${MODELS0_PORT_8000_TCP_ADDR}:${MODELS0_PORT_8000_TCP_PORT} | ||
server models1 ${MODELS1_PORT_8000_TCP_ADDR}:${MODELS1_PORT_8000_TCP_PORT} | ||
server models2 ${MODELS2_PORT_8000_TCP_ADDR}:${MODELS2_PORT_8000_TCP_PORT} | ||
|
||
listen stats | ||
bind *:1938 | ||
mode http | ||
stats enable | ||
stats uri / | ||
stats hide-version | ||
stats auth username:password |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,31 @@ | ||
global | ||
maxconn 2048 | ||
log /dev/log local2 | ||
log-send-hostname | ||
|
||
defaults | ||
log global | ||
mode http | ||
option httplog | ||
option dontlognull | ||
timeout connect 5000ms | ||
timeout client 50000ms | ||
timeout server 50000ms | ||
|
||
frontend http-in | ||
frontend http-in | ||
bind *:8000 | ||
capture request header Host len 50 | ||
default_backend servers | ||
|
||
backend servers | ||
server server1 ${WEB0_PORT_8000_TCP_ADDR}:${WEB0_PORT_8000_TCP_PORT} | ||
server server2 ${WEB1_PORT_8000_TCP_ADDR}:${WEB1_PORT_8000_TCP_PORT} | ||
server server3 ${WEB2_PORT_8000_TCP_ADDR}:${WEB2_PORT_8000_TCP_PORT} | ||
server web0 ${WEB0_PORT_8000_TCP_ADDR}:${WEB0_PORT_8000_TCP_PORT} | ||
server web1 ${WEB1_PORT_8000_TCP_ADDR}:${WEB1_PORT_8000_TCP_PORT} | ||
server web2 ${WEB2_PORT_8000_TCP_ADDR}:${WEB2_PORT_8000_TCP_PORT} | ||
|
||
listen stats | ||
bind *:1936 | ||
mode http | ||
stats enable | ||
stats uri / | ||
stats hide-version | ||
stats auth username:password |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters