feat(infra): add Traefik load balancer with active node health check for central cluster failover
Add ActiveNodeHealthCheck that returns 200 only on the Akka.NET cluster leader, enabling Traefik to route traffic to the active central node and automatically fail over when the leader changes. Also fixes AkkaClusterHealthCheck to resolve ActorSystem from AkkaHostedService (was always null via DI).
This commit is contained in:
@@ -18,10 +18,12 @@ docker compose -f "$SCRIPT_DIR/docker-compose.yml" ps
|
||||
|
||||
echo ""
|
||||
echo "Access points:"
|
||||
echo " Central UI (node A): http://localhost:9001"
|
||||
echo " Central UI (node B): http://localhost:9002"
|
||||
echo " Health check: http://localhost:9001/health/ready"
|
||||
echo " CLI contact points: akka.tcp://scadalink@localhost:9011"
|
||||
echo " akka.tcp://scadalink@localhost:9012"
|
||||
echo " Central (Traefik LB): http://localhost:9000"
|
||||
echo " Central UI (node A): http://localhost:9001"
|
||||
echo " Central UI (node B): http://localhost:9002"
|
||||
echo " Health check: http://localhost:9001/health/ready"
|
||||
echo " Active node check: http://localhost:9001/health/active"
|
||||
echo " Traefik dashboard: http://localhost:8180"
|
||||
echo " Management API: http://localhost:9000/management"
|
||||
echo ""
|
||||
echo "Logs: docker compose -f $SCRIPT_DIR/docker-compose.yml logs -f"
|
||||
|
||||
Reference in New Issue
Block a user