X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=database.py;h=92c5ef4280ab31031c24c2eccd0e08e70ea75b02;hb=9575e34c9d9beb402883d99565e609e2017d9f9f;hp=868153930cd99ba52736a4b1d340b1a8a36e1bb4;hpb=9827764450894d3cc24e76c2d3c68a832557128a;p=nodemanager.git diff --git a/database.py b/database.py index 8681539..92c5ef4 100644 --- a/database.py +++ b/database.py @@ -23,7 +23,7 @@ import bwmon # We enforce minimum allocations to keep the clueless from hosing their slivers. # Disallow disk loans because there's currently no way to punish slivers over quota. -MINIMUM_ALLOCATION = {'cpu_min': 0, 'cpu_share': 1, 'net_min_rate': 0, 'net_max_rate': 8, 'net_i2_min_rate': 0, 'net_i2_max_rate': 8, 'net_share': 1} +MINIMUM_ALLOCATION = {'cpu_pct': 0, 'cpu_share': 1, 'net_min_rate': 0, 'net_max_rate': 8, 'net_i2_min_rate': 0, 'net_i2_max_rate': 8, 'net_share': 1} LOANABLE_RESOURCES = MINIMUM_ALLOCATION.keys() DB_FILE = '/root/sliver_mgr_db.pickle'