-
Notifications
You must be signed in to change notification settings - Fork 820
Convert Cortex components to services #2166
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
Merged
Merged
Changes from all commits
Commits
Show all changes
89 commits
Select commit
Hold shift + click to select a range
52f564d
First step towards Cortex using services model. Only Server module co…
pstibrany 353cb26
Converted runtimeconfig.Manager to service.
pstibrany dab13d9
Added /services page.
pstibrany 3a60a3e
Converted memberlistKV to service.
pstibrany a06feb8
Fixed runtimeconfig tests.
pstibrany a70c6ad
Converted Ring to service.
pstibrany 2b142f0
Log waiting for other module to initialize.
pstibrany 024ce38
Converted overrides to service.
pstibrany fda988a
Converted client pool to a service.
pstibrany afdd06f
Convert ring lifecycler into a service.
pstibrany aedece1
Converted HA Tracker to a service.
pstibrany daaa30a
Converted Distributor to a service.
pstibrany 63a879c
Handle nil from wrappedService call.
pstibrany 60f2b77
Explain why Server uses service and not a wrappedService.
pstibrany 557ca5f
Make service from Store.
pstibrany 4f071d3
Convert ingester to a service.
pstibrany 142697c
Convert querier initialization into a service. This isn't full
pstibrany 7fc55f8
Listen for module failures, and log them.
pstibrany be92f74
Convert blockQueryable and UserStore into a services.
pstibrany d152f4d
Wait a little before shutdown.
pstibrany 0d43e4e
Converted queryFrontend to a service.
pstibrany dbabbee
Logging
pstibrany c804f78
Convert TableManager to service
pstibrany c3e1ff8
Convert Ruler to service
pstibrany e7cfc39
Convert Configs to service
pstibrany 7044eef
Convert AlertManager to service.
pstibrany 33a7e2c
Renamed init methods back.
pstibrany d35e81a
Fixed tests.
pstibrany 733c2ab
Converted Compactor to a service.
pstibrany 63c699d
Polishing, comments.
pstibrany 71f3fc2
Comments.
pstibrany afaf6dd
Lint comments.
pstibrany 2d9fb6f
Stop server only after all other modules have finished.
pstibrany 9f4233e
Don't send more jobs to lifecycler loop, if it's not running anymore.
pstibrany 9e5c371
Don't stop Server until other modules have stopped.
pstibrany b232303
Removed Compactor from All target. It was meant to be for testing only.
pstibrany da0b49d
Comment.
pstibrany 118fa3b
More comments around startup logic.
pstibrany 4716d9b
moduleServiceWrapper doesn't need full Cortex, only serviceMap
pstibrany c4b2749
Messages
pstibrany 61e014a
Fix outdated comment.
pstibrany e202384
Start lifecycler in starting functions.
pstibrany bee16e0
Fixed comment. Return lifecycler's failure case, if any, as error.
pstibrany 0690631
Fix lifecycler usage.
pstibrany 602848f
Fix test.
pstibrany 8a088e1
Removed obsolete waiting code. Only log error if it is real error.
pstibrany 292ea46
Renamed servManager to subservices.
pstibrany 19e73b9
Addressing review feedback.
pstibrany 7282f5f
Fix test.
pstibrany 4806bc2
Fix compilation errors after rebase.
pstibrany ce9ba71
Extracted code that creates server service into separate file.
pstibrany f608199
Added some helper methods.
pstibrany 43dbd86
Use helper methods to simplify service creation.
pstibrany 94b7e5e
Comment.
pstibrany 3bdf54d
Helper functions for manager.
pstibrany 7f1aa5d
Use helper functions.
pstibrany 216e8a9
Fixes, use helper functions.
pstibrany 8d929f5
Fixes, use helper functions.
pstibrany 1ed2ca3
comment
pstibrany d9b94aa
Helper function
pstibrany 8fa3e33
Use helper functions to reduce amount of code.
pstibrany 916af3f
Added tests for helper functions.
pstibrany a0ae3d3
Fixed imports
pstibrany ac2c3c6
Comment
pstibrany 452dc64
Simplify code.
pstibrany 255f79a
Stop and wait until stopped.
pstibrany 6e6f325
Imports
pstibrany 1ed35ca
Manage compaction and shipper via subservices manager.
pstibrany d00f8a6
Improve error message.
pstibrany ce77c0d
Comment.
pstibrany 22a4637
Comment.
pstibrany 874c56b
Added unit test for Cortex initialization and module dependencies.
pstibrany 702b575
Comments, return errors.
pstibrany ca27213
Unified /ready handlers into one, that reflects state of all services.
pstibrany 1f597b4
Added //nolint:errcheck to `defer services.StopAndAwaitTerminated(...…
pstibrany 5a22c3d
Fix http handler logic. Also renamed it.
pstibrany 458fa76
Address review feedback.
pstibrany 451eba7
One more test... since Shutdown already stops Run, no need to call St…
pstibrany abc8d2b
CHANGELOG.md
pstibrany 6e5540d
Fixed integration test, old versions of Cortex didn't have /ready probe.
pstibrany ecfa362
Make lint happy.
pstibrany 3d412a8
Mention /ready for all services.
pstibrany 991bb9d
Wrap "not running" error into promql.ErrStorage.
pstibrany 16d5a3a
Expose http port via method on HTTPService.
pstibrany 085b6ac
Print number of services in each state.
pstibrany 4329075
Fix comment and remove obsolete line.
pstibrany 528451d
Fix compile errors after rebase.
pstibrany dda59cc
Rebased and converted data purger to a service.
pstibrany 26fadae
Pass context to the bucket client.
pstibrany File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.