Esempio n. 1
0
    def _setup_cluster_sim(self, rate, io):
        self.cs.scenario = 'airtraffic'

        if self.local: localval = 'true'
        else: localval = 'false'
        self.cs.object_simple = 'true'
        self.cs.scenario_options = ' '.join([
            '--num-pings-per-second=' + str(rate),
            '--num-hp-per-second=' + str(800),  #6999
            '--prob-messages-uniform=0.999',
            '--num-receivers=8',
            '--num-objects-per-server=20',
            '--hp-size=720',  # + str(self.payload_size),
            '--ping-size=780',  # + str(self.payload_size),
            '--local=' + localval,
        ])
        self.cs.odp_flow_scheduler = self.scheme

        if 'object' not in self.cs.traces['simoh']:
            self.cs.traces['simoh'].append('object')
        if 'ping' not in self.cs.traces['simoh']:
            self.cs.traces['simoh'].append('ping')
        #if 'message' not in self.cs.traces['all']: self.cs.traces['all'].append('message')

        cluster_sim = ClusterSim(self.cc, self.cs, io=io)
        return cluster_sim
Esempio n. 2
0
    def _setup_cluster_sim(self, rate, io):
        self.cs.scenario = 'loadpackettrace'

        if self.local: localval = 'true'
        else: localval = 'false'
        self.cs.object_simple = 'false'

        self.cs.scenario_options = ' '.join([
            '--num-pings-per-second=' + str(rate),
            '--num-objects-per-server=512',
            '--ping-size=' + str(self.payload_size), '--local=' + localval,
            " --tracefile=" + trmsgfile
        ])
        self.cs.odp_flow_scheduler = self.scheme

        if 'object' not in self.cs.traces['simoh']:
            self.cs.traces['simoh'].append('object')
        if 'ping' not in self.cs.traces['simoh']:
            self.cs.traces['simoh'].append('ping')
        if 'message' not in self.cs.traces['all']:
            self.cs.traces['all'].append('message')
        #if 'oseg-cumulative' not in self.cs.traces['space']: self.cs.traces['space'].append('oseg-cumulative');

        cluster_sim = ClusterSim(self.cc, self.cs, io=io)
        return cluster_sim
Esempio n. 3
0
    def _setup_cluster_sim(self, io):
        self.cs.scenario = 'null'

        self.cs.object_simple = 'true'
        self.cs.scenario_options = None

        self.cs.num_random_objects = self.nobjects
        self.cs.object_query_frac = self.query_frac

        cluster_sim = ClusterSim(self.cc, self.cs, io=io)
        return cluster_sim
Esempio n. 4
0
    def _setup_cluster_sim(self, rate, io):
        self.cs.scenario = 'ping'
        self.cs.scenario_options = ' '.join([
            '--num-pings-per-second=' + str(rate),
            '--allow-same-object-host=' + str(self.local_messages),
            '--force-same-object-host=' +
            str(self.local_messages and not self.remote_messages),
        ])

        if 'datagram' not in self.cs.traces['cbr']:
            self.cs.traces['cbr'].append('datagram')
        if 'ping' not in self.cs.traces['simoh']:
            self.cs.traces['simoh'].append('ping')

        cluster_sim = ClusterSim(self.cc, self.cs, io=io)
        return cluster_sim
Esempio n. 5
0
    def _setup_cluster_sim(self, rate, io):
        self.cs.scenario = 'deluge'

        if self.local: localval = 'true'
        else: localval = 'false'
        self.cs.object_simple = 'false'
        self.cs.scenario_options = ' '.join([
            '--num-pings-per-second=' + str(rate),
            '--ping-size=' + str(self.payload_size),
            '--local=' + localval,
        ])
        self.cs.odp_flow_scheduler = self.scheme

        if 'object' not in self.cs.traces['simoh']:
            self.cs.traces['simoh'].append('object')
        if 'ping' not in self.cs.traces['simoh']:
            self.cs.traces['simoh'].append('ping')
        if 'message' not in self.cs.traces['all']:
            self.cs.traces['all'].append('message')

        cluster_sim = ClusterSim(self.cc, self.cs, io=io)
        return cluster_sim