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
5e1cabb1
Commit
5e1cabb1
authored
Aug 16, 2018
by
Ge Jun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
always show server mc on /status and not show method mc which is bvar now
parent
c9a2a08c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
14 deletions
+12
-14
status_service.cpp
src/brpc/builtin/status_service.cpp
+12
-14
No files found.
src/brpc/builtin/status_service.cpp
View file @
5e1cabb1
...
...
@@ -62,17 +62,19 @@ void StatusService::default_method(::google::protobuf::RpcController* cntl_base,
server
->
PrintTabsBody
(
os
,
"status"
);
os
<<
"<div class=
\"
layer1
\"
>
\n
"
;
}
os
<<
"version: "
<<
server
->
version
()
<<
'\n'
;
// non_service_error
if
(
use_html
)
{
os
<<
"<p class=
\"
variable
\"
>"
;
}
os
<<
"non_service_error: "
;
if
(
use_html
)
{
os
<<
"<span id=
\"
value-"
<<
server
->
_nerror
.
name
()
<<
"
\"
>"
;
os
<<
"<span id=
\"
value-"
<<
server
->
_nerror
_bvar
.
name
()
<<
"
\"
>"
;
}
os
<<
server
->
_nerror
.
get_value
();
os
<<
server
->
_nerror
_bvar
.
get_value
();
if
(
use_html
)
{
os
<<
"</span></p><div class=
\"
detail
\"
><div id=
\"
"
<<
server
->
_nerror
.
name
()
os
<<
"</span></p><div class=
\"
detail
\"
><div id=
\"
"
<<
server
->
_nerror
_bvar
.
name
()
<<
"
\"
class=
\"
flot-placeholder
\"
></div></div>"
;
}
os
<<
'\n'
;
...
...
@@ -95,12 +97,14 @@ void StatusService::default_method(::google::protobuf::RpcController* cntl_base,
<<
"_connection_count
\"
class=
\"
flot-placeholder
\"
></div></div>"
;
}
os
<<
'\n'
;
const
AdaptiveMaxConcurrency
&
max_concurrency
=
server
->
options
().
max_concurrency
;
if
(
max_concurrency
==
"constant"
)
{
os
<<
"max_concurrency: "
<<
static_cast
<
int
>
(
max_concurrency
)
<<
'\n'
;
// max_concurrency
os
<<
"max_concurrency: "
;
const
int
mc
=
server
->
options
().
max_concurrency
;
if
(
mc
<=
0
)
{
os
<<
"unlimited"
;
}
else
{
os
<<
"concurrency limiter: "
<<
max_concurrency
.
name
()
<<
'\n'
;
os
<<
mc
;
}
os
<<
'\n'
;
...
...
@@ -158,9 +162,6 @@ void StatusService::default_method(::google::protobuf::RpcController* cntl_base,
if
(
mp
->
http_url
)
{
os
<<
" @"
<<
*
mp
->
http_url
;
}
if
(
mp
->
status
&&
mp
->
status
->
max_concurrency
()
>
0
)
{
os
<<
" max_concurrency="
<<
mp
->
status
->
max_concurrency
();
}
}
os
<<
"</h4>
\n
"
;
}
else
{
...
...
@@ -170,9 +171,6 @@ void StatusService::default_method(::google::protobuf::RpcController* cntl_base,
if
(
mp
->
http_url
)
{
os
<<
" @"
<<
*
mp
->
http_url
;
}
if
(
mp
->
status
&&
mp
->
status
->
max_concurrency
()
>
0
)
{
os
<<
" max_concurrency="
<<
mp
->
status
->
max_concurrency
();
}
}
os
<<
'\n'
;
}
...
...
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