ControlNode.Release.HealthCheckSpec (Control Node v0.5.0) View Source

Link to this section Summary

Types

t()

Release.HealthCheckSpec defines health check configuration for the release.

Link to this section Types

Specs

t() :: %ControlNode.Release.HealthCheckSpec{
  function: (() -> :ok | any()),
  interval: pos_integer(),
  on_failure: atom()
}

Release.HealthCheckSpec defines health check configuration for the release.

  • :function : Health check function which will be evaluated in the release nodes.
  • :interval : Time interval after which health function shall be evaluated on release nodes.
  • :on_failure : Action to perform when node(s) failure is detected. Allowed values :reboot | :noop