Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide list of all Synapse caches with default limits numbers and current sizes in bytes #8811

Open
matrixbot opened this issue Dec 18, 2023 · 0 comments

Comments

@matrixbot
Copy link
Collaborator

matrixbot commented Dec 18, 2023

This issue has been migrated from #8811.


Description:
In homeserver.yaml we have caches section, where can fill cache factors - global, or per_cache.
But I can't find the way to lookup list of all cache names (best with short description) that use Synapse, with default values in numbers, and exact name for config file parameter.

For example, what is default number for get_users_who_share_room_with_user - 100, 1000, or 10000? If we will have the default numbers, we will can calculate result using simple math.

Other problem is cache name, for example, the *getEvent* cache must be named in yaml file as *getEvent*, getEvent, get_event, _get_event_ (with replacing * to _), or maybe event_cache_size - what is right version?

Also we need the way to lookup current cache size in bytes, not only in objects count, to understand which cache eats most of RAM, when we try to solve "Synapse eats all my RAM" problem.

P. S. And separate question about root parameter event_cache_size - is this limit for getEvent cache, and caches.global_factor value applies to it now? In yaml comment there are "Not affected by caches.global_factor." but I set it to 500K, and see in Prometheus that *getEvent* grows to 1600K with global_factor = 4.0!

Also in current homeserver.yaml template parameter event_cache_size located in root, not inside cache category, - is this right?

Regarding this change https://github.com/matrix-org/synapse/pull/6391/files/2619891343cc55b307ae36e6dda6247b2d6a5f73#diff-bfb2b1823a1f152109d0007dc9c8c6e83a99ea81ffa6edc08ecca5fc8b3475daR75 - event_cache_size variable in must be moved from the root to caches subcategory, right?

@matrixbot matrixbot changed the title Dummy issue Provide list of all Synapse caches with default limits numbers and current sizes in bytes Dec 21, 2023
@matrixbot matrixbot reopened this Dec 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant