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:
Alex Vandiver 2023-07-10 16:03:13 +00:00 committed by Tim Abbott
parent 3d8090a116
commit a076d49be7
1 changed files with 1 additions and 1 deletions

View File

@ -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