# UpdateConfig Properties

- Package: [Aspire.Hosting.Docker](/reference/api/csharp/aspire.hosting.docker.md)
- Type: [UpdateConfig](/reference/api/csharp/aspire.hosting.docker/updateconfig.md)
- Kind: `Properties`
- Members: `6`

Defines the update configuration settings for service deployments in a Docker Swarm environment.

## Delay

- Name: `Delay`
- Modifiers: `nullable` `get; set`
- Returns: `string?`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/5bd693ae1897dee5e2ce71c2cc08879c1c7eff51/src/Aspire.Hosting.Docker/Resources/ServiceNodes/Swarm/UpdateConfig.cs)

Represents the delay between each update operation for a service node in a swarm configuration.

```csharp
public string? Delay { get; set; }
```

## FailureAction

- Name: `FailureAction`
- Modifiers: `nullable` `get; set`
- Returns: `string?`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/5bd693ae1897dee5e2ce71c2cc08879c1c7eff51/src/Aspire.Hosting.Docker/Resources/ServiceNodes/Swarm/UpdateConfig.cs)

Gets or sets the action to take when an update fails. Valid values are `"continue"`, `"rollback"`, and `"pause"`.

```csharp
public string? FailureAction { get; set; }
```

## MaxFailureRatio

- Name: `MaxFailureRatio`
- Modifiers: `nullable` `get; set`
- Returns: `string?`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/5bd693ae1897dee5e2ce71c2cc08879c1c7eff51/src/Aspire.Hosting.Docker/Resources/ServiceNodes/Swarm/UpdateConfig.cs)

Gets or sets the maximum failure ratio allowed during the update process. This property specifies the threshold for the ratio of failed tasks over the total number of tasks during a service update. If the failure ratio exceeds this value, the update will be rolled back or stopped depending on the configured failure action.

```csharp
public string? MaxFailureRatio { get; set; }
```

## Monitor

- Name: `Monitor`
- Modifiers: `nullable` `get; set`
- Returns: `string?`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/5bd693ae1897dee5e2ce71c2cc08879c1c7eff51/src/Aspire.Hosting.Docker/Resources/ServiceNodes/Swarm/UpdateConfig.cs)

Gets or sets the duration or interval for monitoring the progress of an update. This property is typically used to specify the time span the system will monitor the update process before determining its status (success or failure).

```csharp
public string? Monitor { get; set; }
```

## Order

- Name: `Order`
- Modifiers: `nullable` `get; set`
- Returns: `string?`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/5bd693ae1897dee5e2ce71c2cc08879c1c7eff51/src/Aspire.Hosting.Docker/Resources/ServiceNodes/Swarm/UpdateConfig.cs)

Represents the execution order of service updates during the update process. Specifies the sequence in which the update operations are applied (e.g., "start-first" or "stop-first").

```csharp
public string? Order { get; set; }
```

## Parallelism

- Name: `Parallelism`
- Modifiers: `nullable` `get; set`
- Returns: `int?`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/5bd693ae1897dee5e2ce71c2cc08879c1c7eff51/src/Aspire.Hosting.Docker/Resources/ServiceNodes/Swarm/UpdateConfig.cs)

Gets or sets the maximum number of service tasks that can be updated simultaneously.

```csharp
public int? Parallelism { get; set; }
```
