Description of problem:the information in the miq_servers table is used to record the status of each active appliance, but is missing the allocated real-memory and swap memory sizes from the creation of the appliance. As it is fairly standard practice to increase the real memory size of the appliances at a customer, having this information available in the miq_servers instances makes it much easier to get an understanding of how the appliances are configured without having to visit each appliance individually. Version-Release number of selected component (if applicable): na How reproducible: Steps to Reproduce: 1. 2. 3. Actual results: Expected results: Additional info:
https://github.com/ManageIQ/manageiq/pull/11660
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
https://github.com/ManageIQ/manageiq/pull/11690
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