Merge pull request #76 from mpeuster/master
authorpeusterm <manuel.peuster@uni-paderborn.de>
Sat, 16 Apr 2016 02:47:15 +0000 (19:47 -0700)
committerpeusterm <manuel.peuster@uni-paderborn.de>
Sat, 16 Apr 2016 02:47:15 +0000 (19:47 -0700)
Monitoring should be optional, not default, to keep standard emulator footprint small.

src/emuvim/dcemulator/net.py
src/emuvim/dcemulator/node.py

index f237cb5..110256e 100755 (executable)
@@ -26,7 +26,7 @@ class DCNetwork(Dockernet):
     This class is used by topology definition scripts.
     """
 
-    def __init__(self, controller=RemoteController, monitor=True,
+    def __init__(self, controller=RemoteController, monitor=False,
                  dc_emulation_max_cpu=1.0,  # fraction of overall CPU time for emulation
                  dc_emulation_max_mem=512,  # emulation max mem in MB
                  **kwargs):
index 7590973..2911445 100755 (executable)
@@ -178,8 +178,8 @@ class Datacenter(object):
             flavor_name=flavor_name,
             cpu_period=int(cpu_period) if cpu_limit > 0 else None,  # set cpu limits if needed
             cpu_quota=int(cpu_quota) if cpu_limit > 0 else None,
-            mem_limit="%dm" % int(mem_limit) if mem_limit > 0 else None,  # set mem limits if needed
-            memswap_limit="%dm" % int(mem_limit) if mem_limit > 0 else None  # lets set swap to mem limit for now
+            #mem_limit="%dm" % int(mem_limit) if mem_limit > 0 else None,  # set mem limits if needed
+            #memswap_limit="%dm" % int(mem_limit) if mem_limit > 0 else None  # lets set swap to mem limit for now
         )
         # connect all given networks
         # if no --net option is given, network = [{}], so 1 empty dict in the list