summaryrefslogtreecommitdiffstats
path: root/roles/openshift_health_checker/openshift_checks/memory_availability.py
Commit message (Collapse)AuthorAgeFilesLines
* openshift_checks: refactor to internalize task_varsLuke Meyer2017-07-251-10/+9
| | | | | | | | | Move task_vars into instance variable so we don't have to pass it around everywhere. Also store tmp. Make sure both are filled in on execute_module. In the process, is_active became an instance method, and task_vars is basically never used directly outside of test code.
* openshift_checks: improve comments/namesLuke Meyer2017-07-251-1/+1
|
* memory check: use GiB/MiB and adjust memtotalLuke Meyer2017-05-291-10/+15
| | | | | | | | | fixes https://bugzilla.redhat.com/show_bug.cgi?id=1455884 Various things reserve memory such that memtotal is quite lower than the actual physical RAM of the system. It's larger as RAM increases but it's not really proportional so I just added a flat 1GiB adjustment in the comparison. This ought to "pass when it's close enough."
* memory health check: adjust threshold for etcdLuke Meyer2017-05-231-1/+1
|
* disk/memory checks: make threshold configurableLuke Meyer2017-05-231-1/+3
|
* Simplify memory availability check, review testsRodolfo Carvalho2017-04-171-22/+28
| | | | | | | | | | | | | | - Fix required memory for etcd hosts (10 -> 20 GB), as per documentation. - Some changes to make the code more similar to the similar DiskAvailability check. - Do not raise exception for hosts that do not have a recommended memory value (those are ignored anyway through `is_active`, so that was essentially dead code). - Test that the required memory is the max of the recommended memories for all groups assigned to a host. E.g. if a host is master and node, we should check that it has enough memory to be a master, because the memory requirement for a master is higher than for a node.
* add disk and memory availability check testsjuanvallejo2017-04-171-1/+4
|
* add ram and storage preflight checkjuanvallejo2017-04-171-0/+35