Skip to content

[Backport] Recompute active realms when license changes#76606

Merged
tvernum merged 1 commit intoelastic:7.xfrom
tvernum:backport/7.x/76592-Recompute-active-realms-when
Aug 18, 2021
Merged

[Backport] Recompute active realms when license changes#76606
tvernum merged 1 commit intoelastic:7.xfrom
tvernum:backport/7.x/76592-Recompute-active-realms-when

Conversation

@tvernum
Copy link
Copy Markdown
Contributor

@tvernum tvernum commented Aug 17, 2021

This commit changes the implementation of the Realms class to listen
for license changes, and recompute the set of actively licensed realms
only when the license changes rather than each time the "asList" method
is called.

This is primarily a performance optimisation, but it also allows us to
turn off the "in use" license tracking for realms when they are
disabled by a change in license.

Backport of: #76592

This commit changes the implementation of the Realms class to listen
for license changes, and recompute the set of actively licensed realms
only when the license changes rather than each time the "asList" method
is called.

This is primarily a performance optimisation, but it also allows us to
turn off the "in use" license tracking for realms when they are
disabled by a change in license.

Backport of: elastic#76592
@tvernum tvernum merged commit a7f6b38 into elastic:7.x Aug 18, 2021
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