Absurdly high glance haproxy timeout (6 hours)

Bug #1892219 reported by Radosław Piliszek
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
kolla-ansible
Triaged
Medium
Unassigned

Bug Description

As in the summary: haproxy has both client and server timeout for glance default to 6 hours.
These timeouts are for inactivity periods, i.e. 6 hours of no traffic from either side.
It was originally proposed as a fix for glance timeouts on long transfers [1] but I could not confirm it happening: testing with timeouts as low as 1 second works just fine even if the upload takes an hour.
Such long timeouts are generally discouraged because they may create lots of unclosed or half-closed connections laying around. Also, many Glance actions are not lengthy in any sense - requests asking for image listing or image details laying around for 6 hours sound silly. :-)

I argue that the 6 hours timeout is not a fix but a bug now, i.e. it creates new issues and hides other issues - if you have uploads having 6 hours of *inactivity*, you are having issues with storage.

[1] https://review.opendev.org/449440

Revision history for this message
Dan S (shirtsdan) wrote :

It's worth noting that there are undocumented flags that you can add to globals.yaml to control the timeout:
haproxy_glance_api_client_timeout: "1m"
haproxy_glance_api_server_timeout: "1m"

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.