Class ServiceRollbackConfig
Specifies the rollback strategy for a service.
Namespace: Neon.Docker
Assembly: Neon.Docker.dll
Syntax
public class ServiceRollbackConfig
Properties
Delay
Time between rollback iterations (in nanoseconds).
Declaration
public long? Delay { get; set; }
Property Value
Type | Description |
---|---|
long? |
FailureAction
Action to take if an rolled back task fails to run or stops running during the rollback.
Declaration
public ServiceRollbackFailureAction? FailureAction { get; set; }
Property Value
Type | Description |
---|---|
ServiceRollbackFailureAction? |
MaxFailureRatio
The fraction of tasks that may fail during an rollback 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 rolled back 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 rolledback task is started.
Declaration
public ServiceRollbackOrder? Order { get; set; }
Property Value
Type | Description |
---|---|
ServiceRollbackOrder? |
Parallelism
Maximum number of tasks to be rolled back in parallel during an rollback 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()