By Greg Nowak
An NGINX 1.30 upgrade can change how your reverse proxy talks to your application servers even when you deploy the same configuration. NGINX now defaults to HTTP/1.1 for proxied HTTP requests and can keep connections to named upstreams open for reuse. That saves connection setup on busy routes. It also means a backend may have more open sockets between requests than it did before.
Start with the routes your business depends on, such as checkout, sign-in or a client API. Find out which backends serve them, how close those backends run to their connection limits and who can reverse the rollout if users start seeing errors.
What changed in NGINX 1.30?
The new defaults arrived in mainline 1.29.7 and carried into the 1.30 stable branch. NGINX sends upstream HTTP requests using HTTP/1.1 by default and omits the Connection header unless you configure it. A named upstream group gets a cache of up to 32 idle connections per worker. A direct proxy_pass URL with no matching named group gets the HTTP/1.1 default without that cache.
Think before removing an existing keepalive 32; directive. It allows matching connections to be reused across locations that point to the same group. With the default keepalive 32 local; behaviour, a connection is eligible for reuse by its original location. The locations still draw from the same group's cache capacity.
Check the configuration your service actually uses
On the current and candidate environments, use the same NGINX binary, configuration path and startup options as the service. For a container deployment, run the checks inside the container built from the image you plan to ship.
nginx -V
nginx -T > nginx-effective.conf 2>&1
nginx -tnginx -V reports the build and configure options. nginx -T tests and dumps the configuration files, including includes. Save that output in a restricted directory because it can contain sensitive values. Run nginx -t again after editing the candidate configuration.
Trace each important proxy_pass to its backend. Look for explicit proxy_http_version, keepalive, max_conns and proxy_set_header Connection settings. An explicit Connection: close can prevent reuse. A location with its own proxy_set_header directive stops inheriting the parent set, so check that it still sends the intended Host and forwarding headers. If a control panel or deployment template generates the file, make any lasting fix there.
Work out how many connections your backends can handle
Four workers can retain up to 128 idle connections for one named group at the default setting. That is the total across the group's servers for one NGINX instance. Active requests use additional connections. If several proxies or upstream groups reach the same backend, account for all of them. The max_conns directive limits active connections, and the limit applies per worker when the group has no shared-memory zone. Even with a zone, active and idle connections together can exceed that value.
Measure new connections per second, open sockets and file-descriptor use on the proxy and backends. Check application queues and database pool waits under the same load. Connection reuse can lower the rate of new connections while leaving more sockets open. Both measurements matter when the backend is close to capacity.
Test real traffic and rehearse recovery
Run the same traffic mix against your current build and the exact package or image you intend to ship. Exercise the busiest routes at representative concurrency and include slow responses, uploads and long-lived sessions where you use them. Use test accounts and data for requests that create orders or trigger integrations.
| Test | What to run | What to verify |
|---|---|---|
| Busy routes | Exercise sign-in, checkout or API calls at peak concurrency. | Compare tail latency, 5xx rates and backend connection headroom with your baseline. |
| Long-lived requests | Run uploads, streams and WebSocket sessions through their normal idle periods. | Check completion, expected timeouts and reconnects. |
| Backend restart | Warm the connection cache, then restart a backend while traffic is flowing in staging. | Measure failed requests and how long recovery takes. |
| Rollout reversal | Restore the previous tested build and configuration, or shift traffic back. | Confirm the owner can execute the rollback and verify recovery. |
Keep compatibility changes specific
If a legacy backend fails with HTTP/1.1, test an explicit HTTP/1.0 override for its route. If the issue is connection reuse, test keepalive 0; in that named upstream first. It disables caching for every route using the group. The example below shows both settings. Put the upstream block inside http and the location inside the relevant server, preserving any custom request headers the route needs.
upstream legacy_backend {
server 127.0.0.1:8080;
keepalive 0;
}
location /legacy/ {
proxy_http_version 1.0;
proxy_set_header Connection close;
proxy_pass http://legacy_backend;
}Deploy the build you tested
As of 26 November 2026, the latest upstream stable release is NGINX 1.30.8, released on 23 November. Test the exact build your package vendor or container registry will deliver, with the same modules and generated configuration you use in production. Agree on rollback thresholds for errors, latency and backend saturation before routing traffic to the first upgraded instance.
If your hosting provider, agency and application team each own part of the stack, Greg can help review the configuration, agree on what to measure and put one person in charge of the rollout decision. Talk to Greg about planning your NGINX upgrade.
Related on GrN.dk
- NGINX 1.30 and upstream connection reuse: what to check before upgrading
- Before You Buy a GPU: Test Your Team’s Local AI Workload
- NGINX Can Read JSON Before Routing—Should It Handle Your AI API?
Need help with this kind of work?
Talk to Greg about planning your NGINX upgrade Get in touch with Greg.