power_saving schedule not powering off hosts

I've got a cluster made up of five physical hosts, (Dells with idrac 7 management) Power management / fencing enabled on all hosts. I've enabled the power_saving scheduling policy on my cluster, it's migrated all the VM's to a couple of physical hosts so three are sitting idle with no VM's. Shouldn't the power_saving policy shut down the idle hosts?

On Sun, Apr 5, 2020 at 3:38 PM Maton, Brett <matonb@ltresources.co.uk> wrote:
I've got a cluster made up of five physical hosts, (Dells with idrac 7 management) Power management / fencing enabled on all hosts.
I've enabled the power_saving scheduling policy on my cluster, it's migrated all the VM's to a couple of physical hosts so three are sitting idle with no VM's.
Shouldn't the power_saving policy shut down the idle hosts?
Hi, It should. In the cluster scheduling policy, did you set "EnableAutomaticHostPowerManagement" to be true? and setting "HostsInReserve" to a number of reserve idle hosts is also set? Regards, Liran.
_______________________________________________ Users mailing list -- users@ovirt.org To unsubscribe send an email to users-leave@ovirt.org Privacy Statement: https://www.ovirt.org/privacy-policy.html oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/ List Archives: https://lists.ovirt.org/archives/list/users@ovirt.org/message/TCILNZPXCNSJGO...

I'd seen "EnableAutomaticHostPowerManagement" mentioned in the docs, but couldn't find it. I eventually figured out that I had to add the two attributes that Liran mentioned to the policy using the '+' button in the "Scheduling Policy" editor. On Sun, 5 Apr 2020 at 14:58, Liran Rotenberg <lrotenbe@redhat.com> wrote:
On Sun, Apr 5, 2020 at 3:38 PM Maton, Brett <matonb@ltresources.co.uk> wrote:
I've got a cluster made up of five physical hosts, (Dells with idrac 7 management) Power management / fencing enabled on all hosts.
I've enabled the power_saving scheduling policy on my cluster, it's migrated all the VM's to a couple of physical hosts so three are sitting idle with no VM's.
Shouldn't the power_saving policy shut down the idle hosts?
Hi, It should. In the cluster scheduling policy, did you set "EnableAutomaticHostPowerManagement" to be true? and setting "HostsInReserve" to a number of reserve idle hosts is also set?
Regards, Liran.
_______________________________________________ Users mailing list -- users@ovirt.org To unsubscribe send an email to users-leave@ovirt.org Privacy Statement: https://www.ovirt.org/privacy-policy.html oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/ List Archives: https://lists.ovirt.org/archives/list/users@ovirt.org/message/TCILNZPXCNSJGO...

On April 5, 2020 3:36:42 PM GMT+03:00, "Maton, Brett" <matonb@ltresources.co.uk> wrote:
I've got a cluster made up of five physical hosts, (Dells with idrac 7 management) Power management / fencing enabled on all hosts.
I've enabled the power_saving scheduling policy on my cluster, it's migrated all the VM's to a couple of physical hosts so three are sitting idle with no VM's.
Shouldn't the power_saving policy shut down the idle hosts?
I don't think so... But you can set a script to change the performance profile of tuned daemon to adjust based on number of VMs. For example, if no VMs are running - tuned's power saving profile is enabled, while if a VM is powered on (or migrated) - the script can put a high performance peofile is enabled. Best Regards, Strahil Nikolov

On Sun, Apr 5, 2020 at 4:07 PM Strahil Nikolov <hunter86_bg@yahoo.com> wrote:
On April 5, 2020 3:36:42 PM GMT+03:00, "Maton, Brett" <matonb@ltresources.co.uk> wrote:
I've got a cluster made up of five physical hosts, (Dells with idrac 7 management) Power management / fencing enabled on all hosts.
I've enabled the power_saving scheduling policy on my cluster, it's migrated all the VM's to a couple of physical hosts so three are sitting idle with no VM's.
Shouldn't the power_saving policy shut down the idle hosts?
I don't think so...
On the contrary, it will shut down unneeded hosts indeed. But you have to configure the fields Liran mentioned: Edit the cluster, select scheduling policy tab and add two parameters to your Power saving policy. One (EnableAutomaticHostPowerManagement) enables the power cycling mechanism and the second one (HostsInReserve) controls how many empty hosts are allowed to stay up. When the not enough hosts are empty anymore a new one will be started. Best regards -- Martin Sivak
But you can set a script to change the performance profile of tuned daemon to adjust based on number of VMs.
For example, if no VMs are running - tuned's power saving profile is enabled, while if a VM is powered on (or migrated) - the script can put a high performance peofile is enabled.
Best Regards, Strahil Nikolov _______________________________________________ Users mailing list -- users@ovirt.org To unsubscribe send an email to users-leave@ovirt.org Privacy Statement: https://www.ovirt.org/privacy-policy.html oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/ List Archives: https://lists.ovirt.org/archives/list/users@ovirt.org/message/RRXKMRBMIME2KM...

On April 5, 2020 6:39:43 PM GMT+03:00, Martin Sivak <msivak@redhat.com> wrote:
On Sun, Apr 5, 2020 at 4:07 PM Strahil Nikolov <hunter86_bg@yahoo.com> wrote:
On April 5, 2020 3:36:42 PM GMT+03:00, "Maton, Brett"
<matonb@ltresources.co.uk> wrote:
I've got a cluster made up of five physical hosts, (Dells with idrac 7 management) Power management / fencing enabled on all hosts.
I've enabled the power_saving scheduling policy on my cluster, it's migrated all the VM's to a couple of physical hosts so three are sitting idle with no VM's.
Shouldn't the power_saving policy shut down the idle hosts?
I don't think so...
On the contrary, it will shut down unneeded hosts indeed. But you have to configure the fields Liran mentioned:
Edit the cluster, select scheduling policy tab and add two parameters to your Power saving policy. One (EnableAutomaticHostPowerManagement) enables the power cycling mechanism and the second one (HostsInReserve) controls how many empty hosts are allowed to stay up. When the not enough hosts are empty anymore a new one will be started.
Best regards
-- Martin Sivak
But you can set a script to change the performance profile of tuned daemon to adjust based on number of VMs.
For example, if no VMs are running - tuned's power saving profile is enabled, while if a VM is powered on (or migrated) - the script can put a high performance peofile is enabled.
Best Regards, Strahil Nikolov _______________________________________________ Users mailing list -- users@ovirt.org To unsubscribe send an email to users-leave@ovirt.org Privacy Statement: https://www.ovirt.org/privacy-policy.html oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/ List Archives: https://lists.ovirt.org/archives/list/users@ovirt.org/message/RRXKMRBMIME2KM...
Damn, That's a great feature ! Best Regards, Strahil Nikolov
participants (4)
-
Liran Rotenberg
-
Martin Sivak
-
Maton, Brett
-
Strahil Nikolov