Instruct etcd to delete old revisions (#3024)

Etcd keeps old revisions unless instructed to delete them. If we don't delete old revisions then etcd memory usage will keep growing forever due to keepalive updates. Since Patroni does not really need to roll back to older revisions we can safely delete them.
This commit is contained in:
Hedley Roos
2024-05-13 11:21:06 +02:00
committed by GitHub
parent ff99d29e6d
commit ff31f45226
+1 -1
View File
@@ -38,7 +38,7 @@ EOT
exec dumb-init "$@"
;;
etcd)
exec "$@" -advertise-client-urls "http://$DOCKER_IP:2379"
exec "$@" --auto-compaction-retention=1 -advertise-client-urls "http://$DOCKER_IP:2379"
;;
zookeeper)
exec /usr/share/zookeeper/bin/zkServer.sh start-foreground