Laboratorio NetForgeNetForge lab bilanciamentoload balancing

Ti ha risposto backend-2Answered by backend-2

Dietro lb.selif.org ci sono tre container uguali. nginx, configurato da arx, passa le richieste a turno: ricarica la pagina e cambia chi risponde.

Behind lb.selif.org there are three identical containers. nginx, configured by arx, hands requests to each in turn: reload the page and a different one answers.

Il gruppo di backendThe backend pool

backend-1:8081
backend-2:8082
backend-3:8083

Dal vivoLive

BackendBackendbackend-2
ContainerContainer30b115c764ba
Il tuo IP, passato da arxYour IP, passed on by arx216.73.217.6
Chi si collega al containerWho connects to the container172.18.0.1
Ora del container (UTC)Container time (UTC)2026-10-04 22:02:34

Il container non vede te: vede nginx di arx, che arriva dalla rete di Docker. Il tuo IP glielo passa arx nell'header X-Real-IP.

The container does not see you: it sees arx's nginx, coming from the Docker network. arx passes your IP along in the X-Real-IP header.

Il percorso della richiestaHow the request travels

il tuo browseryour browser→:443 nginx→upstream (round robin)→127.0.0.1:8081 · 8082 · 8083

Cosa ha fatto arxWhat arx did

Controllalo da teCheck it yourself

for i in 1 2 3 4 5 6; do curl -s https://lb.selif.org/name; done

Stampa i tre nomi a turno: backend-1, backend-2, backend-3, e di nuovo da capo.

It prints the three names in turn: backend-1, backend-2, backend-3, then over again.