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,
"fails the main socket as well when this socket is pooled.");
DEFINE_string(health_check_path, "", "Http path of health check call."
"By default health check succeeds if server can be connected. If this"
"flag is set, health check is completed not only when server can be"
"connected but also an additional http call succeeds indicated by this"
"flag and FLAGS_health_check_timeout_ms");
DEFINE_int32(health_check_timeout_ms, 500, "Timeout of health check."
"If FLAGS_health_check_path is empty, it means timeout of connect."
"Otherwise it means timeout of app health check call.");
"By default health check succeeds if the server is connectable."
"If this flag is set, health check is not completed until a http "
"call to the path succeeds within -health_check_timeout_ms(to make "
"sure the server functions well).");
DEFINE_int32(health_check_timeout_ms, 500, "The timeout for both establishing "
"the connection and the http call to -health_check_path over the connection");
static bool validate_connect_timeout_as_unreachable(const char*, int32_t v) {
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