Agent Daemon Monitor

  • Aggregate peer data received by heartbeats

  • Monitor the local services instances status changes and merges them in the tx heartbeats data and cluster data

  • Monitor the local services configuration changes and update their last modification time in the tx heartbeats data and cluster data

  • Prepare the encrypted message sent by heartbeats

  • Signal tx heartbeats that a new message is ready for sending

  • Run the orchestrators

    • Node orchestrator
    • Service orchestrators
    • Restart service resources flagged for restart
  • Fetch and install the most recent service configuration from peers

Node Orchestrator

If set, try to reach the local_expect.

Value Actions
thawed
  • set status to thawing
  • execute nodemgr thaw
  • set status to idle
frozen
  • set status to frezing
  • execute nodemgr freeze
  • set status to idle

Service Orchestrators

If set, negociate with peers which instances to start to reach global_expect.

If global_expect is not set, the expected service state is started.

If set, try to reach the local_expect.

Value Actions
thawed
  • set status to thawing
  • execute svcmgr -s <svcname> thaw
  • set status to idle
frozen
  • set status to frezing
  • execute svcmgr -s <svcname> freeze
  • set status to idle
started
  • set status to starting
  • execute svcmgr -s <svcname> start
  • set status to idle or start failed
  • execute svcmgr -s <svcname> toc if start failed and a monitor action is defined
stopped
  • set status to stopping
  • execute svcmgr -s <svcname> stop
  • set status to idle or stop failed

See also

Orchestration