Bug 1274557
| Summary: | [RFE] Please add the real and swap memory sizes for each appliance as discrete elements in the miq_servers table | |||
|---|---|---|---|---|
| Product: | Red Hat CloudForms Management Engine | Reporter: | Thomas Hennessy <thenness> | |
| Component: | Appliance | Assignee: | Joe Rafaniello <jrafanie> | |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Nandini Chandra <nachandr> | |
| Severity: | medium | Docs Contact: | ||
| Priority: | medium | |||
| Version: | 5.4.0 | CC: | abellott, jdeubel, jhardy, jocarter, jrafanie, mfeifer, nachandr, obarenbo, simaishi, tcarlin, thenness | |
| Target Milestone: | GA | Keywords: | FutureFeature, TestOnly | |
| Target Release: | 5.8.0 | |||
| Hardware: | x86_64 | |||
| OS: | Linux | |||
| Whiteboard: | usability:appliance | |||
| Fixed In Version: | 5.8.0.0 | Doc Type: | Enhancement | |
| Doc Text: | Story Points: | --- | ||
| Clone Of: | ||||
| : | 1382740 (view as bug list) | Environment: | ||
| Last Closed: | 2017-06-12 17:37:37 UTC | Type: | Bug | |
| Regression: | --- | Mount Type: | --- | |
| Documentation: | --- | CRM: | ||
| Verified Versions: | Category: | --- | ||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | ||
| Cloudforms Team: | CFME Core | Target Upstream Version: | ||
| Embargoed: | ||||
| Bug Depends On: | ||||
| Bug Blocks: | 1382740 | |||
|
Description
Thomas Hennessy
2015-10-23 01:41:16 UTC
New commit detected on ManageIQ/manageiq/master: https://github.com/ManageIQ/manageiq/commit/ea185265f022907d53ea31bb242b5f2ec478b4ed commit ea185265f022907d53ea31bb242b5f2ec478b4ed Author: Joe Rafaniello <jrafanie> AuthorDate: Thu Sep 29 17:23:29 2016 -0400 Commit: Joe Rafaniello <jrafanie> CommitDate: Mon Oct 3 14:49:48 2016 -0400 Add columns for the system memory and swap free/used bytes https://bugzilla.redhat.com/show_bug.cgi?id=1274557 We'll soon be able to monitor appliance system memory and swap usage and make better decisions about activating/deactivating roles on appliances to avoid swap invasion. ...0160922234606_add_mem_and_swap_free_and_used_to_miq_servers.rb | 8 ++++++++ db/schema.yml | 4 ++++ 2 files changed, 12 insertions(+) create mode 100644 db/migrate/20160922234606_add_mem_and_swap_free_and_used_to_miq_servers.rb New commit detected on ManageIQ/manageiq/master: https://github.com/ManageIQ/manageiq/commit/f7c0b4d2160a057b3413ce23e5314a3dd939cb41 commit f7c0b4d2160a057b3413ce23e5314a3dd939cb41 Author: Joe Rafaniello <jrafanie> AuthorDate: Fri Sep 30 11:11:08 2016 -0400 Commit: Joe Rafaniello <jrafanie> CommitDate: Tue Oct 4 16:18:09 2016 -0400 Get the process info from an instance method. Call the instance method from the class method. Followup to #11660 https://bugzilla.redhat.com/show_bug.cgi?id=1274557 app/models/miq_server/status_management.rb | 26 ++++++++++++++++++++------ 1 file changed, 20 insertions(+), 6 deletions(-) New commit detected on ManageIQ/manageiq/master: https://github.com/ManageIQ/manageiq/commit/7eae819ce8568c7a618d95464ae7de312a9bbed3 commit 7eae819ce8568c7a618d95464ae7de312a9bbed3 Author: Joe Rafaniello <jrafanie> AuthorDate: Fri Sep 30 11:12:52 2016 -0400 Commit: Joe Rafaniello <jrafanie> CommitDate: Tue Oct 4 16:18:43 2016 -0400 status_update learned to set system used/free mem/swap Followup to #11660 https://bugzilla.redhat.com/show_bug.cgi?id=1274557 app/models/miq_server/status_management.rb | 11 +++++++++++ spec/models/miq_server/status_management_spec.rb | 14 ++++++++++++++ 2 files changed, 25 insertions(+) We have added the following columns to the miq_servers table: system_memory_free system_memory_used system_swap_free system_swap_used As part of the existing process that updates the miq_server process (evmserver.rb) memory(memory_size, memory_usage, percent_memory) and cpu (cpu_time, percent_cpu), we will now update the 4 new columns with the data for the whole system (appliance). These values will be in bytes. This information was already logged as part of the log status. In the future, the 4 new columns will be used to help prevent extremely unbalanced distribution of roles by moving roles from really busy appliances to ones already enabled as "backup" for those roles. Euwe Backport details, this should be available in 5.7.0.4:
$ git log
commit 74ba5f271cd0675d9d773df337e0136661acec0a
Author: Jason Frey <fryguy9>
Date: Tue Oct 4 18:28:44 2016 -0400
Merge pull request #11690 from jrafanie/set_miq_server_memory_swap_used_free
Set appliance "system" memory/swap information
(cherry picked from commit 7ad381e6b0309a535447ea0eaa8024629b0e8bfa)
Tom, care to verify this and make sure its providing what you need? The requested information is provided in the 5.8.0 codebase. thank you. Verified in 5.8.0.10 |