mirror of https://github.com/k3s-io/k3s
Add heartbeat interval and election timeout
parent
6b5b69378f
commit
c580a8b528
|
@ -38,6 +38,8 @@ type ETCDConfig struct {
|
|||
ServerTrust ServerTrust `json:"client-transport-security"`
|
||||
PeerTrust PeerTrust `json:"peer-transport-security"`
|
||||
ForceNewCluster bool `json:"force-new-cluster,omitempty"`
|
||||
HeartbeatInterval int `json:"heartbeat-interval"`
|
||||
ElectionTimeout int `json:"election-timeout"`
|
||||
}
|
||||
|
||||
type ServerTrust struct {
|
||||
|
|
|
@ -389,6 +389,8 @@ func (e *ETCD) cluster(ctx context.Context, forceNew bool, options executor.Init
|
|||
ClientCertAuth: true,
|
||||
TrustedCAFile: e.config.Runtime.ETCDPeerCA,
|
||||
},
|
||||
ElectionTimeout: 5000,
|
||||
HeartbeatInterval: 500,
|
||||
})
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue