Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
B
brpc
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
brpc
Commits
d10699f6
Commit
d10699f6
authored
Mar 26, 2019
by
zhujiashun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
health_check_using_rpc: refine docs
parent
733548de
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
+6
-7
socket.cpp
src/brpc/socket.cpp
+6
-7
No files found.
src/brpc/socket.cpp
View file @
d10699f6
...
...
@@ -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*/
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment