Skip to content
Browse files

EVPerf: allow runs on single-node clusters.

Change-Id: If2264d40cc99776e57d327da6c9736ee12e7ff02
Reviewed-on: http://review.couchbase.org/15493
Reviewed-by: Steve Yen <steve.yen@gmail.com>
Tested-by: Steve Yen <steve.yen@gmail.com>
  • Loading branch information...
1 parent a3c8f13 commit 897f7c9e82ebb96366ddcfc8ce0e1e4818178053 @steveyen committed Apr 30, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 pytests/performance/perf.py
View
4 pytests/performance/perf.py
@@ -401,6 +401,10 @@ def mcsoda_run(self, cfg, cur, protocol, host_port, user, pswd,
bucket=bucket)
def nodes(self, num_nodes):
+ if len(self.input.servers) == 1:
+ self.log.info("WARNING: running on single node cluster")
+ return
+
self.is_multi_node = True
self.assertTrue(RebalanceHelper.rebalance_in(self.input.servers, num_nodes - 1, do_shuffle=False))

0 comments on commit 897f7c9

Please sign in to comment.
Something went wrong with that request. Please try again.