How do I change the restart policy for Machines?

Most our services rely on health checks. Any timeline for these for Machines?

  1. If there aren’t health-checks for Machines, what does the restart-policy act on? Does it monitor the exit code to apply restart-policies?
    a. Does no mean, a new vm is started on next request?
    b. Does always mean, even if it exits with 0, the main process is restarted inside the existing vm?
    c. Does on-failure mean, only on non-zero exit codes, the main process is restarted in the existing vm?
  2. What does the default policy do? In all our Machine configs, the restart-policy is empty.
      "restart": {                                                              
        "policy": ""                                                            
      }

Thanks.

1 Like