Randomise start up order.
@@ -56,7 +56,10 @@ public class ProcessManager {
}
public void startNodes() throws Exception {
- for (String nodeAlias : configFiles.keySet()) {
+ List<String> nodeAliases = Arrays.asList(configFiles.keySet().toArray(new String[0]));
+ Collections.shuffle(nodeAliases);
+
+ for (String nodeAlias : nodeAliases) {
start(nodeAlias);
}
}
