Skip to content

Commit

Permalink
Merge pull request matrix-org#3063 from matrix-org/jcgruenhage/cache_…
Browse files Browse the repository at this point in the history
…settings_stats

phone home cache size configurations
  • Loading branch information
jcgruenhage authored Apr 4, 2018
2 parents 9cd3f06 + e4570c5 commit 7d0f712
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions synapse/app/homeserver.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
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
Expand Down Expand Up @@ -431,6 +432,8 @@ def phone_stats_home():

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
Expand Down

0 comments on commit 7d0f712

Please sign in to comment.