Skip to content

Commit

Permalink
make/cluster.sh: speedup etcd by using --unsafe-no-fsync
Browse files Browse the repository at this point in the history
Using --unsafe-no-fsync is OK for development deployments of etcd [1].
etcd relies on fsync for its consensus protocol.

 [1]: etcd-io/etcd#11946
 [2]: https://etcd.io/docs/v3.5/tuning/#disk
 [3]: https://etcd.io/docs/v3.5/faq/

Signed-off-by: Maël Valais <mael@vls.dev>
Co-authored-by: Tim Ramlot <42113979+inteon@users.noreply.github.com>
  • Loading branch information
maelvls and inteon committed Mar 25, 2022
1 parent 87127e8 commit 719a489
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions make/config/kind/v1beta2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,9 @@ kubeadmConfigPatches:
name: config
networking:
serviceSubnet: 10.0.0.0/16
etcd:
local:
extraArgs:
unsafe-no-fsync: "True"
nodes:
- role: control-plane

0 comments on commit 719a489

Please sign in to comment.