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

Update cache on CAS for DDB #5838

Merged
merged 3 commits into from
Mar 28, 2024
Merged

Conversation

danielblando
Copy link
Contributor

@danielblando danielblando commented Mar 28, 2024

What this PR does:
We are now also updating the staleData on CAS operation.
The CAS operation is mostly used via lifecycle and did not had any data before. This change start to also have stale data on lifecycle. This is mainly important because the ring of a lifecycle is used by distributor to check local limits.

Which issue(s) this PR fixes:
When using DDB and having unhealthy distributors on the ring, the healthInstancesCount on the ring was calculated wrong because the staleData was not set and by that the timestamp from the last update was empty making the heartbeat of pods be always healthy. This introduce stale data to lifecycle which is used to check for local limits.

Checklist

  • Tests updated
  • Documentation added
  • CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX]

Signed-off-by: Daniel Deluiggi <ddeluigg@amazon.com>
Signed-off-by: Daniel Deluiggi <ddeluigg@amazon.com>
@danielblando danielblando marked this pull request as ready for review March 28, 2024 17:37
Copy link
Contributor

@wenxu1024 wenxu1024 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thx.

Signed-off-by: Daniel Deluiggi <ddeluigg@amazon.com>
@yeya24 yeya24 merged commit 6b0d61c into cortexproject:master Mar 28, 2024
16 checks passed
@danielblando danielblando deleted the updateCacheOnCas branch March 28, 2024 21:13
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.

3 participants