Matrix Docker Ansible eploy
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。
 
 

337 行
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-postgres.md:1
  24. msgid "PostgreSQL maintenance"
  25. msgstr ""
  26. #: ../../../docs/maintenance-postgres.md:3
  27. msgid ""
  28. "This document shows you how to perform various maintenance tasks related "
  29. "to the Postgres database server used by Matrix."
  30. msgstr ""
  31. #: ../../../docs/maintenance-postgres.md:5
  32. msgid "Table of contents:"
  33. msgstr ""
  34. #: ../../../docs/maintenance-postgres.md:7
  35. msgid ""
  36. "[Getting a database terminal](#getting-a-database-terminal), for when you"
  37. " wish to execute SQL queries"
  38. msgstr ""
  39. #: ../../../docs/maintenance-postgres.md:9
  40. msgid ""
  41. "[Vacuuming PostgreSQL](#vacuuming-postgresql), for when you wish to run a"
  42. " Postgres [VACUUM](https://www.postgresql.org/docs/current/sql-"
  43. "vacuum.html) (optimizing disk space)"
  44. msgstr ""
  45. #: ../../../docs/maintenance-postgres.md:11
  46. msgid ""
  47. "[Backing up PostgreSQL](#backing-up-postgresql), for when you wish to "
  48. "make a backup"
  49. msgstr ""
  50. #: ../../../docs/maintenance-postgres.md:13
  51. msgid ""
  52. "[Upgrading PostgreSQL](#upgrading-postgresql), for upgrading to new major"
  53. " versions of PostgreSQL. Such **manual upgrades are sometimes required**."
  54. msgstr ""
  55. #: ../../../docs/maintenance-postgres.md:15
  56. msgid "[Tuning PostgreSQL](#tuning-postgresql) to make it run faster"
  57. msgstr ""
  58. #: ../../../docs/maintenance-postgres.md:17
  59. msgid "Getting a database terminal"
  60. msgstr ""
  61. #: ../../../docs/maintenance-postgres.md:19
  62. msgid ""
  63. "You can use the `/matrix/postgres/bin/cli` tool to get interactive "
  64. "terminal access ([psql](https://www.postgresql.org/docs/11/app-"
  65. "psql.html)) to the PostgreSQL server."
  66. msgstr ""
  67. #: ../../../docs/maintenance-postgres.md:21
  68. msgid ""
  69. "If you are using an [external Postgres server](configuring-playbook-"
  70. "external-postgres.md), the above tool will not be available."
  71. msgstr ""
  72. #: ../../../docs/maintenance-postgres.md:23
  73. msgid ""
  74. "By default, this tool puts you in the `matrix` database, which contains "
  75. "nothing."
  76. msgstr ""
  77. #: ../../../docs/maintenance-postgres.md:25
  78. msgid "To see the available databases, run `\\list` (or just `\\l`)."
  79. msgstr ""
  80. #: ../../../docs/maintenance-postgres.md:27
  81. msgid ""
  82. "To change to another database (for example `synapse`), run `\\connect "
  83. "synapse` (or just `\\c synapse`)."
  84. msgstr ""
  85. #: ../../../docs/maintenance-postgres.md:29
  86. msgid ""
  87. "You can then proceed to write queries. Example: `SELECT COUNT(*) FROM "
  88. "users;`"
  89. msgstr ""
  90. #: ../../../docs/maintenance-postgres.md:31
  91. msgid ""
  92. "**Be careful**. Modifying the database directly (especially as services "
  93. "are running) is dangerous and may lead to irreversible database "
  94. "corruption. When in doubt, consider [making a backup](#backing-up-"
  95. "postgresql)."
  96. msgstr ""
  97. #: ../../../docs/maintenance-postgres.md:33
  98. msgid "Vacuuming PostgreSQL"
  99. msgstr ""
  100. #: ../../../docs/maintenance-postgres.md:35
  101. msgid ""
  102. "Deleting lots data from Postgres does not make it release disk space, "
  103. "until you perform a [`VACUUM` "
  104. "operation](https://www.postgresql.org/docs/current/sql-vacuum.html)."
  105. msgstr ""
  106. #: ../../../docs/maintenance-postgres.md:37
  107. msgid ""
  108. "You can run different `VACUUM` operations via the playbook, with the "
  109. "default preset being `vacuum-complete`:"
  110. msgstr ""
  111. #: ../../../docs/maintenance-postgres.md:39
  112. msgid ""
  113. "(default) `vacuum-complete`: stops all services temporarily and runs "
  114. "`VACUUM FULL VERBOSE ANALYZE`."
  115. msgstr ""
  116. #: ../../../docs/maintenance-postgres.md:40
  117. msgid ""
  118. "`vacuum-full`: stops all services temporarily and runs `VACUUM FULL "
  119. "VERBOSE`"
  120. msgstr ""
  121. #: ../../../docs/maintenance-postgres.md:41
  122. msgid "`vacuum`: runs `VACUUM VERBOSE` without stopping any services"
  123. msgstr ""
  124. #: ../../../docs/maintenance-postgres.md:42
  125. msgid ""
  126. "`vacuum-analyze` runs `VACUUM VERBOSE ANALYZE` without stopping any "
  127. "services"
  128. msgstr ""
  129. #: ../../../docs/maintenance-postgres.md:43
  130. msgid ""
  131. "`analyze` runs `ANALYZE VERBOSE` without stopping any services (this is "
  132. "just [ANALYZE](https://www.postgresql.org/docs/current/sql-analyze.html) "
  133. "without doing a vacuum, so it's faster)"
  134. msgstr ""
  135. #: ../../../docs/maintenance-postgres.md:45
  136. msgid ""
  137. "**Note**: for the `vacuum-complete` and `vacuum-full` presets, you'll "
  138. "need plenty of available disk space in your Postgres data directory "
  139. "(usually `/matrix/postgres/data`). These presets also stop all services "
  140. "(e.g. Synapse, etc.) while the vacuum operation is running."
  141. msgstr ""
  142. #: ../../../docs/maintenance-postgres.md:47
  143. msgid "Example playbook invocations:"
  144. msgstr ""
  145. #: ../../../docs/maintenance-postgres.md:49
  146. msgid ""
  147. "`just run-tags run-postgres-vacuum`: runs the default `vacuum-complete` "
  148. "preset and restarts all services"
  149. msgstr ""
  150. #: ../../../docs/maintenance-postgres.md:50
  151. msgid ""
  152. "`just run-tags run-postgres-vacuum -e postgres_vacuum_preset=analyze`: "
  153. "runs the `analyze` preset with all services remaining operational at all "
  154. "times"
  155. msgstr ""
  156. #: ../../../docs/maintenance-postgres.md:52
  157. msgid "Backing up PostgreSQL"
  158. msgstr ""
  159. #: ../../../docs/maintenance-postgres.md:54
  160. msgid ""
  161. "To automatically make Postgres database backups on a fixed schedule, see "
  162. "[Setting up postgres backup](configuring-playbook-postgres-backup.md)."
  163. msgstr ""
  164. #: ../../../docs/maintenance-postgres.md:56
  165. msgid ""
  166. "To make a one off back up of the current PostgreSQL database, make sure "
  167. "it's running and then execute a command like this on the server:"
  168. msgstr ""
  169. #: ../../../docs/maintenance-postgres.md:67
  170. msgid ""
  171. "If you are using an [external Postgres server](configuring-playbook-"
  172. "external-postgres.md), the above command will not work, because neither "
  173. "the credentials file (`/matrix/postgres/env-postgres-psql`), nor the "
  174. "`matrix-postgres` container is available."
  175. msgstr ""
  176. #: ../../../docs/maintenance-postgres.md:69
  177. msgid ""
  178. "Restoring a backup made this way can be done by [importing it](importing-"
  179. "postgres.md)."
  180. msgstr ""
  181. #: ../../../docs/maintenance-postgres.md:71
  182. msgid "Upgrading PostgreSQL"
  183. msgstr ""
  184. #: ../../../docs/maintenance-postgres.md:73
  185. msgid ""
  186. "Unless you are using an [external Postgres server](configuring-playbook-"
  187. "external-postgres.md), this playbook initially installs Postgres for you."
  188. msgstr ""
  189. #: ../../../docs/maintenance-postgres.md:75
  190. msgid ""
  191. "Once installed, the playbook attempts to preserve the Postgres version it"
  192. " starts with. This is because newer Postgres versions cannot start with "
  193. "data generated by older Postgres versions."
  194. msgstr ""
  195. #: ../../../docs/maintenance-postgres.md:77
  196. msgid "Upgrades must be performed manually."
  197. msgstr ""
  198. #: ../../../docs/maintenance-postgres.md:79
  199. msgid ""
  200. "This playbook can upgrade your existing Postgres setup with the following"
  201. " command:"
  202. msgstr ""
  203. #: ../../../docs/maintenance-postgres.md:85
  204. msgid ""
  205. "**The old Postgres data directory is backed up** automatically, by "
  206. "renaming it to `/matrix/postgres/data-auto-upgrade-backup`. To rename to "
  207. "a different path, pass some extra flags to the command above, like this: "
  208. "`--extra-vars=\"postgres_auto_upgrade_backup_data_path=/another/disk"
  209. "/matrix-postgres-before-upgrade\"`"
  210. msgstr ""
  211. #: ../../../docs/maintenance-postgres.md:87
  212. msgid ""
  213. "The auto-upgrade-backup directory stays around forever, until you "
  214. "**manually decide to delete it**."
  215. msgstr ""
  216. #: ../../../docs/maintenance-postgres.md:89
  217. msgid ""
  218. "As part of the upgrade, the database is dumped to `/tmp`, an upgraded and"
  219. " empty Postgres server is started, and then the dump is restored into the"
  220. " new server. To use a different directory for the dump, pass some extra "
  221. "flags to the command above, like this: `--extra-"
  222. "vars=\"postgres_dump_dir=/directory/to/dump/here\"`"
  223. msgstr ""
  224. #: ../../../docs/maintenance-postgres.md:91
  225. msgid ""
  226. "To save disk space in `/tmp`, the dump file is gzipped on the fly at the "
  227. "expense of CPU usage. If you have plenty of space in `/tmp` and would "
  228. "rather avoid gzipping, you can explicitly pass a dump filename which "
  229. "doesn't end in `.gz`. Example: `--extra-vars=\"postgres_dump_name=matrix-"
  230. "postgres-dump.sql\"`"
  231. msgstr ""
  232. #: ../../../docs/maintenance-postgres.md:93
  233. msgid "**All databases, roles, etc. on the Postgres server are migrated**."
  234. msgstr ""
  235. #: ../../../docs/maintenance-postgres.md:95
  236. msgid "Tuning PostgreSQL"
  237. msgstr ""
  238. #: ../../../docs/maintenance-postgres.md:97
  239. msgid ""
  240. "PostgreSQL can be "
  241. "[tuned](https://wiki.postgresql.org/wiki/Tuning_Your_PostgreSQL_Server) "
  242. "to make it run faster. This is done by passing extra arguments to the "
  243. "Postgres process."
  244. msgstr ""
  245. #: ../../../docs/maintenance-postgres.md:99
  246. msgid ""
  247. "The [Postgres Ansible role](https://github.com/mother-of-all-self-hosting"
  248. "/ansible-role-postgres) **already does some tuning by default**, which "
  249. "matches the [tuning "
  250. "logic](https://github.com/le0pard/pgtune/blob/master/src/features/configuration/configurationSlice.js)"
  251. " done by websites like https://pgtune.leopard.in.ua/. You can manually "
  252. "influence some of the tuning variables. These parameters (variables) are "
  253. "injected via the `postgres_postgres_process_extra_arguments_auto` "
  254. "variable."
  255. msgstr ""
  256. #: ../../../docs/maintenance-postgres.md:101
  257. msgid ""
  258. "Most users should be fine with the automatically-done tuning. However, "
  259. "you may wish to:"
  260. msgstr ""
  261. #: ../../../docs/maintenance-postgres.md:103
  262. msgid ""
  263. "**adjust the automatically-determined tuning parameters manually**: "
  264. "change the values for the tuning variables defined in the Postgres role's"
  265. " [default configuration file](https://github.com/mother-of-all-self-"
  266. "hosting/ansible-role-postgres/blob/main/defaults/main.yml) (see "
  267. "`postgres_max_connections`, `postgres_data_storage` etc). These variables"
  268. " are ultimately passed to Postgres via a "
  269. "`postgres_postgres_process_extra_arguments_auto` variable"
  270. msgstr ""
  271. #: ../../../docs/maintenance-postgres.md:105
  272. msgid ""
  273. "**turn automatically-performed tuning off**: override it like this: "
  274. "`postgres_postgres_process_extra_arguments_auto: []`"
  275. msgstr ""
  276. #: ../../../docs/maintenance-postgres.md:107
  277. msgid ""
  278. "**add additional tuning parameters**: define your additional Postgres "
  279. "configuration parameters in "
  280. "`postgres_postgres_process_extra_arguments_custom`. See "
  281. "`postgres_postgres_process_extra_arguments_auto` defined in the Postgres "
  282. "role's [default configuration file](https://github.com/mother-of-all-"
  283. "self-hosting/ansible-role-postgres/blob/main/defaults/main.yml) for "
  284. "inspiration"
  285. msgstr ""