-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cmd,pkg: flush storage when hashring changes (#1480)
* pkg/receive: create flushable storage Signed-off-by: Lucas Servén Marín <lserven@gmail.com> * cmd,pkg: flush storage when hashring changes In order to allow the hashring of receive nodes to scale at runtime, we need to temporarily stop the storage, flush it, and upload the blocks. This commit ensures that whenever a hashring change is detected, the entire storage is flushed and the shipper is notified so that is uploads any new blocks. It also ensures that when the receive component starts up, any in-progress WAL is flushed and uploaded. This ensures that new data that may belong to a different tenant is not mixed with old data. Finally, it also ensures that the storage is flushed and uploaded whenever the process shuts down. Signed-off-by: Lucas Servén Marín <lserven@gmail.com>
- Loading branch information
Showing
9 changed files
with
339 additions
and
128 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.