initial checkin of syndicate plugin
[nodemanager.git] / slivermanager.py
index ce1f255..287ee07 100644 (file)
@@ -29,12 +29,9 @@ except:
     sliver_class_to_register = sliver_vs.Sliver_VS
     sliver_password_shell = sliver_vs.Sliver_VS.SHELL
 
-# temporary - hopefully bwlimit will be packaged separately and there will be no need to do this any longer
-try: 
-    from bwlimitlxc import bwmin, bwmax
-except: 
-    try : from bwlimit import bwmin, bwmax
-    except: bwmin, bwmax = 8, 1000*1000*1000
+# just being safe
+try : from plnode.bwlimit import bwmin, bwmax
+except: bwmin, bwmax = 8, 1000*1000*1000
 
 priority=10
 
@@ -45,6 +42,7 @@ DEFAULT_ALLOCATION = {
     'cpu_pct': 0, # percent CPU reserved
     'cpu_share': 1, # proportional share
     'cpu_cores': "0b", # reserved cpu cores <num_cores>[b]
+    'cpu_freezable': 0, # freeze processes if cpu_cores is 0
     # bandwidth parameters
     'net_min_rate': bwmin / 1000, # kbps
     'net_max_rate': bwmax / 1000, # kbps