-
Notifications
You must be signed in to change notification settings - Fork 212
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
introduce haproxy to test horizontal scalability
- Loading branch information
1 parent
0c22707
commit b9ef058
Showing
6 changed files
with
50 additions
and
46 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"watch": ["src", ".env", "package.json"], | ||
"ext": "ts", | ||
"exec": "node --max-old-space-size=16384 --inspect --loader ts-node/esm ./src/index.ts | pino-pretty" | ||
} |
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
global | ||
# No 'log' directive here | ||
daemon | ||
|
||
defaults | ||
mode http | ||
timeout connect 5000ms | ||
timeout client 50000ms | ||
timeout server 50000ms | ||
option httplog | ||
option http-server-close | ||
|
||
frontend main | ||
bind *:8080 | ||
default_backend servers | ||
|
||
backend servers | ||
balance roundrobin | ||
cookie SERVERID insert | ||
server app1 host.docker.internal:8081 check cookie app1 | ||
server app2 host.docker.internal:8082 check cookie app2 |
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