-
Notifications
You must be signed in to change notification settings - Fork 529
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Distributor: Add checkStartedMiddleware (#9317)
* Distributor: Add checkStartedMiddleware Add distributor middleware that checks if the underlying distributor service has started and if not, blocks until it has. During normal startup this is not necessary because Mimir will not mark itself as ready until all its services have started. However, if a distributor pod was already up and marked ready and then the distributor container restarted, k8s may still consider the pod ready before realizing that it is not and the pod may still end up receiving push requests. In this state the push requests may end up being serviced incorrectly because other distributor middlewares expect their underlying services to already have started but they may not have been. * Update CHANGELOG.md * Use d.State(), remove d.isServiceStarted atomic bool * Move check into limitsMiddleware, reject instead of block * Update CHANGELOG.md Co-authored-by: Peter Štibraný <[email protected]> --------- Co-authored-by: Peter Štibraný <[email protected]>
- Loading branch information
Showing
4 changed files
with
104 additions
and
1 deletion.
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