From ddfd92e124aa1a615245374a8eddd3b719228791 Mon Sep 17 00:00:00 2001 From: Guillaume Boutry Date: Thu, 22 Feb 2024 12:09:29 +0100 Subject: [PATCH] Limit gnocchi metricd workers Metricd was spawning 1 worker per logical core, which in turned blew up the number of connection on MySQL when host has 48 cores. Limit to 4. Change-Id: I06b4cb866cac888e24df78e4c889ac55c5893290 --- charms/gnocchi-k8s/src/templates/gnocchi.conf.j2 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/charms/gnocchi-k8s/src/templates/gnocchi.conf.j2 b/charms/gnocchi-k8s/src/templates/gnocchi.conf.j2 index d276ed4b..ddfd858e 100644 --- a/charms/gnocchi-k8s/src/templates/gnocchi.conf.j2 +++ b/charms/gnocchi-k8s/src/templates/gnocchi.conf.j2 @@ -16,5 +16,7 @@ ceph_pool = gnocchi ceph_username = gnocchi ceph_conffile = /etc/ceph/ceph.conf +[metricd] +workers = 4 {% include "parts/section-identity" %}