Class ServiceUpdateConfig
Specifies the update strategy for a service.
Namespace: Neon.Docker
Assembly: Neon.Docker.dll
Syntax
public class ServiceUpdateConfig
Properties
Delay
Time between update interations (in nanoseconds).
Declaration
public long? Delay { get; set; }
Property Value
Type | Description |
---|---|
long? |
FailureAction
Action to take if an updated task fails to run or stops running during the update.
Declaration
public ServiceUpdateFailureAction FailureAction { get; set; }
Property Value
Type | Description |
---|---|
ServiceUpdateFailureAction |
MaxFailureRatio
The fraction of tasks that may fail during an update before the failure '] action is invoked, specified as a floating point number between 0 and 1.
Declaration
public double? MaxFailureRatio { get; set; }
Property Value
Type | Description |
---|---|
double? |
Monitor
Time to monitor updated tasks for failure (in nanoseconds).
Declaration
public long? Monitor { get; set; }
Property Value
Type | Description |
---|---|
long? |
Order
Specifies the order in which the running task is stopped and the new task is started.
Declaration
public ServiceUpdateOrder Order { get; set; }
Property Value
Type | Description |
---|---|
ServiceUpdateOrder |
Parallelism
Maximum number of tasks to be updated in parallel during an update interation.
Declaration
public long? Parallelism { get; set; }
Property Value
Type | Description |
---|---|
long? |
Methods
Normalize()
Recursively ensures ensures that any null class or list related properties are replaced with instances with default values or empty lists.
Declaration
public void Normalize()