apache - Plone taking a long time to respond to byte-range request -
we have 2 upgraded plone 4.3.2 instances behind haproxy load balancer behind apache.
we limit each plone instance serving 2 concurrent requests using haproxy configuration.
we encountered issue whereby client sent 4 byte-range requests in quick succession pdf each took between 6 , 8 minutes response. locked available requests 6 minutes , haproxy timed out other requests in queue. pdf stored atfile object in plone believe should have been migrated blob storage in our recent upgrade.
my question steps should take prevent similar scenario in future?
i'm interested in:
- how debug why byte-range requests on otherwise lightly loaded server should take long respond
- how plone.app.blob deals byte-range requests
- is possible configure apache such byte-range requests served cache not back-end server
as requested here haproxy.cfg superfluous configuration stripped out.
global maxconn 450 spread-checks 3 defaults log /dev/log local0 mode http option http-server-close option abortonclose option redispatch option httplog timeout connect 7s timeout client 300s timeout queue 120s timeout server 300s listen cms 127.0.0.1:18181 id 3 balance leastconn option httpchk http-check send-state timeout check 10s acl cms_edit url_dom xxx.xxx.xxx.xxx acl cms_not_ok nbsrv() lt 2 block if cms_edit cms_not_ok server cms_instance1 app:18081 check downinter 10s maxconn 2 rise 1 slowstart 300s server cms_instance2 app:18082 check downinter 10s maxconn 2 rise 1 slowstart 300s
you can install https://pypi.python.org/pypi/products.longrequestlogger , check log file see request gets stuck.
Comments
Post a Comment