Interface DeepHealthChecks.Builder

  • Method Details

    • onStart

      The deep health check to run each time an instance starts, including after a reboot, before the compute node accepts jobs. If the check fails after a reboot, PCS takes the same repairAction as at launch. For example, with REPLACE, PCS replaces the instance instead of returning it to service. If the compute node group has scripts in the nodeBootstrapped stage of nodeLifecycleActions, the deep health check runs after those scripts. If a script fails and its onError setting terminates the compute node, the deep health check doesn't run. This value is required when you specify deepHealthChecks.

      Parameters:
      onStart - The deep health check to run each time an instance starts, including after a reboot, before the compute node accepts jobs. If the check fails after a reboot, PCS takes the same repairAction as at launch. For example, with REPLACE, PCS replaces the instance instead of returning it to service. If the compute node group has scripts in the nodeBootstrapped stage of nodeLifecycleActions, the deep health check runs after those scripts. If a script fails and its onError setting terminates the compute node, the deep health check doesn't run. This value is required when you specify deepHealthChecks.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • onStart

      The deep health check to run each time an instance starts, including after a reboot, before the compute node accepts jobs. If the check fails after a reboot, PCS takes the same repairAction as at launch. For example, with REPLACE, PCS replaces the instance instead of returning it to service. If the compute node group has scripts in the nodeBootstrapped stage of nodeLifecycleActions, the deep health check runs after those scripts. If a script fails and its onError setting terminates the compute node, the deep health check doesn't run. This value is required when you specify deepHealthChecks.

      This is a convenience method that creates an instance of the DeepHealthCheckOnStart.Builder avoiding the need to create one manually via DeepHealthCheckOnStart.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to onStart(DeepHealthCheckOnStart).

      Parameters:
      onStart - a consumer that will call methods on DeepHealthCheckOnStart.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: