From eb2348848679f383a20c91e3769f70ca979f6603 Mon Sep 17 00:00:00 2001 From: Joshua Boniface Date: Wed, 18 Jul 2018 12:13:41 -0400 Subject: [PATCH] Add config flag for migration selector Addresses #11 --- pvcd.conf.sample | 5 +++++ pvcd.py | 1 + 2 files changed, 6 insertions(+) diff --git a/pvcd.conf.sample b/pvcd.conf.sample index 7198d4a3..8ee56f8f 100644 --- a/pvcd.conf.sample +++ b/pvcd.conf.sample @@ -18,6 +18,10 @@ # failed_fence: the action to take on a failed fencing operation; can be "none" or "migrate" # (defaults to "none"); "migrate" requires "suicide_intervals" to be set) # NOTE: POTENTIALLY DANGEROUS - see README for details +# migration_target_selector: the method to use to select target hypervisor nodes during a +# flush action; can be "mem", "load", "vcpus", or "vms" (defaults +# to "mem"); the best choice based on this field is selected for +# each VM to be migrated # ipmi_hostname: the IPMI hostname for fencing (defaults to -lom.) # ipmi_username: username to connect to IPMI # ipmi_password: password to connect to IPMI @@ -31,6 +35,7 @@ fence_intervals = 6 suicide_intervals = 0 successful_fence = migrate failed_fence = none +migration_target_selector = mem [myhost] ipmi_username = admin diff --git a/pvcd.py b/pvcd.py index 8450be45..1554fafc 100755 --- a/pvcd.py +++ b/pvcd.py @@ -59,6 +59,7 @@ config_values = [ 'suicide_intervals', 'successful_fence', 'failed_fence', + 'migration_target_selector', 'ipmi_hostname', 'ipmi_username', 'ipmi_password'