Improve time units of docker_swarm documentation. (#623)

This commit is contained in:
Felix Fontein 2023-05-13 17:25:42 +02:00 committed by GitHub
parent c3b523a11e
commit 6187068ee5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -129,22 +129,24 @@ options:
heartbeat_tick: heartbeat_tick:
description: description:
- Amount of ticks (in seconds) between each heartbeat. - Amount of ticks (in seconds) between each heartbeat.
- Docker default value is C(1s). - Docker default value is C(1) seconds.
type: int type: int
election_tick: election_tick:
description: description:
- Amount of ticks (in seconds) needed without a leader to trigger a new election. - Amount of ticks (in seconds) needed without a leader to trigger a new election.
- Docker default value is C(10s). - Docker default value is C(10) seconds.
type: int type: int
dispatcher_heartbeat_period: dispatcher_heartbeat_period:
description: description:
- The delay for an agent to send a heartbeat to the dispatcher. - The delay (in nanoseconds) for an agent to send a heartbeat to the dispatcher.
- Docker default value is C(5s). - Docker default value is 5 seconds, which corresponds to a value of C(5000000000).
# DefaultHeartBeatPeriod in https://github.com/moby/moby/blob/master/vendor/github.com/moby/swarmkit/v2/manager/dispatcher/dispatcher.go#L32
type: int type: int
node_cert_expiry: node_cert_expiry:
description: description:
- Automatic expiry for nodes certificates. - Automatic expiry for nodes certificates, given in nanoseconds.
- Docker default value is C(3months). - Docker default value is 90 days, which corresponds to a value of C(7776000000000000).
# DefaultNodeCertExpiration in https://github.com/moby/moby/blob/master/vendor/github.com/moby/swarmkit/v2/ca/certificates.go#L56
type: int type: int
name: name:
description: description: