From cf0051cb1aa26883d1e59297885306650e67abd8 Mon Sep 17 00:00:00 2001 From: Anton Beloglazov Date: Fri, 14 Sep 2012 11:10:07 +1000 Subject: [PATCH] Added algorithm factories and parameters to the defaulr config --- neat.conf | 40 ++++++++++++++++++++++++++++------------ 1 file changed, 28 insertions(+), 12 deletions(-) diff --git a/neat.conf b/neat.conf index 0e57b39..8815ee5 100644 --- a/neat.conf +++ b/neat.conf @@ -64,18 +64,34 @@ compute_password = neatpassword # compute_user must have permissions to execute this command sleep_command = pm-suspend -# The fully qualified name of a Python function to use as an underload -# detection algorithm -algorithm_underload_detection = neat.underload.threshold.static +# The fully qualified name of a Python factory function that returns a +# function implementing an underload detection algorithm +algorithm_underload_detection_factory = neat.underload.threshold.static_factory -# The fully qualified name of a Python function to use as an overload -# detection algorithm -algorithm_overload_detection = neat.overload.mhod.mhod +# A JSON encoded parameters, which will be parsed and passed to the +# specified underload detection algorithm factory +algorithm_underload_detection_parameters = {} -# The fully qualified name of a Python function to use as a VM -# selection algorithm -algorithm_vm_selection = neat.vm_selection.simple.minimum_migration_time +# The fully qualified name of a Python factory function that returns a +# function implementing an overload detection algorithm +algorithm_overload_detection_factory = neat.overload.mhod.core.mhod_factory -# The fully qualified name of a Python function to use as a VM -# placement algorithm -algorithm_vm_placement = neat.vm_placement.bin_packing.power_aware_best_fit_decreasing +# A JSON encoded parameters, which will be parsed and passed to the +# specified overload detection algorithm factory +algorithm_overload_detection_parameters = {} + +# The fully qualified name of a Python factory function that returns a +# function implementing a VM selection algorithm +algorithm_vm_selection_factory = neat.vm_selection.simple.minimum_migration_time_factory + +# A JSON encoded parameters, which will be parsed and passed to the +# specified VM selection algorithm factory +algorithm_vm_selection_parameters = {} + +# The fully qualified name of a Python factory function that returns a +# function implementing a VM placement algorithm +algorithm_vm_placement_factory = neat.vm_placement.bin_packing.power_aware_best_fit_decreasing_factory + +# A JSON encoded parameters, which will be parsed and passed to the +# specified VM placement algorithm factory +algorithm_vm_placement_parameters = {}