# Autotakeover

To support Autotakeover, you must first:

# Configure Autotakeover

Scheduled jobs are owned by the last cluster member who modified them. Jobs can also be controlled using Cluster Manager. If a cluster member goes down, all scheduled jobs on that cluster member must be moved to another cluster node. This process can be performed automatically using the heartbeat and Autotakeover features in Rundeck Enterprise version 2.1.0 and later releases.

Configure the heartbeat by adding the following settings in rundeck-config.properties:

# heartbeat interval in seconds

# initial delay after startup to send heartbeat

# remote execute/abort message processing interval in seconds

# age in seconds since last heartbeat to consider another member inactive

# age in seconds since last heartbeat to consider another member dead

Then configure Autotakeover by adding the following settings in rundeck-config.properties:

# enables autotakeover for members detected as "dead"

# policy indicates which nodes to take over. "Any": all dead nodes. "Static": only allowed uuids

# delay in seconds to wait after sending autotakeover proposal
rundeck.clusterMode.autotakeover.delay = 60

# sleep in minimum seconds between autotakeover atttempts for a particular destination
rundeck.clusterMode.autotakeover.sleep = 300

# Autotakeover policies

The options are:

  • Any: the auto take-over process will assign the scheduled owner of a job to any cluster active member

  • Static: If using static policy, you can configure a list of allowed member UUIDs to proceed with auto take-over if they are marked as dead. If a member is marked as dead and not in this list, auto take-over will not be performed. For example:

  • RemoteExecution: This policy is used when you have the remote execution enabled, and the auto take-over process will respect the remote execution policy defined on the cluster. see Remote Job Execution