Skip to content

Commit

Permalink
0001128: Add new parameter to make heartbeat at server startup option…
Browse files Browse the repository at this point in the history
…al. Defaulting heartbeat at startup to off.
  • Loading branch information
chenson42 committed Mar 19, 2013
1 parent b1c83f3 commit a6554b5
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
Expand Up @@ -540,7 +540,9 @@ public synchronized boolean start(boolean startJobs) {

}

heartbeat(false);
if (parameterService.is(ParameterConstants.HEARTBEAT_SYNC_ON_STARTUP, false)) {
heartbeat(false);
}

} else {
log.info("Starting unregistered node [group={}, externalId={}]",
Expand Down
Expand Up @@ -194,6 +194,7 @@ private ParameterConstants() {

public final static String OFFLINE_NODE_DETECTION_PERIOD_MINUTES = "offline.node.detection.period.minutes";
public final static String HEARTBEAT_SYNC_ON_PUSH_PERIOD_SEC = "heartbeat.sync.on.push.period.sec";
public final static String HEARTBEAT_SYNC_ON_STARTUP = "heartbeat.sync.on.startup";

public final static String HEARTBEAT_ENABLED = "heartbeat.sync.on.push.enabled";

Expand Down
Expand Up @@ -885,6 +885,12 @@ heartbeat.sync.on.push.enabled=true
# Tags: other
heartbeat.sync.on.push.period.sec=0

# When this property is set to true the heartbeat process will run at server startup. Prior to 3.4
# the heartbeat always happened at startup.
# DatabaseOverridable: true
# Tags: other
heartbeat.sync.on.startup=false

# This is the number of minutes that a node has been offline before taking action
# A value of -1 (or any negative value) disables the feature.
# DatabaseOverridable: true
Expand Down

0 comments on commit a6554b5

Please sign in to comment.