Enum NeonServiceStatus
Enumerates the possible NeonService running states.
Namespace: Neon.Service
Assembly: Neon.Service.dll
Syntax
public enum NeonServiceStatus
Remarks
Most of these values are self-explanatory, but Running and NotReady may be a bit confusing.
Running means that the service is healthy and is ready to process requests where as NotReady means that the service is healthy but is not ready to process requests.
Most services are ready to accept traffic almost immediately after starting, so setting Running makes sense most of the time. Some services though, may take some time after starting before being ready to process requests. The problem is that the service typically has a limited amount of time before startup or liveliness probes will fail and resulting in the service termination. Setting the NotReady state along with a readiness probe will prevent these other probes from terminating the service.
Fields
Name | Description |
---|---|
NotReady | Indicates that the service is running but it's not ready to perform operations. |
NotStarted | The service has not been started. |
Running | The service is running and ready for traffic. |
Starting | The service is in the process of starting but is not yet fully initialized. |
Terminated | The service has terminated. |
Unhealthy | The service is running but is not healthy. |