From 2c3c5d1c4b9aacfb0571c4771e807dcd3e5bcae5 Mon Sep 17 00:00:00 2001 From: Descriptor <50195845+SDV109@users.noreply.github.com> Date: Sat, 27 Jan 2024 23:41:47 +0700 Subject: [PATCH] Add auto_compaction for maintenance etcd (#562) Automate the maintenance of etcd cluster. Namely, the addition of automatic compression of the etcd database. > Since etcd keeps an exact history of its keyspace, this history should be periodically compacted to avoid performance degradation and eventual storage space exhaustion. More detail here: https://etcd.io/docs/v3.5/op-guide/maintenance/ --- roles/etcd/templates/etcd.conf.j2 | 1 + 1 file changed, 1 insertion(+) diff --git a/roles/etcd/templates/etcd.conf.j2 b/roles/etcd/templates/etcd.conf.j2 index 0de255671..0aa568c4a 100644 --- a/roles/etcd/templates/etcd.conf.j2 +++ b/roles/etcd/templates/etcd.conf.j2 @@ -10,3 +10,4 @@ ETCD_DATA_DIR="{{ etcd_data_dir }}" ETCD_ELECTION_TIMEOUT="5000" ETCD_HEARTBEAT_INTERVAL="1000" ETCD_INITIAL_ELECTION_TICK_ADVANCE="false" +ETCD_AUTO_COMPACTION_RETENTION="1"