srdo commented on a change in pull request #2945: STORM-3321: Fix race in
LocalCluster regarding Nimbus leadership, red…
URL: https://github.com/apache/storm/pull/2945#discussion_r260638021
##########
File path: storm-server/src/main/java/org/apache/storm/LocalCluster.java
##########
@@ -231,6 +233,10 @@ private LocalCluster(Builder builder) throws Exception {
} else {
this.clusterState = builder.clusterState;
}
+ if (!Time.isSimulating()) {
+ //Ensure Nimbus assigns topologies as quickly as possible
+ conf.put(DaemonConfig.NIMBUS_MONITOR_FREQ_SECS, 1);
Review comment:
I think this is still useful outside testing, since the topology will start
faster, and topologies will usually be submitted right after bootup of the
local Nimbus. Are we intending for people to use LocalCluster for cases other
than testing though?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services