Ejemplo n.º 1
0
    def __init__(self, env_id, iperf_id):
        """Vsock throughput baseline provider initialization."""
        cpu_model_name = get_cpu_model_name()
        baselines = list(filter(
            lambda cpu_baseline: cpu_baseline["model"] == cpu_model_name,
            CONFIG["hosts"]["instances"]["m5d.metal"]["cpus"]))
        super().__init__(DictQuery(dict()))
        if len(baselines) > 0:
            super().__init__(DictQuery(baselines[0]))

        self._tag = "baselines/{}/" + env_id + "/{}/" + iperf_id
    def __init__(self, env_id):
        """Snapshot baseline provider initialization."""
        cpu_model_name = get_cpu_model_name()
        baselines = list(filter(
            lambda cpu_baseline: cpu_baseline["model"] == cpu_model_name,
            CONFIG_DICT["hosts"]["instances"][get_instance_type()]["cpus"]))

        super().__init__(DictQuery({}))
        if len(baselines) > 0:
            super().__init__(DictQuery(baselines[0]))

        self._tag = "baselines/{}/" + env_id + "/{}"
Ejemplo n.º 3
0
 def __init__(self, env_id):
     """Snapshot baseline provider initialization."""
     baselines = CONFIG["hosts"]["instances"]["m5d.metal"]
     super().__init__(DictQuery(baselines))
     self._tag = "baselines/{}/" + env_id + "/{}"