The upstream module
Closely paired with the proxy module is the upstream module. The upstream directive starts a new context in which a group of upstream servers is defined. These servers may be given different weights (the higher the weight, the greater the number of connections NGINX will pass to that particular upstream server), may be of different types (TCP versus UNIX domain), and may even be marked as down for maintenance reasons.
The following table summarizes the directives valid within the upstream context:
|
The upstream module directives |
Explanation |
|---|---|
|
|
This directive ensures the distribution of connecting clients evenly over all servers by hashing the IP address, keying on its class-C network. |
|
|
This directive specifies ... |
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access