def stress(self, stress_options): stress = common.get_stress_bin(self.get_cassandra_dir()) args = [ stress ] + stress_options try: subprocess.call(args, cwd=common.parse_path(stress)) except KeyboardInterrupt: pass
def stress(self, stress_options): stress = common.get_stress_bin(self.get_cassandra_dir()) args = [stress] + stress_options try: subprocess.call(args, cwd=common.parse_path(stress)) except KeyboardInterrupt: pass
def process(path, outdir): runno, fileno, site = parse_path(path) subdir = runno / 100 * 100 outpath = os.path.join(outdir, 'EH%d' % site, '%07d' % subdir, 'pre_ibd.%07d.%04d.root' % (runno, fileno)) os.system( 'mkdir -p %s' % outpath ) # this actually works because ROOT will delete empty dir when open TFile w/ "RECREATE" lol os.system( 'time root -b -q "../selector/stage1_main.cc+(\\"%s\\", \\"%s\\", %d)"' % (path, outpath, site))
def stress(self, stress_options): stress = common.get_stress_bin(self.get_cassandra_dir()) livenodes = [ node.network_interfaces['storage'][0] for node in list(self.nodes.values()) if node.is_live() ] if len(livenodes) == 0: print_("No live node") return args = [ stress, '-d', ",".join(livenodes) ] + stress_options try: # need to set working directory for env on Windows if common.is_win(): subprocess.call(args, cwd=common.parse_path(stress)) else: subprocess.call(args) except KeyboardInterrupt: pass return self
def stress(self, stress_options): stress = common.get_stress_bin(self.get_cassandra_dir()) livenodes = [ node.network_interfaces['storage'][0] for node in self.nodes.values() if node.is_live() ] if len(livenodes) == 0: print "No live node" return args = [stress, '-d', ",".join(livenodes)] + stress_options try: # need to set working directory for env on Windows if common.is_win(): subprocess.call(args, cwd=common.parse_path(stress)) else: subprocess.call(args) except KeyboardInterrupt: pass return self