bhouse-nexthop commented on PR #14745: URL: https://github.com/apache/cloudstack/pull/14745#issuecomment-7266461935
Tested on a KVM lab running a main (24.0) build that includes this change. Three KVM hosts, primary storage Ceph RBD. The PR targets 4.22; the HA restart path is the same on both branches apart from this change. Setup: an HA-enabled VM and two filler VMs on host 1, with `vm.allocation.algorithm=firstfitleastconsumed` and `host.capacityType.to.order.clusters=RAM`, so host 1 has the lowest free RAM fraction of the three (checked against `op_host_capacity` before each run). `ha.tag` empty. To simulate the OOM killer, I ran `kill -9` on the VM's QEMU process. Result: all checks passed. | `vm.ha.restart.consider.last.host` (cluster of host 1) | HA restart | Where the VM came back | |---|---|---| | `true` (default) | Running again after about 160 s | host 1, the last host (the log shows the last host being tried first) | | `false` | Running again after about 170 s | host 3, chosen by the allocator; the log shows `Consider last host: false` | With `true` the restart behaves as before this change. Without this change there is no setting, and the VM always went back to host 1 first. Not tested: `ha.tag` set, a host-level HA fence, and a zone-wide or global value of the setting. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
