Editing Load balancer (Networking)

Jump to navigation Jump to search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

Latest revision Your text
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>.
+
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 ([[NGINX Plus]]): 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]].
Line 11: Line 9:
  
  
== Configuration options ==
+
Typical options:
* Listening port
+
* [[TCP]], [[UDP]], [[HTTP]], [[HTTPS]]
* [[FQDN]]
 
* [[Protocol]]: [[TCP]], [[UDP]], [[HTTP]], [[HTTPS]], [[WebSockets]]
 
* Destination servers and destination port
 
 
* Load Balancing algorithm: [[WRR]], [[weighted least connection]], [[source IP hash]]
 
* Load Balancing algorithm: [[WRR]], [[weighted least connection]], [[source IP hash]]
* [[Sticky]] [[session]] (session affinity)
+
* [[Sticky]] [[session]]
  
== Nginx configuration example ==
 
<pre>
 
upstream backend {
 
    # no load balancing method is specified for Round Robin. Other options: least_conn, ip_hash, least_time header, random two least_time=last_byte
 
    server backend1.example.com slow_start=30s;
 
    server backend2.example.com max_conns=3;
 
    server backend3.example.com weight=5;
 
    server backend4.example.com;
 
    #server backend5.example.com:443;    (if you are connecting to an https backend. Additional configuration is required)
 
    server 192.0.0.1 backup;
 
    #queue 100 timeout=70;  (option if using max_conns directive)
 
}
 
</pre>
 
  
 
== HTTPS termination ==
 
[[HTTPS]] termination is at least supported on [[Nginx]], [[Amazon ELB]]<ref>https://aws.amazon.com/elasticloadbalancing/faqs/</ref> and [[OpenStack]] <ref>https://docs.openstack.org/octavia/latest/user/guides/basic-cookbook.html#deploy-a-load-balancer-with-backend-re-encryption</ref>
 
 
== Activities ==
 
* Read NGINX how to secure HTTP Traffic to Upstream Servers https://docs.nginx.com/nginx/admin-guide/security-controls/securing-http-traffic-upstream/
 
  
 
== Related terms ==
 
== Related terms ==
* [[Amazon Load Balancers]]
 
* [[Security groups for your Application Load Balancer (ALB)]]
 
* [[Security groups for your Network Load Balancer (NLB)]] (do not have)
 
* [[ALB]]
 
 
* [[Amazon Elastic Load Balancer (ELB)]]
 
* [[Amazon Elastic Load Balancer (ELB)]]
* [[Application Load Balancer (ALB)]]: [[AWS Application Load Balancer (ALB)]]
 
* [[Google Cloud Load Balancing]]
 
 
* [[Load Balancer as a Service (LBaaS)]]
 
* [[Load Balancer as a Service (LBaaS)]]
* <code>[[openstack loadbalancer create]]</code>
 
* [[Envoy Proxy]]
 
* [[Oracle Cloud Load Balancer]]
 
* [[Kubernetes load balancers]]
 
* [[IncompatibleProtocols]]
 
* [[MetalLB]] ([[Kubernetes]])
 
* [[Emerald Dshackle]]
 
  
 
== See also ==
 
== See also ==
 
* {{HTTPS}}
 
* {{HTTPS}}
 
* {{Proxy}}
 
* {{Proxy}}
* {{ALB}}
+
* [[Traefik]]
* {{LB}}
 
  
 
[[Category:web]]
 
[[Category:web]]

Please note that all contributions to wikieduonline may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see Wikieduonline:Copyrights for details). Do not submit copyrighted work without permission!

Cancel Editing help (opens in new window)

Templates used on this page:

Advertising: