X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=database.py;h=868153930cd99ba52736a4b1d340b1a8a36e1bb4;hb=8a7ca2937db392c6605ffa800077490ab5a64bde;hp=a834fd80cd103d842a8c4285c4fba078dc41904f;hpb=5e8cc8777c71cdd8df0e6c5d0d0adb2387b06c94;p=nodemanager.git diff --git a/database.py b/database.py index a834fd8..8681539 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': 32, 'net_min_rate': 0, 'net_max_rate': 8, 'net_i2_min_rate': 0, 'net_i2_max_rate': 8, 'net_share': 1} +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} LOANABLE_RESOURCES = MINIMUM_ALLOCATION.keys() DB_FILE = '/root/sliver_mgr_db.pickle'