Type Alias: SwarmSpec ​
SwarmSpec:
object
User modifiable swarm configuration.
Type declaration ​
Name | Type | Description |
---|---|---|
CAConfig ? | object | null | CA configuration. |
Dispatcher ? | object | null | Dispatcher configuration. |
EncryptionConfig ? | object | Parameters related to encryption-at-rest. |
EncryptionConfig.AutoLockManagers ? | boolean | If set, generate a key and use it to lock data stored on the managers. |
Labels ? | object | User-defined key/value metadata. |
Name ? | string | Name of the swarm. |
Orchestration ? | object | null | Orchestration configuration. |
Raft ? | object | Raft configuration. |
Raft.ElectionTick ? | number | The number of ticks that a follower will wait for a message from the leader before becoming a candidate and starting an election. ElectionTick must be greater than HeartbeatTick . A tick currently defaults to one second, so these translate directly to seconds currently, but this is NOT guaranteed. |
Raft.HeartbeatTick ? | number | The number of ticks between heartbeats. Every HeartbeatTick ticks, the leader will send a heartbeat to the followers. A tick currently defaults to one second, so these translate directly to seconds currently, but this is NOT guaranteed. |
Raft.KeepOldSnapshots ? | number | The number of snapshots to keep beyond the current snapshot. |
Raft.LogEntriesForSlowFollowers ? | number | The number of log entries to keep around to sync up slow followers after a snapshot is created. |
Raft.SnapshotInterval ? | number | The number of log entries between snapshots. |
TaskDefaults ? | object | Defaults for creating tasks in this cluster. |
TaskDefaults.LogDriver ? | object | The log driver to use for tasks created in the orchestrator if unspecified by a service. Updating this value only affects new tasks. Existing tasks continue to use their previously configured log driver until recreated. |
TaskDefaults.LogDriver.Name ? | string | The log driver to use as a default for new tasks. |
TaskDefaults.LogDriver.Options ? | object | Driver-specific options for the selected log driver, specified as key/value pairs. |