Matrix Docker Ansible eploy
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

311 regels
11 KiB

  1. # SOME DESCRIPTIVE TITLE.
  2. # Copyright (C) 2018-2024, Slavi Pantaleev, Aine Etke, MDAD community
  3. # members
  4. # This file is distributed under the same license as the
  5. # matrix-docker-ansible-deploy package.
  6. # FIRST AUTHOR <EMAIL@ADDRESS>, 2024.
  7. #
  8. #, fuzzy
  9. msgid ""
  10. msgstr ""
  11. "Project-Id-Version: matrix-docker-ansible-deploy \n"
  12. "Report-Msgid-Bugs-To: \n"
  13. "POT-Creation-Date: 2024-12-16 12:05+0900\n"
  14. "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
  15. "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
  16. "Language: bg\n"
  17. "Language-Team: bg <LL@li.org>\n"
  18. "Plural-Forms: nplurals=2; plural=(n != 1);\n"
  19. "MIME-Version: 1.0\n"
  20. "Content-Type: text/plain; charset=utf-8\n"
  21. "Content-Transfer-Encoding: 8bit\n"
  22. "Generated-By: Babel 2.16.0\n"
  23. #: ../../../docs/maintenance-synapse.md:1
  24. msgid "Synapse maintenance"
  25. msgstr ""
  26. #: ../../../docs/maintenance-synapse.md:3
  27. msgid ""
  28. "This document shows you how to perform various maintenance tasks related "
  29. "to the Synapse chat server."
  30. msgstr ""
  31. #: ../../../docs/maintenance-synapse.md:5
  32. msgid "Table of contents:"
  33. msgstr ""
  34. #: ../../../docs/maintenance-synapse.md:7
  35. msgid ""
  36. "[Purging old data with the Purge History API](#purging-old-data-with-the-"
  37. "purge-history-api), for when you wish to delete in-use (but old) data "
  38. "from the Synapse database"
  39. msgstr ""
  40. #: ../../../docs/maintenance-synapse.md:9
  41. msgid ""
  42. "[Compressing state with rust-synapse-compress-state](#compressing-state-"
  43. "with-rust-synapse-compress-state)"
  44. msgstr ""
  45. #: ../../../docs/maintenance-synapse.md:11
  46. msgid ""
  47. "[Browse and manipulate the database](#browse-and-manipulate-the-"
  48. "database), for when you really need to take matters into your own hands"
  49. msgstr ""
  50. #: ../../../docs/maintenance-synapse.md:13
  51. msgid "[Make Synapse faster](#make-synapse-faster)"
  52. msgstr ""
  53. #: ../../../docs/maintenance-synapse.md:15
  54. msgid "Purging old data with the Purge History API"
  55. msgstr ""
  56. #: ../../../docs/maintenance-synapse.md:17
  57. msgid ""
  58. "You can use the **[Purge History API](https://github.com/element-"
  59. "hq/synapse/blob/master/docs/admin_api/purge_history_api.md)** to delete "
  60. "old messages on a per-room basis. **This is destructive** (especially for"
  61. " non-federated rooms), because it means **people will no longer have "
  62. "access to history past a certain point**."
  63. msgstr ""
  64. #: ../../../docs/maintenance-synapse.md:19
  65. msgid ""
  66. "To make use of this Synapse Admin API, **you'll need an admin access "
  67. "token** first. Refer to the documentation on [how to obtain an access "
  68. "token](obtaining-access-tokens.md)."
  69. msgstr ""
  70. #: ../../../docs/maintenance-synapse.md:21
  71. msgid ""
  72. "Synapse's Admin API is not exposed to the internet by default, following "
  73. "[official Synapse reverse-proxying recommendations](https://github.com"
  74. "/element-hq/synapse/blob/master/docs/reverse_proxy.md#synapse-"
  75. "administration-endpoints). To expose it you will need to add "
  76. "`matrix_synapse_container_labels_public_client_synapse_admin_api_enabled:"
  77. " true` to your `vars.yml` file."
  78. msgstr ""
  79. #: ../../../docs/maintenance-synapse.md:23
  80. msgid ""
  81. "Follow the [Purge History API](https://github.com/element-"
  82. "hq/synapse/blob/master/docs/admin_api/purge_history_api.md) documentation"
  83. " page for the actual purging instructions."
  84. msgstr ""
  85. #: ../../../docs/maintenance-synapse.md:25
  86. msgid ""
  87. "After deleting data, you may wish to run a [`FULL` Postgres `VACUUM"
  88. "`](./maintenance-postgres.md#vacuuming-postgresql)."
  89. msgstr ""
  90. #: ../../../docs/maintenance-synapse.md:27
  91. msgid "Compressing state with rust-synapse-compress-state"
  92. msgstr ""
  93. #: ../../../docs/maintenance-synapse.md:29
  94. msgid ""
  95. "[rust-synapse-compress-state](https://github.com/matrix-org/rust-synapse-"
  96. "compress-state) can be used to optimize some `_state` tables used by "
  97. "Synapse. If your server participates in large rooms this is the most "
  98. "effective way to reduce the size of your database."
  99. msgstr ""
  100. #: ../../../docs/maintenance-synapse.md:31
  101. msgid ""
  102. "**Note**: besides running the `rust-synapse-compress-state` tool "
  103. "manually, you can also enable its `synapse-auto-compressor` tool by "
  104. "[Setting up synapse-auto-compressor](configuring-playbook-synapse-auto-"
  105. "compressor.md). The automatic tool will run on a schedule every day and "
  106. "you won't have to compress state manually ever again."
  107. msgstr ""
  108. #: ../../../docs/maintenance-synapse.md:33
  109. msgid ""
  110. "`rust-synapse-compress-state` should be safe to use (even when Synapse is"
  111. " running), but it's always a good idea to [make Postgres backups"
  112. "](./maintenance-postgres.md#backing-up-postgresql) first."
  113. msgstr ""
  114. #: ../../../docs/maintenance-synapse.md:35
  115. msgid "To ask the playbook to run rust-synapse-compress-state, execute:"
  116. msgstr ""
  117. #: ../../../docs/maintenance-synapse.md:41
  118. msgid ""
  119. "The shortcut command with `just` program is also available: `just run-"
  120. "tags rust-synapse-compress-state`"
  121. msgstr ""
  122. #: ../../../docs/maintenance-synapse.md:43
  123. msgid ""
  124. "By default, all rooms with more than `100000` state group rows will be "
  125. "compressed. If you need to adjust this, pass: `--extra-"
  126. "vars='matrix_synapse_rust_synapse_compress_state_min_state_groups_required=SOME_NUMBER_HERE'`"
  127. " to the command above."
  128. msgstr ""
  129. #: ../../../docs/maintenance-synapse.md:45
  130. msgid ""
  131. "After state compression, you may wish to run a [`FULL` Postgres `VACUUM"
  132. "`](./maintenance-postgres.md#vacuuming-postgresql)."
  133. msgstr ""
  134. #: ../../../docs/maintenance-synapse.md:47
  135. msgid "Browse and manipulate the database"
  136. msgstr ""
  137. #: ../../../docs/maintenance-synapse.md:49
  138. msgid ""
  139. "When the [Synapse Admin API](https://github.com/element-"
  140. "hq/synapse/tree/master/docs/admin_api) and the other tools do not provide"
  141. " a more convenient way, having a look at synapse's postgresql database "
  142. "can satisfy a lot of admins' needs."
  143. msgstr ""
  144. #: ../../../docs/maintenance-synapse.md:51
  145. msgid ""
  146. "Editing the database manually is not recommended or supported by the "
  147. "Synapse developers. If you are going to do so you should [make a database"
  148. " backup](./maintenance-postgres.md#backing-up-postgresql)."
  149. msgstr ""
  150. #: ../../../docs/maintenance-synapse.md:53
  151. msgid ""
  152. "First, set up an SSH tunnel to your Matrix server (skip if it is your "
  153. "local machine):"
  154. msgstr ""
  155. #: ../../../docs/maintenance-synapse.md:60
  156. msgid ""
  157. "Then start up an ephemeral [adminer](https://www.adminer.org/) container "
  158. "on the Matrix server, connecting it to the `matrix` network and linking "
  159. "the postgresql container:"
  160. msgstr ""
  161. #: ../../../docs/maintenance-synapse.md:66
  162. msgid ""
  163. "You should then be able to browse the adminer database administration GUI"
  164. " at http://localhost:1799/ after entering your DB credentials (found in "
  165. "the `host_vars` or on the server in "
  166. "`{{matrix_synapse_config_dir_path}}/homeserver.yaml` under "
  167. "`database.args`)"
  168. msgstr ""
  169. #: ../../../docs/maintenance-synapse.md:68
  170. msgid ""
  171. "⚠️️ Be **very careful** with this, there is **no undo** for impromptu DB "
  172. "operations."
  173. msgstr ""
  174. #: ../../../docs/maintenance-synapse.md:70
  175. msgid "Make Synapse faster"
  176. msgstr ""
  177. #: ../../../docs/maintenance-synapse.md:72
  178. msgid ""
  179. "Synapse's presence feature which tracks which users are online and which "
  180. "are offline can use a lot of processing power. You can disable presence "
  181. "by adding `matrix_synapse_presence_enabled: false` to your `vars.yml` "
  182. "file."
  183. msgstr ""
  184. #: ../../../docs/maintenance-synapse.md:74
  185. msgid ""
  186. "If you have enough compute resources (CPU & RAM), you can make Synapse "
  187. "better use of them by [enabling load-balancing with workers](configuring-"
  188. "playbook-synapse.md#load-balancing-with-workers)."
  189. msgstr ""
  190. #: ../../../docs/maintenance-synapse.md:76
  191. msgid ""
  192. "[Tuning your PostgreSQL database](maintenance-postgres.md#tuning-"
  193. "postgresql) could also improve Synapse performance. The playbook tunes "
  194. "the integrated Postgres database automatically, but based on your needs "
  195. "you may wish to adjust tuning variables manually. If you're using an "
  196. "[external Postgres database](configuring-playbook-external-postgres.md), "
  197. "you will also need to tune Postgres manually."
  198. msgstr ""
  199. #: ../../../docs/maintenance-synapse.md:78
  200. msgid "Tuning caches and cache autotuning"
  201. msgstr ""
  202. #: ../../../docs/maintenance-synapse.md:80
  203. msgid ""
  204. "Tuning Synapse's cache factor is useful for performance increases but "
  205. "also as part of controlling Synapse's memory use. Use the variable "
  206. "`matrix_synapse_caches_global_factor` to set the cache factor as part of "
  207. "this process."
  208. msgstr ""
  209. #: ../../../docs/maintenance-synapse.md:82
  210. msgid ""
  211. "**The playbook defaults the global cache factor to a large value** (e.g. "
  212. "`10`). A smaller value (e.g. `0.5`) will decrease the amount used for "
  213. "caches, but will [not necessarily decrease RAM usage as a "
  214. "whole](https://github.com/matrix-org/synapse/issues/3939)."
  215. msgstr ""
  216. #: ../../../docs/maintenance-synapse.md:84
  217. msgid ""
  218. "Tuning the cache factor is useful only to a limited degree (as its crude "
  219. "to do in isolation) and therefore users who are tuning their cache factor"
  220. " should likely look into tuning autotune variables as well (see below)."
  221. msgstr ""
  222. #: ../../../docs/maintenance-synapse.md:86
  223. msgid ""
  224. "Cache autotuning is **enabled by default** and controlled via the "
  225. "following variables:"
  226. msgstr ""
  227. #: ../../../docs/maintenance-synapse.md:88
  228. msgid ""
  229. "`matrix_synapse_cache_autotuning_max_cache_memory_usage` - defaults to "
  230. "1/8 of total RAM with a cap of 2GB; values are specified in bytes"
  231. msgstr ""
  232. #: ../../../docs/maintenance-synapse.md:89
  233. msgid ""
  234. "`matrix_synapse_cache_autotuning_target_cache_memory_usage` - defaults to"
  235. " 1/16 of total RAM with a cap of 1GB; values are specified in bytes"
  236. msgstr ""
  237. #: ../../../docs/maintenance-synapse.md:90
  238. msgid "`matrix_synapse_cache_autotuning_min_cache_ttl` - defaults to `30s`"
  239. msgstr ""
  240. #: ../../../docs/maintenance-synapse.md:92
  241. msgid ""
  242. "You can **learn more about cache-autotuning and the global cache factor "
  243. "settings** in the [Synapse's documentation on caches and associated "
  244. "values](https://matrix-"
  245. "org.github.io/synapse/latest/usage/configuration/config_documentation.html"
  246. "#caches-and-associated-values)."
  247. msgstr ""
  248. #: ../../../docs/maintenance-synapse.md:94
  249. msgid "To **disable cache auto-tuning**, unset all values:"
  250. msgstr ""
  251. #: ../../../docs/maintenance-synapse.md:102
  252. msgid ""
  253. "Users who wish to lower Synapse's RAM footprint should look into lowering"
  254. " the global cache factor and tweaking the autotune variables (or "
  255. "disabling auto-tuning). If your cache factor is too low for a given auto "
  256. "tune setting your caches will not reach autotune thresholds and autotune "
  257. "won't be able to do its job. Therefore, when auto-tuning is enabled "
  258. "(which it is by default), it's recommended to have your cache factor be "
  259. "large."
  260. msgstr ""
  261. #: ../../../docs/maintenance-synapse.md:104
  262. msgid ""
  263. "See also [How do I optimize this setup for a low-power server?](faq.md"
  264. "#how-do-i-optimize-this-setup-for-a-low-power-server)."
  265. msgstr ""