Add upstream
Select a server: |
Note: If you re-configure the master server, the slave server will be re-configured automatically
|
The upstream module is used to define groups of servers.
Defines a group of servers. Servers can listen on different ports. In addition, servers listening on TCP and UNIX-domain sockets can be mixed..
By default, requests are distributed between the servers using a weighted round-robin balancing method.
|
Name: |
{{ input('name', name='upstream', title="Name upstream", placeholder="backend_servers", required='required') }}
|
Balance: |
{{ select('balance', values=balance_params, selected='least_conn', required='required', class='force_close') }}
|
Keepalive: |
{{ input('name', name='keepalive', title="The connections parameter sets the maximum number of idle keepalive connections to upstream servers that are preserved in the cache of each worker process. When this number is exceeded, the least recently used connections are closed.", placeholder="32") }}
|
Servers: |
{% include 'include/add_nginx_servers.html' %}
|
|
Add Upstream
|
Generate config
|