envoyproxy/envoy

Make grpc client cache eviction period configurable

Open

#29 982 ouverte le 5 oct. 2023

Voir sur GitHub
 (1 commentaire) (0 réactions) (0 assignés)C++ (5 373 forks)batch import
area/ext_authzarea/grpcenhancementhelp wanted

Métriques du dépôt

Stars
 (27 997 stars)
Métriques de merge PR
 (Merge moyen 8j) (378 PRs mergées en 30 j)

Description

Envoy is currently hardcoded to evict thread-local GRPC clients from its cache if there is no activity for 50s. Due to the low QPS and high number of Envoy worker threads, it is very easy to cross this interval between consecutive requests on the same worker thread. Hence, many authorization requests from worker threads will incur a connection restablishment latency, resulting in high client-side authorization delays.

To avoid this issue, we would like to be able to use a longer cache eviction timeout. It would be preferable if this timeout is configurable per proxy.

Guide contributeur