Skip to content

Commit

Permalink
Add auto_compaction for maintenance etcd (#562)
Browse files Browse the repository at this point in the history
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/
  • Loading branch information
SDV109 authored Jan 27, 2024
1 parent e70836c commit 2c3c5d1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions roles/etcd/templates/etcd.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit 2c3c5d1

Please sign in to comment.