From ff31f45226f03df70e2f4243e84308b5e7138994 Mon Sep 17 00:00:00 2001 From: Hedley Roos Date: Mon, 13 May 2024 13:21:06 +0400 Subject: [PATCH] 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. --- docker/entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker/entrypoint.sh b/docker/entrypoint.sh index 1e6e91b5..4a8d17ab 100755 --- a/docker/entrypoint.sh +++ b/docker/entrypoint.sh @@ -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