Difference between revisions of "Load balancer (Networking)"

From wikieduonline
Jump to navigation Jump to search
Tags: Mobile web edit, Mobile edit
Tags: Mobile web edit, Mobile edit
Line 3: Line 3:
  
  
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</ref>. Supported load balancer algorithms: [[Round Robin]], [[Least Connections]], [[IP Hash]], [[Generic Hash]], [[Least Time]] ([[Nginx Plus]]), [[Random]]
+
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</ref>.  
 +
* Supported load balancing algorithms: [[Round Robin]], [[Least Connections]], [[IP Hash]], [[Generic Hash]], [[Least Time]] ([[Nginx Plus]]), [[Random]]
 +
* Sticky methods: Sticky cookie, Sticky route ([[NGINX Plus]]), Sticky learn 
  
 
Network load balancer can provide service for different protocols, such as [[TCP]], [[UDP]], [[HTTP]] or [[HTTPS]].
 
Network load balancer can provide service for different protocols, such as [[TCP]], [[UDP]], [[HTTP]] or [[HTTPS]].

Revision as of 11:23, 13 April 2020

Load balancing across multiple application instances is a commonly used technique for optimizing resource utilization, maximizing throughput, reducing latency, and ensuring fault‑tolerant configurations.


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

Network load balancer can provide service for different protocols, such as TCP, UDP, HTTP or HTTPS.


Typical options:

Nginx configuration example

upstream backend {
    server backend1.example.com slow_start=30s;
    server backend2.example.com;
    server 192.0.0.1 backup;
}

Related terms

See also

  • https://docs.nginx.com/nginx/admin-guide/load-balancer/http-load-balancer/#overview
  • Advertising: