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

Unable to process a large number of requests #5

Open
cocos56 opened this issue Jul 30, 2020 · 8 comments
Open

Unable to process a large number of requests #5

cocos56 opened this issue Jul 30, 2020 · 8 comments
Labels
wontfix This will not be worked on

Comments

@cocos56
Copy link

cocos56 commented Jul 30, 2020

We can test this on Linux using the following command:

ab -n 20000 -c 20 http://1.coco56.top/%E5%A4%A7%E5%9E%8B%E8%BD%AF%E4%BB%B6/

image

image

image

@cocos56
Copy link
Author

cocos56 commented Jul 30, 2020

This does not happen on IIS
image

@rejetto
Copy link
Owner

rejetto commented Jul 30, 2020

if you are concerned about that "busy" message, it will appear after just 1 request from the same IP, because you are requesting folders (not files) and that's by design with 2.4.
HFS is not a high-performance server but if you are interested in benchmarks you can try requesting a file.
Cosnider that if you generate more log like i see in your screenshot you will also use more cpu.

@rejetto rejetto added the wontfix This will not be worked on label Jul 30, 2020
@cocos56
Copy link
Author

cocos56 commented Aug 10, 2020

I use ab -n 20000 -c 64 http://1.coco56.top/robots.txt in Ununtu to request robots.txt file.

But HFS use a lot of ports, I think one port is enough. Too many ports also make it impossible to handle a large number of requests.
image

image

image

@cocos56
Copy link
Author

cocos56 commented Aug 10, 2020

The port changes every time I make a request.

@rejetto
Copy link
Owner

rejetto commented Aug 10, 2020

You misunderstood what that specific port is: it is the client's port.
This is how TCP works, and it is true for every TCP server, even if most programs won't show you, because you normally don't need to know.
The server port is only one, and HFS is not even able at the moment to have more than one.

@cocos56
Copy link
Author

cocos56 commented Aug 26, 2020

When HFS sends 409, what's the time of Retry-After ? And why the client sends a large number of requests consecutively in a very short period of time ?
image
image

@mrp8ge8
Copy link

mrp8ge8 commented Jan 7, 2021

When HFS sends 409, what's the time of Retry-After ? And why the client sends a large number of requests consecutively in a very short period of time ?
image
image

静态文件,用Nginx更牛B。打算做文件床的话,用Nginx,Apache Http都行啊,非得来折腾这个

@rejetto
Copy link
Owner

rejetto commented Jan 7, 2021

The time communicated is random in the range 1-3 seconds.
The http header used is not retry-after but "refresh", but I guess retry-after could even be better, and we may have both just to be sure that more clients will understand. Thanks for pointing it out.
About the "why the client..." question, you should probably ask to whoever made the client, i have no idea.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

3 participants