From af2e0ecd4dfe4d64afea3cb828957fa3aba0b1b5 Mon Sep 17 00:00:00 2001 From: Seth Jennings Date: Tue, 7 Jun 2022 17:05:11 -0500 Subject: [PATCH] set snapshot-count on etcd to limit memory usage variability --- .../controllers/hostedcontrolplane/etcd/reconcile.go | 1 + 1 file changed, 1 insertion(+) diff --git a/control-plane-operator/controllers/hostedcontrolplane/etcd/reconcile.go b/control-plane-operator/controllers/hostedcontrolplane/etcd/reconcile.go index b9eff4d509..6adae114f1 100644 --- a/control-plane-operator/controllers/hostedcontrolplane/etcd/reconcile.go +++ b/control-plane-operator/controllers/hostedcontrolplane/etcd/reconcile.go @@ -104,6 +104,7 @@ func buildEtcdContainer(p *EtcdParams, namespace string) func(c *corev1.Containe --initial-cluster=${INITIAL_CLUSTER} \ --initial-cluster-state=new \ --quota-backend-bytes=${QUOTA_BACKEND_BYTES} \ +--snapshot-count=10000 \ --peer-client-cert-auth=true \ --peer-cert-file=/etc/etcd/tls/peer/peer.crt \ --peer-key-file=/etc/etcd/tls/peer/peer.key \