Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Lucas Cavalcante
autonomic-actuator
Commits
f4ea2447
Commit
f4ea2447
authored
Dec 19, 2017
by
Thiago Paiva
Browse files
Logging the checks to test
parent
85d8ea68
Changes
2
Hide whitespace changes
Inline
Side-by-side
.gitignore
View file @
f4ea2447
venv
actuator.conf
servers.yml
actuator.py
View file @
f4ea2447
...
...
@@ -103,6 +103,12 @@ class Waker(NotificationEndpoint):
new_vcpus
=
stats
.
vcpus
-
server
.
vcpus
new_free_ram_mb
=
stats
.
free_ram_mb
-
server
.
free_ram_mb
new_free_disk_gb
=
stats
.
free_disk_gb
-
server
.
free_disk_gb
LOG
.
debug
(
"
\n\n
======================================"
)
LOG
.
debug
(
"INFO"
)
LOG
.
debug
(
"new_vcpus: %s"
%
new_vcpus
)
LOG
.
debug
(
"new_free_ram_mb: %s"
%
new_free_ram_mb
)
LOG
.
debug
(
"new_free_disk_gb: %s"
%
new_free_disk_gb
)
LOG
.
debug
(
"======================================
\n\n
"
)
# TODO(thiagop): what is disk_available_least?
if
new_vcpus
>
CONF
.
thresholds
.
vcpus
:
continue
...
...
@@ -156,6 +162,12 @@ class Morpheus(NotificationEndpoint):
new_free_ram_mb
=
stats
.
free_ram_mb
-
server
.
free_ram_mb
new_free_disk_gb
=
stats
.
free_disk_gb
-
server
.
free_disk_gb
# TODO(thiagop): what is disk_available_least?
LOG
.
debug
(
"
\n\n
======================================"
)
LOG
.
debug
(
"INFO"
)
LOG
.
debug
(
"new_vcpus: %s"
%
new_vcpus
)
LOG
.
debug
(
"new_free_ram_mb: %s"
%
new_free_ram_mb
)
LOG
.
debug
(
"new_free_disk_gb: %s"
%
new_free_disk_gb
)
LOG
.
debug
(
"======================================
\n\n
"
)
if
new_vcpus
<
CONF
.
thresholds
.
vcpus
:
continue
elif
new_free_ram_mb
<
CONF
.
thresholds
.
free_ram_mb
:
...
...
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