Matrix Docker Ansible eploy
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

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