문제

I have a webserver which among other things serves static files. From this http://tools.pingdom.com report, it seems something is blocking when serving several files at the same time to the same client?

The wait-time increases for each image:

enter image description here

Report: http://tools.pingdom.com/fpt/dgrKAX/http://arkgis.org/DIQAB7

Why is this? The files are served with the default tornado.web.StaticFileHandler class, but this is not the behaviour that I expected! We have a need for speed!

What can I do to fix this?

EDIT:

I've now set up a nginx front-end — but I actually get the same increasing connect times in pingdom.com. Am I reading the report wrong? Is this due to something client-side? Or is my nginx configured wrong?

Report with nginx front-end:

enter image description here

도움이 되었습니까?

해결책

Use nginx.

File access in Python is blocking, so the Tornado IOLoop is going to be blocked while reading from disk.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top