mirror of https://github.com/zulip/zulip.git
sentry: Reduce http timeout.
This helps reduce the impact on busy uwsgi processes in case there are slow timeout failures of Sentry servers. The p99 is less than 300ms, and p99.9 per day peaks at around 1s, so this will not affect more than .1% of requests in normal operation. This is not a complete solution (see #26229); it is merely stop-gap mitigation.
This commit is contained in:
parent
3d8090a116
commit
a076d49be7
|
@ -17,7 +17,7 @@ from zerver.lib.validator import (
|
|||
|
||||
class SentryTunnelSession(OutgoingSession):
|
||||
def __init__(self) -> None:
|
||||
super().__init__(role="sentry_tunnel", timeout=5)
|
||||
super().__init__(role="sentry_tunnel", timeout=1)
|
||||
|
||||
|
||||
@csrf_exempt
|
||||
|
|
Loading…
Reference in New Issue