def netBandwidth(name, options, cluster_args, client_args): if 'num_clients' not in cluster_args: cluster_args['num_clients'] = 2 * len(config.getHosts()) if options.num_servers == None: cluster_args['num_servers'] = cluster_args['num_clients'] if cluster_args['num_servers'] > len(config.getHosts()): cluster_args['num_servers'] = len(config.getHosts()) if options.size != None: client_args['--size'] = options.size else: client_args['--size'] = 1024 * 1024 default(name, options, cluster_args, client_args)
def netBandwidth(name, options, cluster_args, client_args): if 'num_clients' not in cluster_args: cluster_args['num_clients'] = 2*len(config.getHosts()) if options.num_servers == None: cluster_args['num_servers'] = cluster_args['num_clients'] if cluster_args['num_servers'] > len(config.getHosts()): cluster_args['num_servers'] = len(config.getHosts()) if options.size != None: client_args['--size'] = options.size else: client_args['--size'] = 1024*1024; cluster.run(client='%s/ClusterPerf %s %s' % (obj_path, flatten_args(client_args), name), **cluster_args) print(get_client_log(), end='')
def netBandwidth(name, options, cluster_args, client_args): if 'num_clients' not in cluster_args: cluster_args['num_clients'] = 2*len(config.getHosts()) if options.num_servers == None: cluster_args['num_servers'] = cluster_args['num_clients'] if cluster_args['num_servers'] > len(config.getHosts()): cluster_args['num_servers'] = len(config.getHosts()) if options.size != None: client_args['--size'] = options.size else: client_args['--size'] = 1024*1024; cluster.run(client='%s/ClusterPerf %s %s' % (obj_path, flatten_args(client_args), name), **cluster_args) print(get_client_log(), end='')