def __init__(self, conn=None, qps=None, duration=None, size=None, mode='http', mixer_mode='mixer', mixer_cache=True, perf_record=False, server='fortioserver', client='fortioclient', additional_args=None, filter_fn=None, labels=None, baseline=False, serversidecar=False, clientsidecar=True, ingress=None, mesh='istio'):
    self.run_id = str(uuid.uuid4()).partition('-')[0]
    self.conn = conn
    self.qps = qps
    self.size = size
    self.duration = duration
    self.mode = mode
    self.ns = os.environ.get('NAMESPACE', 'twopods')
    self.r = '0.00005'
    self.mixer_mode = mixer_mode
    self.mixer_cache = mixer_cache
    self.perf_record = perf_record
    self.server = pod_info(('-lapp=' + server), namespace=self.ns)
    self.client = pod_info(('-lapp=' + client), namespace=self.ns)
    self.additional_args = additional_args
    self.filter_fn = filter_fn
    self.labels = labels
    self.run_baseline = baseline
    self.run_serversidecar = serversidecar
    self.run_clientsidecar = clientsidecar
    self.run_ingress = ingress
    if (mesh == 'linkerd'):
        self.mesh = 'linkerd'
    elif (mesh == 'istio'):
        self.mesh = 'istio'
    else:
        sys.exit(('invalid mesh %s, must be istio or linkerd' % mesh))
def __init__(self, conn=None, qps=None, duration=None, size=None, mode='http', mixer_mode='mixer', mixer_cache=True, perf_record=False, server='fortioserver', client='fortioclient', additional_args=None, filter_fn=None, labels=None, baseline=False, serversidecar=False, clientsidecar=True, ingress=None, mesh='istio'):
    self.run_id = str(uuid.uuid4()).partition('-')[0]
    self.conn = conn
    self.qps = qps
    self.size = size
    self.duration = duration
    self.mode = mode
    self.ns = os.environ.get('NAMESPACE', 'twopods')
    self.r = '0.00005'
    self.mixer_mode = mixer_mode
    self.mixer_cache = mixer_cache
    self.perf_record = perf_record
    self.server = pod_info(('-lapp=' + server), namespace=self.ns)
    self.client = pod_info(('-lapp=' + client), namespace=self.ns)
    self.additional_args = additional_args
    self.filter_fn = filter_fn
    self.labels = labels
    self.run_baseline = baseline
    self.run_serversidecar = serversidecar
    self.run_clientsidecar = clientsidecar
    self.run_ingress = ingress
    if (mesh == 'linkerd'):
        self.mesh = 'linkerd'
    elif (mesh == 'istio'):
        self.mesh = 'istio'
    else:
        sys.exit(('invalid mesh %s, must be istio or linkerd' % mesh))