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

Implement ingester graceful shutdown #4117

Merged
merged 1 commit into from
Nov 14, 2023

Conversation

guilload
Copy link
Member

@guilload guilload commented Nov 10, 2023

Description

Add a Decommission RPC to ingesters. By default, ingesters are in Ready status. Upon receiving a decommissioning request, ingesters change their status to Decommissioning, close all their shards, become read-only and wait for them to be indexed by monitoring calls to truncate. When the indexing of all the shards is completed, ingesters transition to the Decommissioned status at which point they become safe to shut down.

I also added a OpenObservationStream RPC to ingesters, so we can track the status of the decommissioning process. In the future, we can enrich the ObservationMessage object to track more things.

How was this PR tested?

  • Updated unit tests
  • Add unit tests
  • Tested manually

@guilload guilload force-pushed the guilload/ingester-graceful-shutdown branch from 0e1a943 to c99cc96 Compare November 13, 2023 16:23
@guilload guilload force-pushed the guilload/ingester-graceful-shutdown branch 2 times, most recently from 4c64ebf to b5a507e Compare November 14, 2023 03:29
@guilload guilload force-pushed the guilload/ingester-graceful-shutdown branch 2 times, most recently from 8916fb5 to 9697a4e Compare November 14, 2023 19:07
@guilload guilload force-pushed the guilload/ingester-graceful-shutdown branch from 9697a4e to 727e9a1 Compare November 14, 2023 19:47
@guilload guilload merged commit abea575 into main Nov 14, 2023
4 checks passed
@guilload guilload deleted the guilload/ingester-graceful-shutdown branch November 14, 2023 20:05
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