From af87f57eb3a9f8bb554a02a94d2690c7315e0e6e Mon Sep 17 00:00:00 2001 From: "David H. Irving" Date: Wed, 20 Nov 2024 14:45:23 -0700 Subject: [PATCH] Enable Gafaelfawr caching for Butler server Butler clients often make large numbers of small requests using the same access token. Enabling this cache avoids hitting the Gafaelfawr service repeatedly for these requests, reducing load on the service and improving request latency. --- applications/butler/templates/ingress-authenticated.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/applications/butler/templates/ingress-authenticated.yaml b/applications/butler/templates/ingress-authenticated.yaml index bf7127de6e..d20e8bc8a2 100644 --- a/applications/butler/templates/ingress-authenticated.yaml +++ b/applications/butler/templates/ingress-authenticated.yaml @@ -5,6 +5,9 @@ metadata: labels: {{- include "butler.labels" . | nindent 4 }} config: + # The Butler server often services large numbers of small requests, + # so this cache reduces the load on Gafaelfawr. + authCacheDuration: 5m baseUrl: {{ .Values.global.baseUrl | quote }} scopes: all: