You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
nginx: memory under a fully traced load, and three request forms nginx answers otherwise than Envoy #65
Four things were seen while tracing was built for the nginx generator (pull request #64). None is corrected there.
Memory under tracing. With every request traced at 1,000 requests a second, nginx 1.31.8 held 525 MiB after
300 s (one run, the collector asked by address), where the same load levelled at about 348 MiB before proxyfile.js set each tag's value in one pass. The memory is not njs's heap, and where nginx keeps it was not
found. docs/nginx.md, "What tracing costs", gives the runs.
The admin listener answers an absolute request target of the scheme http with 200 and one of another
scheme with 400, where the Envoy output's admin listener answers every absolute target 404.
Under client_address: connection, an absolute https target sent over plain HTTP is answered 403 by the
Envoy output and 200 by nginx.
A tab beside the value of x-request-id or User-Agent reaches the service with the tab through nginx, where
Envoy removes it.
Points 2 to 4 were true before tracing as well. None of them is in nginx's list of the ways it is less strict than
the Envoy output, which proxyfile render --target nginx counts on standard error.
What is asked
For point 1: find what holds the memory, and bring it back to the earlier level or say on the page why it
cannot be.
For points 2 to 4: decide for each whether it is corrected or named in the less strict list, so the count render prints is true.
Consumers
Consumers: none (checked: grep -rn -e '--target' <the gateway's build files> prints 0 lines, and the control grep -rn -e '"-o"' on the same files prints 1 line, the render call, which passes no --target, so the one known user renders for Envoy and reads no nginx output)
Lane
LIGHT - a generator's behaviour and a page; it touches no money, data model, auth, schema or legal copy.
Open tickets
Open tickets checked: gh search issues nginx tracing --repo kitecorp/proxyfile --state open printed #22 only, the 2.0 tracking issue; the control gh search issues nginx --repo kitecorp/proxyfile --state open printed 3 (#22, #25, #26).
Filing note (2026-11-19)
The page gives the 525.1 MiB run and not the 348 MiB one. The 348 MiB is the median at 300 s of three runs (343.2 to 350.4 MiB) of the same set-up, nginx 1.31.8 with the collector asked by address, taken on 19 November 2026 with the same file and client before proxyfile.js read each tag's sources in one pass. The page as merged does not print that table, so point 1 compares one run with the median of three.
Pull request #69 merged as master 0986680 on 2026-11-20.
Point 1, memory under tracing. The cause is found and removed. proxyfile.js asked process.env with hasOwnProperty before it read an env tag's variable, in each traced request. It now reads the variable and takes it when it is a string, which is equal in behaviour for every name. At 1,000 traced requests a second for 300 s, asked by address:
Held at 300 s
nginx 1.31.8, the script of 2.2.0
523.5 MiB (median of three runs, 520.9 to 524.5)
nginx 1.31.8, now
222.7 MiB (one run)
nginx 1.30.6, now
175.7 MiB (one run)
So the single 525.1 MiB run of this ticket was no outlier, and the 348 MiB of the filing note is beaten. Why that call held memory outside the script's heap was not found; docs/nginx.md, "What tracing costs", says so, and says which of its other figures were measured before the change.
Points 2 to 4. Each was measured on nginx 1.30.6 and 1.31.8 beside Envoy 1.40.2 and holds, and each is named in nginx's list, not corrected: the admin listener answers an absolute request target; an https target sent over plain HTTP is served under client_address: connection; a tab at either end of a header's value reaches the service, for any header. A fourth was found on the way: under forwarded, an X-Forwarded-Proto that is neither http nor https is told to the auth check as it arrived. The list has 19 entries and render --target nginx prints 19; HAProxy's list gained the fourth and has 11.
Found and corrected in the same pull request. With auth.send_request: true and client_address: connection, the nginx output told the check the scheme of an absolute request target, so an https target sent over plain HTTP made the check read https. It now tells the check the connection's scheme, as docs/auth.md says.
The battery. It runs env tags whose variable is set and the scheme each proxy tells the check, and before any container starts it counts the rows each entry runs and fails when docs/conformance.md gives another number (11,165 rows in all). It ran once at the final tree before the pull request and passed, and Required was green.
Left for tickets of their own: the Envoy output tells the check https for an HTTP/2 request sent over plain HTTP with :scheme: https under connection; HAProxy's list was not checked against the three differences above; the conformance page's counts per scenario are still kept by hand.
For the next release's notes: every nginx file is rendered again (its proxyfile.js changes), and a file with auth.send_request: true and client_address: connection also gets a new nginx.conf.
Activity
nginx: the less strict list names four more differences, an env tag a…
tudor-pop commentedon Nov 20, 2026
Resolution
Pull request #69 merged as master
0986680on 2026-11-20.Point 1, memory under tracing. The cause is found and removed.
proxyfile.jsaskedprocess.envwithhasOwnPropertybefore it read anenvtag's variable, in each traced request. It now reads the variable and takes it when it is a string, which is equal in behaviour for every name. At 1,000 traced requests a second for 300 s, asked by address:So the single 525.1 MiB run of this ticket was no outlier, and the 348 MiB of the filing note is beaten. Why that call held memory outside the script's heap was not found;
docs/nginx.md, "What tracing costs", says so, and says which of its other figures were measured before the change.Points 2 to 4. Each was measured on nginx 1.30.6 and 1.31.8 beside Envoy 1.40.2 and holds, and each is named in nginx's list, not corrected: the admin listener answers an absolute request target; an
httpstarget sent over plain HTTP is served underclient_address: connection; a tab at either end of a header's value reaches the service, for any header. A fourth was found on the way: underforwarded, anX-Forwarded-Protothat is neitherhttpnorhttpsis told to the auth check as it arrived. The list has 19 entries andrender --target nginxprints 19; HAProxy's list gained the fourth and has 11.Found and corrected in the same pull request. With
auth.send_request: trueandclient_address: connection, the nginx output told the check the scheme of an absolute request target, so anhttpstarget sent over plain HTTP made the check readhttps. It now tells the check the connection's scheme, asdocs/auth.mdsays.The battery. It runs
envtags whose variable is set and the scheme each proxy tells the check, and before any container starts it counts the rows each entry runs and fails whendocs/conformance.mdgives another number (11,165 rows in all). It ran once at the final tree before the pull request and passed, andRequiredwas green.Left for tickets of their own: the Envoy output tells the check
httpsfor an HTTP/2 request sent over plain HTTP with:scheme: httpsunderconnection; HAProxy's list was not checked against the three differences above; the conformance page's counts per scenario are still kept by hand.For the next release's notes: every nginx file is rendered again (its
proxyfile.jschanges), and a file withauth.send_request: trueandclient_address: connectionalso gets a newnginx.conf.envoy: under client_address connection the auth check is told the con…