Commit d10699f6 authored by zhujiashun's avatar zhujiashun

health_check_using_rpc: refine docs

parent 733548de
...@@ -97,13 +97,12 @@ DEFINE_int32(connect_timeout_as_unreachable, 3, ...@@ -97,13 +97,12 @@ DEFINE_int32(connect_timeout_as_unreachable, 3,
"fails the main socket as well when this socket is pooled."); "fails the main socket as well when this socket is pooled.");
DEFINE_string(health_check_path, "", "Http path of health check call." DEFINE_string(health_check_path, "", "Http path of health check call."
"By default health check succeeds if server can be connected. If this" "By default health check succeeds if the server is connectable."
"flag is set, health check is completed not only when server can be" "If this flag is set, health check is not completed until a http "
"connected but also an additional http call succeeds indicated by this" "call to the path succeeds within -health_check_timeout_ms(to make "
"flag and FLAGS_health_check_timeout_ms"); "sure the server functions well).");
DEFINE_int32(health_check_timeout_ms, 500, "Timeout of health check." DEFINE_int32(health_check_timeout_ms, 500, "The timeout for both establishing "
"If FLAGS_health_check_path is empty, it means timeout of connect." "the connection and the http call to -health_check_path over the connection");
"Otherwise it means timeout of app health check call.");
static bool validate_connect_timeout_as_unreachable(const char*, int32_t v) { static bool validate_connect_timeout_as_unreachable(const char*, int32_t v) {
return v >= 2 && v < 1000/*large enough*/; return v >= 2 && v < 1000/*large enough*/;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment