Last active
November 22, 2023 15:56
-
-
Save mgodf89/94a22e5a9594b7ef3f8f77f9a433ab89 to your computer and use it in GitHub Desktop.
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
# Command to start HAProxy: | |
# haproxy -f /usr/local/etc/haproxy/participant_haproxy.cfg >> log/haproxy.log 2>&1 | |
# Note: Ensure monitoring.health.server is defined in either participant config! | |
global | |
log stdout format raw local0 | |
defaults | |
log global | |
mode http | |
option httplog | |
option logasap | |
timeout connect 15s | |
timeout client 30s | |
timeout server 90s | |
# Admin API traffic at :8002 forwarded to participants at :3051 and :3061 (checking ports :8000 and :8001) | |
frontend admin-api | |
bind :8002 proto h2 | |
default_backend admin-api | |
backend admin-api | |
option httpchk | |
http-check connect | |
http-check send meth GET uri /health | |
server participanta canton1-a:3051 proto h2 check port 8000 | |
server participantb canton1-b:3061 proto h2 check port 8001 | |
# Ledger API traffic at :8003 forwarded to participants at :3050 and :3060 (checking ports :8000 and :8001) | |
frontend ledger-api | |
bind :8003 proto h2 | |
default_backend ledger-api | |
backend ledger-api | |
option httpchk | |
http-check connect | |
http-check send meth GET uri /health | |
server participanta canton1-a:3050 proto h2 check port 8000 | |
server participantb canton1-b:3060 proto h2 check port 8001 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment