summary refs log tree commit diff
path: root/synapse
diff options
context:
space:
mode:
authorJan Christian Grünhage <jan.christian@gruenhage.xyz>2018-04-04 17:24:40 +0100
committerGitHub <noreply@github.com>2018-04-04 17:24:40 +0100
commit7d0f7123487b655831a9d9770dc9173cd1240859 (patch)
tree1b8bdb3baec79661ade1497f6903e96f94a3ccb4 /synapse
parentMerge pull request #3062 from matrix-org/revert-3053-speedup-mxid-check (diff)
parentphone home cache size configurations (diff)
downloadsynapse-7d0f7123487b655831a9d9770dc9173cd1240859.tar.xz
Merge pull request #3063 from matrix-org/jcgruenhage/cache_settings_stats
phone home cache size configurations
Diffstat (limited to '')
-rwxr-xr-xsynapse/app/homeserver.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/synapse/app/homeserver.py b/synapse/app/homeserver.py
index b935beb974..464799ac90 100755
--- a/synapse/app/homeserver.py
+++ b/synapse/app/homeserver.py
@@ -48,6 +48,7 @@ from synapse.server import HomeServer
 from synapse.storage import are_all_users_on_domain
 from synapse.storage.engines import IncorrectDatabaseSetup, create_engine
 from synapse.storage.prepare_database import UpgradeDatabaseException, prepare_database
+from synapse.util.caches import CACHE_SIZE_FACTOR
 from synapse.util.httpresourcetree import create_resource_tree
 from synapse.util.logcontext import LoggingContext
 from synapse.util.manhole import manhole
@@ -431,6 +432,8 @@ def run(hs):
 
         daily_sent_messages = yield hs.get_datastore().count_daily_sent_messages()
         stats["daily_sent_messages"] = daily_sent_messages
+        stats["cache_factor"] = CACHE_SIZE_FACTOR
+        stats["event_cache_size"] = hs.config.event_cache_size
 
         if len(stats_process) > 0:
             stats["memory_rss"] = 0