Skip to content

Set external authentication request timeout

Tan Le requested to merge 101-set-auth-request-timeout into main

What does this MR do and why?

Set external authentication request timeout

By default, requests do not time out unless a timeout value is set explicitly. Without a timeout, the code may hang for minutes or more. In the worst-case scenario, the web threads are exhausted and it causes latency issues.

See Timeouts documentation for more information.

Implementation

I have set this request timeout to 1 second. This is based on the existing response time collected from log and prometheus.

Log

Screenshot_2023-05-23_at_12.10.15_am

(internal link - required login)

Grafana

Screenshot_2023-05-23_at_9.40.09_am

Related to #101 (closed)

Edited by Tan Le

Merge request reports