matrix-docker-ansible-deploy/roles/custom
Slavi Pantaleev d0cda27c97 Fix Synapse cache auto-tuning variables to use bytes, not KB
Fixup for https://github.com/spantaleev/matrix-docker-ansible-deploy/pull/3017

This reverts 1cd82cf068 and also multiplies results by `1024`
so as to pass bytes to Synapse, not KB (as done before).

1cd82cf068 was correctly documenting what we were doing (passing KB values),
but that's incorrect.

Synapse's Config Conventions
(https://matrix-org.github.io/synapse/latest/usage/configuration/config_documentation.html#config-conventions)
are supposed to clear it up, but they don't currently state what happens when you pass a plain number (without a unit suffix).

Thankfully, the source code tells us:
bc1db16086/synapse/config/_base.py (L181-L206)

> If an integer is provided it is treated as bytes and is unchanged.
>
> String byte sizes can have a suffix of ...
> No suffix is understood as a plain byte count.

We were previously passing strings, but that has been improved in 3d73ec887a.

Regardless, non-suffixed values seem to be treated as bytes by Synapse,
so this patch changes the variables to use bytes.

Moreover, we're moving from `matrix_synapse_memtotal_kb` to
`matrix_synapse_cache_size_calculations_memtotal_bytes` as working with
the base unit everywhere is preferrable.

Here, we also introduce 2 new variables to allow for the caps to be
tweaked:

- `matrix_synapse_cache_size_calculations_max_cache_memory_usage_cap_bytes`
- `matrix_synapse_cache_size_calculations_target_cache_memory_usage_cap_bytes`
2024-02-14 13:39:40 +02:00
..
matrix_playbook_migration Wire matrix_server_fqn_matrix_federation to matrix_SERVICE_*_public_federation_api_traefik_hostname for ease of use 2024-01-26 16:04:55 +02:00
matrix-base Disable addons communicating with the homeserver via Traefik if there is no Traefik at all 2024-01-18 12:12:41 +02:00
matrix-bot-buscarron fix buscarron old vars 2024-02-08 21:17:12 +02:00
matrix-bot-chatgpt Merge branch 'master' into bye-bye-nginx-proxy 2024-01-05 17:55:49 +02:00
matrix-bot-draupnir Update gnuxie/draupnir Docker tag to v1.86.2 2024-02-09 21:13:33 +00:00
matrix-bot-go-neb Ensure each container labels file defines at least one service 2024-01-17 17:56:45 +02:00
matrix-bot-honoroit update honoroit (v0.9.19 -> v0.9.20) 2024-02-05 22:12:24 +02:00
matrix-bot-matrix-registration-bot Revert "Auto-generate matrix_bot_matrix_registration_bot_bot_password via group vars" 2024-01-09 10:22:20 +02:00
matrix-bot-matrix-reminder-bot Merge branch 'master' into bye-bye-nginx-proxy 2024-01-13 10:25:35 +02:00
matrix-bot-maubot Make Traefik labels files look better 2024-01-15 10:41:15 +02:00
matrix-bot-mjolnir Explicitly Declare Draupnir and Mjolnir Config and enter Bot Mode 2024-01-24 15:26:05 +01:00
matrix-bot-postmoogle Update registry.gitlab.com/etke.cc/postmoogle Docker tag to v0.9.17 2024-02-11 19:45:35 +00:00
matrix-bridge-appservice-discord Make homeserver services sleep after startup, instead of all dependencies sleeping separately 2024-01-12 12:45:18 +02:00
matrix-bridge-appservice-irc Fix NeDB to Postgres importing task for matrix-bridge-appservice-irc 2024-01-13 17:18:22 +02:00
matrix-bridge-appservice-kakaotalk Fix additional-networks connectivity for a few services 2024-01-15 11:13:47 +02:00
matrix-bridge-appservice-slack Make Traefik labels files look better 2024-01-15 10:41:15 +02:00
matrix-bridge-appservice-webhooks Make Traefik labels files look better 2024-01-15 10:41:15 +02:00
matrix-bridge-beeper-linkedin Make homeserver services sleep after startup, instead of all dependencies sleeping separately 2024-01-12 12:45:18 +02:00
matrix-bridge-go-skype-bridge Make homeserver services sleep after startup, instead of all dependencies sleeping separately 2024-01-12 12:45:18 +02:00
matrix-bridge-heisenbridge Move matrix-bridge-heisenbridge to its own container network 2024-01-07 15:24:10 +02:00
matrix-bridge-hookshot Fix problematic Hookshot redirect for /hookshot/widgetapi/v1/static 2024-01-19 17:08:14 +02:00
matrix-bridge-mautrix-discord Fix mautrix-discord config Jinja2 syntax error 2024-01-25 07:35:16 +02:00
matrix-bridge-mautrix-facebook Ensure each container labels file defines at least one service 2024-01-17 17:56:45 +02:00
matrix-bridge-mautrix-gmessages Ensure each container labels file defines at least one service 2024-01-17 17:56:45 +02:00
matrix-bridge-mautrix-googlechat Ensure each container labels file defines at least one service 2024-01-17 17:56:45 +02:00
matrix-bridge-mautrix-hangouts Ensure each container labels file defines at least one service 2024-01-17 17:56:45 +02:00
matrix-bridge-mautrix-instagram Ensure each container labels file defines at least one service 2024-01-17 17:56:45 +02:00
matrix-bridge-mautrix-signal Update Signal config.yaml.j2 2024-02-08 09:16:29 +00:00
matrix-bridge-mautrix-slack Make homeserver services sleep after startup, instead of all dependencies sleeping separately 2024-01-12 12:45:18 +02:00
matrix-bridge-mautrix-telegram chore(deps): update Telegrambot config 2024-01-20 12:58:41 +01:00
matrix-bridge-mautrix-twitter Ensure each container labels file defines at least one service 2024-01-17 17:56:45 +02:00
matrix-bridge-mautrix-whatsapp Use to_json for matrix_mautrix_whatsapp_extev_polls 2024-02-09 16:42:48 +02:00
matrix-bridge-mautrix-wsproxy Fix additional-networks connectivity for a few services 2024-01-15 11:13:47 +02:00
matrix-bridge-mx-puppet-discord Make homeserver services sleep after startup, instead of all dependencies sleeping separately 2024-01-12 12:45:18 +02:00
matrix-bridge-mx-puppet-groupme Make homeserver services sleep after startup, instead of all dependencies sleeping separately 2024-01-12 12:45:18 +02:00
matrix-bridge-mx-puppet-instagram Make homeserver services sleep after startup, instead of all dependencies sleeping separately 2024-01-12 12:45:18 +02:00
matrix-bridge-mx-puppet-slack Fix Traefik load balancer port for matrix-mx-puppet-slack 2024-01-19 12:13:22 +02:00
matrix-bridge-mx-puppet-steam Make homeserver services sleep after startup, instead of all dependencies sleeping separately 2024-01-12 12:45:18 +02:00
matrix-bridge-mx-puppet-twitter Ensure each container labels file defines at least one service 2024-01-17 17:56:45 +02:00
matrix-bridge-sms Make homeserver services sleep after startup, instead of all dependencies sleeping separately 2024-01-12 12:45:18 +02:00
matrix-cactus-comments Add matrix-cactus-comments-client role 2024-01-09 09:53:01 +02:00
matrix-cactus-comments-client Update joseluisq/static-web-server Docker tag to v2.27.0 2024-02-13 03:02:42 +00:00
matrix-client-cinny Ensure each container labels file defines at least one service 2024-01-17 17:56:45 +02:00
matrix-client-element Upgrade Element (v1.11.57 -> v1.11.58) 2024-02-13 19:06:14 +02:00
matrix-client-hydrogen Ensure each container labels file defines at least one service 2024-01-17 17:56:45 +02:00
matrix-client-schildichat Ensure each container labels file defines at least one service 2024-01-17 17:56:45 +02:00
matrix-common-after/tasks Fix all 300+ ansible-lint-reported errors 2023-03-07 17:28:15 +02:00
matrix-conduit Make post-start delay for matrix-conduit configurable 2024-01-17 12:26:28 +02:00
matrix-corporal Ensure each container labels file defines at least one service 2024-01-17 17:56:45 +02:00
matrix-coturn Add additional-networks support to matrix-coturn 2024-01-15 11:18:09 +02:00
matrix-dendrite Update matrixdotorg/dendrite-monolith Docker tag to v0.13.6 2024-01-26 14:05:29 +00:00
matrix-dimension Ensure each container labels file defines at least one service 2024-01-17 17:56:45 +02:00
matrix-dynamic-dns Add additional-networks support to matrix-dynamic-dns 2024-01-15 11:18:25 +02:00
matrix-email2matrix Fix yamllint-reported errors in matrix-email2matrix 2024-01-13 19:47:04 +02:00
matrix-ldap-registration-proxy Make Traefik labels files look better 2024-01-15 10:41:15 +02:00
matrix-ma1sd Make Traefik labels files look better 2024-01-15 10:41:15 +02:00
matrix-media-repo Update turt2live/matrix-media-repo Docker tag to v1.3.4 2024-02-10 01:50:50 +00:00
matrix-prometheus-nginxlog-exporter Fix some variable typos in matrix-prometheus-nginxlog-exporter 2024-01-14 21:32:02 +02:00
matrix-prometheus-services-connect Properly switch to element-hq-synapse and introduce variables for customizing that 2024-01-17 08:40:23 +02:00
matrix-rageshake Ensure each container labels file defines at least one service 2024-01-17 17:56:45 +02:00
matrix-registration Make Traefik labels files look better 2024-01-15 10:41:15 +02:00
matrix-sliding-sync Upgrade sliding-sync (v0.99.14 -> v0.99.15) 2024-01-22 14:36:05 +02:00
matrix-static-files Update joseluisq/static-web-server Docker tag to v2.27.0 2024-02-13 03:02:42 +00:00
matrix-sygnal Ensure each container labels file defines at least one service 2024-01-17 17:56:45 +02:00
matrix-synapse Fix Synapse cache auto-tuning variables to use bytes, not KB 2024-02-14 13:39:40 +02:00
matrix-synapse-admin Upgrade synapse-admin (0.9.0 -> 0.9.1) 2024-02-08 16:39:29 +02:00
matrix-synapse-auto-compressor Connect matrix-synapse-auto-compressor directly to Postgres network, if integrated Postgres is used 2024-01-13 20:01:06 +02:00
matrix-synapse-reverse-proxy-companion Split some homeserver _additional_networks variables into _auto and _custom 2024-01-26 12:55:01 +02:00
matrix-user-creator add ensure-users-created tag alongside with ensure-matrix-users-created 2023-10-02 18:33:21 +03:00
matrix-user-verification-service Move matrix-user-verification service to its own container network 2024-01-13 17:31:03 +02:00