From 62481d5501df05ac129d434b6dd05a1895f1407f Mon Sep 17 00:00:00 2001
From: "Jan Alexander Steffens (heftig)" <heftig@archlinux.org>
Date: Wed, 11 Aug 2021 20:14:01 +0200
Subject: [PATCH] matrix: Increase size of get_users_in_room cache

This cache was seeing constant evictions at its former size (70k).

With a size of 200k it now stabilizes at ~122k entries with a
significant drop in server load.
---
 roles/matrix/templates/homeserver.yaml.j2 | 1 +
 1 file changed, 1 insertion(+)

diff --git a/roles/matrix/templates/homeserver.yaml.j2 b/roles/matrix/templates/homeserver.yaml.j2
index dec61af1b..294fb649d 100644
--- a/roles/matrix/templates/homeserver.yaml.j2
+++ b/roles/matrix/templates/homeserver.yaml.j2
@@ -715,6 +715,7 @@ caches:
   #
   per_cache_factors:
     #get_users_who_share_room_with_user: 2.0
+    get_users_in_room: 2.0
 
   # Controls how long an entry can be in a cache without having been
   # accessed before being evicted. Defaults to None, which means
-- 
GitLab