-
Notifications
You must be signed in to change notification settings - Fork 834
Shuffle-sharding support in Ruler. #3235
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
pstibrany
merged 30 commits into
cortexproject:master
from
pstibrany:ruler-shuffle-sharding
Oct 2, 2020
Merged
Changes from all commits
Commits
Show all changes
30 commits
Select commit
Hold shift + click to select a range
ec1cf05
Reconfigure ruler in docker compose.
pstibrany 5a3e394
Extracted different sharding strategies into methods.
pstibrany 886808b
Added support for shuffle sharding to ruler.go
pstibrany bc40f07
Sharding tests.
pstibrany a445b0c
Add tests for shuffle sharding strategy.
pstibrany be31633
Removed configstore.
pstibrany ea94aba
Return error if "common prefix" without supplied prefix is returned.
pstibrany 7245be7
Changed replication strategy used by ruler.
pstibrany 1205a50
Another test.
pstibrany 120656e
Load rules for users concurrently when using shuffle sharding.
pstibrany 2851fda
Removed extra method LoadRuleGroupsForUser, and replaced with LoadRul…
pstibrany 8b25203
Comment.
pstibrany a879994
Fix comments after rename.
pstibrany 517239b
Lint comments.
pstibrany affe159
Added ruler sync on ring change.
pstibrany 6504c0a
Move ShuffleShardSeed to util package.
pstibrany 69e7d26
Added log message.
pstibrany 90384cd
Fix compilation of tests.
pstibrany 198b32c
Create user-manager even if files even haven't changed.
pstibrany f9ebb62
Unregister user registry when removing ruler manager.
pstibrany b1d049f
Added short paragraph about ruler shuffle sharding.
pstibrany bafaa6d
Review feedback.
pstibrany 48eccea
Modified test, it now verifies expected rules for each ruler.
pstibrany 1e646a2
Added test for bugfix in DefaultTenantManagerFactory.
pstibrany e4fdda3
Added CHANGELOG.md
pstibrany 6ccb5a4
Added test for Collect and DeleteUserRegistry.
pstibrany 40b4266
Clean white noise.
pstibrany 7fb3602
Move comment about replication factor.
pstibrany b6d047d
Added comment about tokens setup.
pstibrany a66091d
Fix compilation problem after master merge.
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
14 changes: 0 additions & 14 deletions
14
development/tsdb-blocks-storage-s3/.data-configstore/api/prom/configs/rules
This file was deleted.
Oops, something went wrong.
23 changes: 0 additions & 23 deletions
23
development/tsdb-blocks-storage-s3/.data-configstore/api/prom/configs/rules.yaml
This file was deleted.
Oops, something went wrong.
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2,3 +2,4 @@ | |
| !.gitignore | ||
| !cortex-tsdb | ||
| !cortex-alertmanager | ||
| !cortex-ruler | ||
2 changes: 2 additions & 0 deletions
2
development/tsdb-blocks-storage-s3/.data-minio/cortex-ruler/.gitignore
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| * | ||
| !.gitignore |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| <component name="ProjectRunConfigurationManager"> | ||
| <configuration default="false" name="TSDB Ruler-1" type="GoRemoteDebugConfigurationType" factoryName="Go Remote" port="18021"> | ||
| <method v="2" /> | ||
| </configuration> | ||
| </component> |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| <component name="ProjectRunConfigurationManager"> | ||
| <configuration default="false" name="TSDB Ruler-2" type="GoRemoteDebugConfigurationType" factoryName="Go Remote" port="18022"> | ||
| <method v="2" /> | ||
| </configuration> | ||
| </component> |
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.