Skip to content

Double nginx worker connections #2785

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Sep 17, 2020

Conversation

jtgeibel
Copy link
Member

This should double our burst capacity during large influxes of download
traffic and reduce the occurance of H13 errors due to hitting the worker
connection limit.

With more queued connections we could potentially bump into limits on
the number of open file handles. It looks like Heroku dynos have a
ulimit on open files of:

  • 10,000 for Standard-1X dynos
  • 1,048,576 for Performance-M dynos

Based on these numbers, we have a margin of 1,808 file handles for
database connections, serving static files, etc. even on a Standard-1X
dyno.

r? @pietroalbini

This should double our burst capacity during large influxes of download
traffic and reduce the occurance of H13 errors due to hitting the worker
connection limit.

With more queued connections we could potentially bump into limits on
the number of open file handles. It looks like Heroku dynos have a
ulimit on open files of:
* 10,000 for Standard-1X dynos
* 1,048,576 for Performance-M dynos

Based on these numbers, we have a margin of 1,808 file handles for
database connections, serving static files, etc. even on a Standard-1X
dyno.
CloudFront with "helpfully" replace an empty/missing user-agent header
with "Amazon CloudFront", so we have to treat that as equivalent to an
empty header.
@jtgeibel jtgeibel force-pushed the double-nginx-worker-connections branch from c3ef76d to f372d6f Compare September 17, 2020 02:45
@pietroalbini
Copy link
Member

@bors r+

@bors
Copy link
Contributor

bors commented Sep 17, 2020

📌 Commit f372d6f has been approved by pietroalbini

@bors
Copy link
Contributor

bors commented Sep 17, 2020

⌛ Testing commit f372d6f with merge f6d8342...

@bors
Copy link
Contributor

bors commented Sep 17, 2020

☀️ Test successful - checks-travis
Approved by: pietroalbini
Pushing f6d8342 to master...

@bors bors merged commit f6d8342 into rust-lang:master Sep 17, 2020
@jtgeibel jtgeibel deleted the double-nginx-worker-connections branch September 19, 2020 22:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants