-
Notifications
You must be signed in to change notification settings - Fork 42
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
fix: check sp health retry #1411
Conversation
0aa908a
to
8c3df84
Compare
log.CtxErrorw(context.Background(), "failed to check sp healthy", "sp", sp, "http_status_code", resp.StatusCode, "resp_body", resp.Body) | ||
return false | ||
if resp.StatusCode == http.StatusOK { | ||
log.CtxInfow(context.Background(), "succeed to check the sp healthy", "sp", sp, "duration", duration) |
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 put a metric for the duration so that later we can setup monitor?
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.
added
log.CtxInfow(context.Background(), "succeed to check the sp healthy", "sp", sp, "duration", duration) | ||
return true | ||
} else { | ||
log.CtxErrorw(context.Background(), "failed to check sp healthy", "sp", sp, "http_status_code", resp.StatusCode, "resp_body", resp.Body, "duration", duration) |
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.
If a failure happens when check sp, let's also put a metric
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.
added
794d10e
to
a9ab997
Compare
Description
fix: check sp health retry
Rationale
N/A
Example
add an example CLI or API response...
Changes
Notable changes:
Potential Impacts