-
Notifications
You must be signed in to change notification settings - Fork 810
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
Make LivenessCheck Timeout Configurable #6227
Make LivenessCheck Timeout Configurable #6227
Conversation
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.
Let's make it configurable then?
There might be cases where 1s timeout couldn't work
Wondering what would be the best way to do this. There is already a Remote timeout ( |
I think the liveness check should not be part of the client, because it is part of the business logic of the ruler, and has nothing to do with the connection which is the transport mechanism. |
f889e53
to
f5a7201
Compare
f5a7201
to
d7fcd56
Compare
3a47852
to
5605632
Compare
5605632
to
8ef389c
Compare
pkg/ruler/ruler.go
Outdated
@@ -238,6 +237,7 @@ func (cfg *Config) RegisterFlags(f *flag.FlagSet) { | |||
f.BoolVar(&cfg.DisableRuleGroupLabel, "ruler.disable-rule-group-label", false, "Disable the rule_group label on exported metrics") | |||
|
|||
f.BoolVar(&cfg.EnableHAEvaluation, "ruler.enable-ha-evaluation", false, "Enable high availability") | |||
f.DurationVar(&cfg.LivenessCheckTimeout, "ruler.liveness-check-timeout", 1*time.Second, "Liveness check timeout") |
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.
Can we document the timeout itself. Like what is it for? So that user get some idea about what's the purpose of the flag
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.
Can you please take look? I made an update
625d040
to
a24ca1a
Compare
Signed-off-by: Anand Rajagopal <anrajag@amazon.com>
a24ca1a
to
79f9d73
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.
Thanks!
What this PR does:
Which issue(s) this PR fixes:
Fixes #
Checklist
CHANGELOG.md
updated - the order of entries should be[CHANGE]
,[FEATURE]
,[ENHANCEMENT]
,[BUGFIX]