Permalink
Browse files

Change to abstract fabric reconfiguration init

  • Loading branch information...
aaronelmore committed May 6, 2014
1 parent 89a4386 commit 7b0dc7ce7989623febceaabe75208ab147a7a118
Showing with 10 additions and 2 deletions.
  1. +10 −2 tools/hstore/fabric/abstractfabric.py
@@ -313,12 +313,14 @@ def exec_benchmark(self, inst, project, \
if extraParams:
hstore_options = dict(hstore_options.items() + extraParams.items())
'''
if reconfigEvents:
LOG.info("Reconfig events : %s" % reconfigEvents)
t = Thread(target=self.exec_reconfigs, args=(inst, reconfigEvents, project))
t.setDaemon(True)
t.start()
'''
## Any other option not listed in the above dict should be written to
## a properties file
workloads = None
@@ -339,7 +341,13 @@ def exec_benchmark(self, inst, project, \
## IF
LOG.info("Running benchmark on %s", inst)
cmd = "ant %s hstore-benchmark %s" % (prefix, hstore_opts_cmd)
reconfig_cmd = ''
if reconfigEvents:
if len(reconfigEvents) > 1:
raise NotImplementedError()
cmd = "-Dproc='@ReconfigurationStatic' -Dproc_start_time=%s -Dparam0=%s -Dparam1=%s -Dparam2=%s" % (reconfig['delayTimeMS'], reconfig['leaderID'], reconfig['planID'], reconfig['reconfigType'])
cmd = "ant %s hstore-benchmark %s %s" % (prefix, hstore_opts_cmd, reconfig_cmd)
output = run(cmd)
## If they wanted a trace file, then we have to ship it back to ourselves

0 comments on commit 7b0dc7c

Please sign in to comment.