[pve-devel] [PATCH cluster 1/1] datacenter.cfg : add migration_targethost_freememory

Alexandre Derumier aderumier at odiso.com
Mon Jan 15 10:12:41 CET 2018


Add an optional value to avoid migration if target host memory < migration_targethost_freememory
---
 data/PVE/Cluster.pm | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/data/PVE/Cluster.pm b/data/PVE/Cluster.pm
index 5fc7d86..4c7466f 100644
--- a/data/PVE/Cluster.pm
+++ b/data/PVE/Cluster.pm
@@ -1398,6 +1398,12 @@ my $datacenter_schema = {
 	    pattern => qr/[a-f0-9]{2}(?::[a-f0-9]{2}){0,2}:?/i,
 	    description => 'Prefix for autogenerated MAC addresses.',
 	},
+	migration_targethost_freememory => {
+	    optional => 1,
+	    type => 'integer',
+	    minimum => 1,
+	    description => "Defines how many memory (mb) need to be free on target host to do a live migration.",
+	},
     },
 };
 
-- 
2.11.0




More information about the pve-devel mailing list