Nginx upstream directive

From wikieduonline
Revision as of 11:14, 29 December 2019 by Welcome (talk | contribs) (Created page with "Load balancing in Nginx is configured using <code>upstream</code> directive.<ref>https://docs.nginx.com/nginx/admin-guide/load-balancer/http-load-balancer/#overview</r...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Load balancing in Nginx is configured using upstream directive.[1]

http {
    upstream backend {
        server backend1.example.com weight=3;
        server backend2.example.com;
        server 192.0.10.1 backup;
    }
}

Advertising: