YunoHost-Apps / synapse_ynh

Matrix server (synapse) package for YunoHost
https://matrix.org/
GNU General Public License v3.0
79 stars 42 forks source link

Improve syncing of big accounts: add caching, increase timeout #321

Closed MayeulC closed 4 months ago

MayeulC commented 1 year ago

Problem

Solution

I also left commented out other caching options I use as I have plenty of RAM. The comments are taken from upstream homeserver.yaml. This should make it easier for curious user to play with cache settings, and can be activated by default at a later time.

PR Status

Automatic tests

Automatic tests can be triggered on https://ci-apps-dev.yunohost.org/ after creating the PR, by commenting "!testme", "!gogogadgetoci" or "By the power of systemd, I invoke The Great App CI to test this Pull Request!". (N.B. : for this to work you need to be a member of the Yunohost-Apps organization)

lapineige commented 1 year ago

This should make it easier for curious user to play with cache settings, and can be activated by default at a later time.

Maybe we should shortly document that in this repository ReadMe (for instance), to improve discoverability of such features ?

MayeulC commented 1 year ago

Actually my comments are a bit outdated, it seems (I've been running the current config for about one year) : upstream changed the default caching period to 2 min a few months ago: https://github.com/matrix-org/synapse/pull/13042 so maybe the change isn't that necessary after all.

Element timeouts after 90s though, which is longer than nginx's default of (IIRC) 60s.

Hmm, about the documentation, yes, but I would rather point to upstream docs, and/or the config file comments.

lapineige commented 1 year ago

Hmm, about the documentation, yes, but I would rather point to upstream docs, and/or the config file comments.

I don't mean a full tutorial : mentioning the existence of these settings, pointing to the doc and/or the specific file to modify, is enough :)

lapineige commented 1 year ago

By the way, should this be pointing to Testing instead ?

MayeulC commented 1 year ago

Sorry, I clicked too fast in the GitHub interface. Edit: changed base

Also, I had forgotten part of the nginx config... And I was wondering why Matrix was so silent today :P

MayeulC commented 1 year ago

I added a commit that mentions cache tuning. I am not sure the preferred way to edit the configuration is by editing homeserver.yaml, but that's what I've been doing (overwritten on upgrade, hence the PR).

Josue-T commented 4 months ago

Closing as there are still some work to make it working.