-
Notifications
You must be signed in to change notification settings - Fork 829
change: separate distributor into api and service module #3112
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
Conversation
Signed-off-by: Jacob Lisi <jacob.t.lisi@gmail.com>
Signed-off-by: Jacob Lisi <jacob.t.lisi@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good idea.
pkg/cortex/modules.go
Outdated
mm.RegisterModule(Distributor, t.initDistributor) | ||
mm.RegisterModule(Distributor, nil) | ||
mm.RegisterModule(DistributorAPI, t.initDistributorAPI) | ||
mm.RegisterModule(DistributorService, t.initDistributorService) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
DistributorService should use modules.UserInvisibleModule
option.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes sense
pkg/cortex/modules.go
Outdated
API: {Server}, | ||
Ring: {API, RuntimeConfig, MemberlistKV}, | ||
Overrides: {RuntimeConfig}, | ||
Distributor: {DistributorService, DistributorAPI}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need both Distributor
and DistributorAPI
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the DistributorAPI
can be removed and the route registration can be moved to the Distributor
module
Signed-off-by: Jacob Lisi <jacob.t.lisi@gmail.com>
Signed-off-by: Jacob Lisi <jacob.t.lisi@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
What this PR does:
Which issue(s) this PR fixes:
Fixes #3109
TLDR: Querier will no longer host distributor endpoints
Checklist
CHANGELOG.md
updated - the order of entries should be[CHANGE]
,[FEATURE]
,[ENHANCEMENT]
,[BUGFIX]