Esempio n. 1
0
 def __init__(self):
     self.logger = logging.getLogger(self.__class__.__name__)
     self.COMPUTE_NODES = [
         'acticloud1', 'acticloud2', 'acticloud3', 'acticloud4'
     ]
     self.acticlouddb_client = ActiCloudDBClient()
     self.openstack_client = OpenstackClient()
    def __init__(self, host=HOST_DEFAULT, port=PORT_DEFAULT):
        self.host = host
        self.port = port
        self.monitor_thread_done = 0

        self._setup_logger()
        self.actidb_client = ActiCloudDBClient()
Esempio n. 3
0
	def __init__(self, hostname):
		self.logger = logging.getLogger(self.__class__.__name__)
		self.hostname = hostname

		## Initialize the acticloudDB client
		self.acticloudDB_client = ActiCloudDBClient()

		## Openstack client to get the necessary information when needed
		self.openstack_client = OpenstackClient()

		## VMs that are being monitored, indexed by uuid
		self.monitored_vms = dict()

		## Spawned perf threads
		self.perf_threads = []
Esempio n. 4
0
	def __init__(self, compute_node_name, system_type):
		global INTERFERENCE_DETECTION_ENABLED
		self.logger = logging.getLogger(self.__class__.__name__)
		self.hostname = compute_node_name

		self.compute_node_name = compute_node_name

		self.system_type = system_type
		if system_type == "actistatic" or system_type == "actifull":
			if system_type == "actifull":
				INTERFERENCE_DETECTION_ENABLED = True
			self.system = ActiManagerSystem([2, 1, 10], compute_node_name)
		elif system_type == "gps":
			self.system = GoldPerSocketSystem([2, 1, 10], compute_node_name)
		elif system_type == "gno":
			self.system = GoldNotOversubscribedSystem([2, 1, 10], compute_node_name)
		else:
			self.logger.error("Wrong system_type given: %s", system_type)
			sys.exit(1)

		self.acticlouddb_client = ActiCloudDBClient()
		self.openstack_client = OpenstackClient()
		return
Esempio n. 5
0
 def __init__(self):
     LOG.info("Hello from ACTICLOUD Filter __init__")
     self.acticlouddb_client = ActiCloudDBClient()
     self.nova = novaclient.Client("2", **get_nova_creds())
Esempio n. 6
0
import os, sys, json, datetime
sys.path.append('../')
from acticloudDB import ActiCloudDBClient

if (len(sys.argv) < 2):
	print "usage: %s <perf_output_files ...>" % sys.argv[0]
	sys.exit(1)

actiDB = ActiCloudDBClient()

perf_metrics = ['branches', 'branch-misses', 'cycles', 'instructions', 'context-switches',
                'cpu-migrations', 'page-faults', 'LLC-loads', 'LLC-load-misses',
                'dTLB-loads', 'dTLB-load-misses', 'mem-loads', 'mem-stores' ]

starting_time = datetime.datetime.utcnow() - datetime.timedelta(minutes=30)

total_files = len(sys.argv[1:])

for i, filename in enumerate(sys.argv[1:]):

	print "File %d of %d" % (i+1, total_files)

	tokens = os.path.basename(filename).split('-')
	bench_name = tokens[1]
	nr_vcpus = int(tokens[2].replace("vcpus.perf", ""))
	time = starting_time

	fp = open(filename)
	line = fp.readline()
	while line:
		tokens = line.split()
Esempio n. 7
0
 def __init__(self):
     LOG.info("Hello from Gold __init__")
     self.acticlouddb_client = ActiCloudDBClient()