Skip to content

Cache API key doc to reduce traffic to the security index (#59376)#63319

Merged
ywangd merged 5 commits intoelastic:7.xfrom
ywangd:es-53940-apikey-getdoc-avoidance-7.x
Oct 6, 2020
Merged

Cache API key doc to reduce traffic to the security index (#59376)#63319
ywangd merged 5 commits intoelastic:7.xfrom
ywangd:es-53940-apikey-getdoc-avoidance-7.x

Conversation

@ywangd
Copy link
Copy Markdown
Member

@ywangd ywangd commented Oct 6, 2020

Getting the API key document form the security index is the most time consuing part
of the API Key authentication flow (>60% if index is local and >90% if index is remote).
This traffic is now avoided by caching added with this PR.

Additionally, we add a cache invalidator registry so that clearing of different caches will
be managed in a single place (requires follow-up PRs).

)

Getting the API key document form the security index is the most time consuing part
of the API Key authentication flow (>60% if index is local and >90% if index is remote).
This traffic is now avoided by caching added with this PR.

Additionally, we add a cache invalidator registry so that clearing of different caches will
be managed in a single place (requires follow-up PRs).
@ywangd ywangd added the backport label Oct 6, 2020
@ywangd ywangd merged commit 7969fbb into elastic:7.x Oct 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant