Matrix Docker Ansible eploy
Não pode escolher mais do que 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 
 

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