Skip to content
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

HTTP 429 Too Many Requests from Nginx #144

Closed
vorburger opened this issue Dec 4, 2022 · 2 comments
Closed

HTTP 429 Too Many Requests from Nginx #144

vorburger opened this issue Dec 4, 2022 · 2 comments

Comments

@vorburger
Copy link
Contributor

I toyed around with some "load testing" (using the test CID URL from #124/#142), and found that:

ab -n 10000 -c 2 http://192.168.1.xxx:31080/ipfs/QmXjYBY478Cno4jzdCcPy4NcJYFrwHZ51xaCP8vUwN9MGm/

works great and has Failed requests: 0. But if I crank up the concurrency (the -c) just one notch from 2 to 3, it will soon fail with HTTP 429 = Too Many Requests (from Nginx), and have e.g. 996 Failed requests (for me).

Is this expected? Maybe it's totally fine, and exactly Working As Intended (WAI); I'm just wondering.

#143 COULD be related and relevant for this? If Nginx can't tell HTTP clients apart, will this happen IRL?

@vorburger
Copy link
Contributor Author

https://www.nginx.com/blog/rate-limiting-nginx/ has some background about this stuff (I haven't fully read it, yet).

@DiegoRBaquero
Copy link
Collaborator

This is intended and it's a very basic anti ddos measure

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

No branches or pull requests

2 participants