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
[cluster/vminsert]:add reload -relabelConfig on the request to /-/reload #3923
base: cluster
Are you sure you want to change the base?
[cluster/vminsert]:add reload -relabelConfig on the request to /-/reload #3923
Conversation
bbf1a17
to
26ea65b
Compare
26ea65b
to
f29def3
Compare
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
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
@valyala ,please help review the code. |
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.
The code looks good except one thing - usually the cluster contains multiple vminsert
nodes hidden behind a load balancer. So the load balancer sends every request to /-/reload
to different vminsert
node. This may lead to inconsistent state at vminsert
nodes, where different vmagent
nodes have different relabeling configs. This adds confusion on how to properly reload relabeling configs at vminsert
nodes. That's why the /-/reload
endpoint wasn't added to vminsert
. Right now it is possible to reload relabeling configs at vminsert
nodes by sending SIGHUP
signal to them.
So I'm not sure this is a good enhancement. Probably, it would be better adding an option such as -relabelConfigCheckInterval
in the way similar to -promscrape.configCheckInterval
at vmagent
.
@valyala very good. I found that |
Signed-off-by: z-anshun <1179798460@qq.com>
e1132dc
to
4cc910b
Compare
@valyala ,please review |
@valyala I'm not quite understand your point here. As you said, component like vmagent or vmalert already have this |
When I use vminsert's
relabelConfig
, I found that now there is no reloaded api. However,vminsert
underVM-Single
has it. So, I hope to add it to thecluster/vminster
.