feat: enable etcd consistency hashcheck

This will be only enabled for Talos v1.3.x.

Signed-off-by: Andrey Smirnov <andrey.smirnov@talos-systems.com>
This commit is contained in:
Andrey Smirnov 2022-09-15 18:06:06 +04:00
parent 015535d905
commit e5cabd42cc
No known key found for this signature in database
GPG Key ID: 7B26396447AB6DFD
2 changed files with 11 additions and 0 deletions

View File

@ -45,6 +45,15 @@ Talos now supports the Nano Pi R4S SBC.
* CoreDNS: v1.9.4
* etcd: v3.5.5
* Linux: 5.15.68
"""
[notes.etcd]
title = "etcd Consistency Check"
description="""\
Talos enables [--experimental-compact-hash-check-enabled](https://github.com/etcd-io/etcd/pull/14120) option by default to improve
etcd store consistency guarantees.
This options is only available with etcd >= v3.5.5, so Talos doesn't support version of etcd before v3.5.5.
"""
[make_deps]

View File

@ -409,6 +409,7 @@ func (e *Etcd) argsForInit(ctx context.Context, r runtime.Runtime, spec *etcdres
"peer-trusted-ca-file": constants.EtcdCACert,
"experimental-initial-corrupt-check": "true",
"experimental-watch-progress-notify-interval": "5s",
"experimental-compact-hash-check-enabled": "true",
}
extraArgs := argsbuilder.Args(r.Config().Cluster().Etcd().ExtraArgs())
@ -485,6 +486,7 @@ func (e *Etcd) argsForControlPlane(ctx context.Context, r runtime.Runtime, spec
"peer-trusted-ca-file": constants.EtcdCACert,
"experimental-initial-corrupt-check": "true",
"experimental-watch-progress-notify-interval": "5s",
"experimental-compact-hash-check-enabled": "true",
}
extraArgs := argsbuilder.Args(r.Config().Cluster().Etcd().ExtraArgs())