Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[branch/v9] Prevent relative expiry from emitting more events than can be processed (#12002) #12247

Merged
merged 4 commits into from
May 2, 2022

Conversation

rosstimothy
Copy link
Contributor

Backport

This will backport the following commits from master to branch/v9:

Questions ?

Please refer to the Backport tool documentation

…ed (#12002)

* Prevent relative expiry from emitting more events than can be processed

This alters relative expiry in four ways:

1) Relative expiry is no longer exclusively run by the auth cache
2) Relative expiry no longer emits delete events
3) There is now a limit to the number of nodes removed per interval
4) Relative expiry now runs more frequently

We can remove the need to emit any fake delete events during relative
expiry by not running it exclusively in the auth cache. All caches
will now run relative expiry themselves, even the components that
don't watch for nodes - this is effectively a noop for them. To
prevent the individual caches from getting too far out of sync, the
expiry interval is set to a much smaller value and we limit the
number of nodes being deleted per interval.

(cherry picked from commit b8394b3)
@rosstimothy rosstimothy force-pushed the backport/branch/v9/pr-12002 branch from 4c9fb58 to fe06101 Compare April 26, 2022 20:08
@rosstimothy
Copy link
Contributor Author

friendly ping @LKozlowski

@rosstimothy rosstimothy merged commit c82d6b2 into branch/v9 May 2, 2022
@webvictim webvictim mentioned this pull request Jun 8, 2022
@rosstimothy rosstimothy deleted the backport/branch/v9/pr-12002 branch July 6, 2022 21:21
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.

4 participants