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

Rule Concurrency: Support self references #10431

Merged
merged 2 commits into from
Jan 14, 2025

Conversation

julienduchesne
Copy link
Member

After deployment of #10400 to dev, we are getting some of these warnings:

Cyclic rule dependencies detected, falling back to sequential rule evaluation

It turns out to be a recording rule that is self referencing (using last_over_time to fall back to its last value).

Whenever a rule's unevaluated dependencies consist of only itself, it is OK to be run. A caveat is that if there are two rules recording to a metric with the same name, but with different labels, the dependency tree cannot be built and concurrency is not possible

After deployment of to dev, we are getting some of these warnings:
```
Cyclic rule dependencies detected, falling back to sequential rule evaluation
```

It turns out to be a recording rule that is self referencing (using `last_over_time` to fall back to its last value).

Whenever a rule's unevaluated dependencies consist of only itself, it is OK to be run. A caveat is that if there are two rules recording to a metric with the same name, but with different labels, the dependency tree cannot be built and concurrency is not possible
@julienduchesne julienduchesne marked this pull request as ready for review January 13, 2025 19:17
@julienduchesne julienduchesne requested review from a team as code owners January 13, 2025 19:17
@julienduchesne julienduchesne merged commit 386f2a9 into main Jan 14, 2025
29 checks passed
@julienduchesne julienduchesne deleted the julienduchesne/concurrency-self branch January 14, 2025 14:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants