private void doDoTest(final int size, final int loopCnt) throws Throwable {
if (size<2) {
fail("can only test 2 or more instances");
}
Instance firstInstance = Instance.newStandaloneInstance("/var/discovery/impl/ClusterLoadTest/doTest-"+size+"-"+loopCnt+"/", "firstInstance", false, 2, 0);
firstInstance.startHeartbeats(1);
instances.add(firstInstance);
for(int i=1; i<size; i++) {
Instance subsequentInstance = Instance.newClusterInstance("/var/discovery/impl/ClusterLoadTest/doTest-"+size+"-"+loopCnt+"/", "subsequentInstance-"+i, firstInstance, false, 2, 0);
instances.add(subsequentInstance);
subsequentInstance.startHeartbeats(1);