Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
P
physical
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
alpha
physical
Commits
bed77193
Commit
bed77193
authored
Mar 21, 2019
by
段英荣
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
modify
parent
f3326fe4
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
es.py
libs/es.py
+4
-3
No files found.
libs/es.py
View file @
bed77193
...
...
@@ -224,15 +224,16 @@ class ESPerform(object):
item_list
=
item
.
split
(
" "
)
if
len
(
item_list
)
>
4
:
cpu_load
=
item_list
[
3
]
if
int
(
cpu_load
)
>
60
:
int_cpu_load
=
int
(
cpu_load
)
if
int_cpu_load
>
60
:
high_num
+=
1
es_nodes_list
.
append
(
int
(
cpu_load
)
)
es_nodes_list
.
append
(
int
_cpu_load
)
except
:
logging
.
error
(
"catch exception,item:
%
s,err_msg:
%
s"
%
(
str
(
item
),
traceback
.
format_exc
()))
return
True
if
high_num
>
3
:
logging
.
info
(
"check es_nodes_load high,cpu load:
%
s
"
%
str
(
es_nodes_info_list
))
logging
.
info
(
"check es_nodes_load high,cpu load:
%
s
,ori_cpu_info:
%
s"
%
(
str
(
es_nodes_list
),
str
(
es_nodes_info_list
)
))
return
True
else
:
return
False
...
...
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