Skip to content

performance: share a single secret store (7.7. backport of #10794) - #11772

Merged
elasticsearch-bot merged 1 commit into
elastic:7.7from
yaauie:substitution-variable-singleton-secret-store-7.7-backport
May 15, 2020
Merged

elasticsearch-bot merged 1 commit into
elastic:7.7from
yaauie:substitution-variable-singleton-secret-store-7.7-backport

Conversation

@yaauie

@yaauie yaauie commented Apr 10, 2020

Copy link
Copy Markdown
Member

Loading a Java Keystore can take anywhere from ~0.3s to upwards of 3s, so the
pattern of loading one per variable we need to replace adds a significant
amount of overhead on pipelines that use these variables, whether or not they
are provided by the keystore.

By providing a private, constant, lazy singleton, we ensure that we don't
incur the cost of repeatedly building the keystore.

Loading a Java Keystore can take anywhere from ~0.3s to upwards of 3s, so the
pattern of loading one per variable we need to replace adds a significant
amount of overhead on pipelines that use these variables, whether or not they
are provided by the keystore.

By providing a private, constant, lazy singleton, we ensure that we don't
incur the cost of repeatedly building the keystore.
@elasticsearch-bot

Copy link
Copy Markdown

Robert Bavey merged this to 7.7!

@elasticsearch-bot
elasticsearch-bot merged commit 41a8c6d into elastic:7.7 May 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants