Complete the code to define an upstream block named 'backend'.
upstream [1] {
server backend1.example.com;
}The upstream block name is 'backend' to match the server group.
Complete the code to enable keepalive connections with 32 connections.
upstream backend {
server backend1.example.com;
[1] 32;
}The 'keepalive' directive sets the number of idle keepalive connections to upstream servers.
Fix the error in the proxy_pass directive to use the upstream named 'backend'.
location / {
proxy_pass http://[1];
}The proxy_pass should point to the upstream group name 'backend' to use connection pooling.
Fill both blanks to configure proxy settings for connection reuse and timeout.
location / {
proxy_http_version [1];
proxy_set_header Connection [2];
proxy_pass http://backend;
}HTTP version 1.1 and 'keep-alive' header enable connection reuse with upstream servers.
Fill all three blanks to create an upstream with two servers and enable keepalive connections.
upstream backend {
server [1];
server [2];
[3] 16;
}Two servers are listed and 'keepalive' is set to 16 to enable connection pooling.