hithere helps visualize and verify your clusters load balancing.
-
Initialise your docker swarm and join nodes, docker login to ghcr
docker service create --with-registry-auth --name hithere --env host={{.Node.Hostname}} --publish published=8083,target=8083 --replicas 20 ghcr.io/joschahenningsen/hithere/hithere
$ curl -s 127.0.0.1:8083
> Hello From server1
$ curl -s 127.0.0.1:8083
> Hello From server7
$ curl -s 127.0.0.1:8083
> Hello From server42
- Repeat until it gets boring