Matrix Docker Ansible eploy
No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.
 
 

90 líneas
5.9 KiB

  1. # SPDX-FileCopyrightText: 2023 - 2024 Nikita Chernyi
  2. # SPDX-FileCopyrightText: 2023 - 2025 Slavi Pantaleev
  3. # SPDX-FileCopyrightText: 2023 Samuel Meenzen
  4. # SPDX-FileCopyrightText: 2025 Suguru Hirahara
  5. #
  6. # SPDX-License-Identifier: AGPL-3.0-or-later
  7. ---
  8. # synapse_auto_compressor tool
  9. # Project source code URL: https://github.com/matrix-org/rust-synapse-compress-state
  10. matrix_synapse_auto_compressor_enabled: true
  11. # renovate: datasource=docker depName=registry.gitlab.com/etke.cc/rust-synapse-compress-state
  12. matrix_synapse_auto_compressor_version: v0.1.4
  13. # note: UID/GID better to match the UID/GID of the Postgres container, but it doesn't really matter, as volumes are not used here
  14. matrix_synapse_auto_compressor_uid: ''
  15. matrix_synapse_auto_compressor_gid: ''
  16. # note: the Postgres image version doesn't matter, as it is used for a SQL script that doesn't use any specific features
  17. matrix_synapse_auto_compressor_postgres_image: "postgres"
  18. matrix_synapse_auto_compressor_base_path: "{{ matrix_base_data_path }}/synapse-auto-compressor"
  19. matrix_synapse_auto_compressor_container_src_files_path: "{{ matrix_synapse_auto_compressor_base_path }}/container-src"
  20. matrix_synapse_auto_compressor_container_image_self_build: false
  21. matrix_synapse_auto_compressor_container_image_self_build_repo: "https://github.com/matrix-org/rust-synapse-compress-state.git"
  22. matrix_synapse_auto_compressor_container_image_self_build_version: "{{ 'main' if matrix_synapse_auto_compressor_version == 'latest' else matrix_synapse_auto_compressor_version }}"
  23. matrix_synapse_auto_compressor_container_image: "{{ matrix_synapse_auto_compressor_container_image_registry_prefix }}etke.cc/rust-synapse-compress-state:{{ matrix_synapse_auto_compressor_version }}"
  24. matrix_synapse_auto_compressor_container_image_registry_prefix: "{{ 'localhost/' if matrix_synapse_auto_compressor_container_image_self_build else matrix_synapse_auto_compressor_container_image_registry_prefix_upstream }}"
  25. matrix_synapse_auto_compressor_container_image_registry_prefix_upstream: "{{ matrix_synapse_auto_compressor_container_image_registry_prefix_upstream_default }}"
  26. matrix_synapse_auto_compressor_container_image_registry_prefix_upstream_default: "registry.gitlab.com/"
  27. matrix_synapse_auto_compressor_container_image_force_pull: "{{ matrix_synapse_auto_compressor_container_image.endswith(':latest') }}"
  28. # The base container network. It will be auto-created by this role if it doesn't exist already.
  29. matrix_synapse_auto_compressor_container_network: matrix-synapse-auto-compressor
  30. # A list of additional container networks that the container would be connected to.
  31. # The role does not create these networks, so make sure they already exist.
  32. # Use this to expose this container to another reverse proxy, which runs in a different container network.
  33. matrix_synapse_auto_compressor_container_additional_networks: []
  34. # A list of extra arguments to pass to the container
  35. matrix_synapse_auto_compressor_container_extra_arguments: []
  36. # List of systemd services that matrix-synapse-auto-compressor.service depends on
  37. matrix_synapse_auto_compressor_systemd_required_services_list: "{{ matrix_synapse_auto_compressor_systemd_required_services_list_default + matrix_synapse_auto_compressor_systemd_required_services_list_auto + matrix_synapse_auto_compressor_systemd_required_services_list_custom }}"
  38. matrix_synapse_auto_compressor_systemd_required_services_list_default: "{{ [devture_systemd_docker_base_docker_service_name] if devture_systemd_docker_base_docker_service_name else [] }}"
  39. matrix_synapse_auto_compressor_systemd_required_services_list_auto: []
  40. matrix_synapse_auto_compressor_systemd_required_services_list_custom: []
  41. # List of systemd services that matrix-synapse-auto-compressor.service wants
  42. matrix_synapse_auto_compressor_systemd_wanted_services_list: []
  43. matrix_synapse_auto_compressor_database_username: 'synapse'
  44. matrix_synapse_auto_compressor_database_password: ''
  45. matrix_synapse_auto_compressor_database_hostname: ''
  46. matrix_synapse_auto_compressor_database_port: 5432
  47. matrix_synapse_auto_compressor_database_name: 'synapse'
  48. # connection string to synapse database (postgres only)
  49. matrix_synapse_auto_compressor_synapse_database: 'postgres://{{ matrix_synapse_auto_compressor_database_username | urlencode() }}:{{ matrix_synapse_auto_compressor_database_password | urlencode() }}@{{ matrix_synapse_auto_compressor_database_hostname }}:{{ matrix_synapse_auto_compressor_database_port }}/{{ matrix_synapse_auto_compressor_database_name }}'
  50. # Controls the `OnCalendar` configuration for the compressor job.
  51. # Also see: `matrix_synapse_auto_compressor_schedule_randomized_delay_sec`
  52. matrix_synapse_auto_compressor_schedule: "*-*-* 00:00:00"
  53. # The `RandomizedDelaySec` delay (in seconds or as a systemd time string) to randomize the `OnCalendar` start time (`matrix_synapse_auto_compressor_schedule`) of the compressor job.
  54. # This can be set to 0 to disable randomized delays.
  55. matrix_synapse_auto_compressor_schedule_randomized_delay_sec: 6h
  56. # The number of state groups to work on at once.
  57. # All of the entries from state_groups_state are requested from the database for state groups that are worked on.
  58. # Therefore small chunk sizes may be needed on machines with low memory.
  59. # Note: if the compressor fails to find space savings on the chunk as a whole
  60. # (which may well happen in rooms with lots of backfill in) then the entire chunk is skipped.
  61. matrix_synapse_auto_compressor_chunk_size: 500
  62. # CHUNKS_TO_COMPRESS chunks of size CHUNK_SIZE will be compressed.
  63. # The higher this number is set to, the longer the compressor will run for.
  64. matrix_synapse_auto_compressor_chunks_to_compress: 100
  65. matrix_synapse_auto_compressor_command: "synapse_auto_compressor -p $POSTGRES_LOCATION -c {{ matrix_synapse_auto_compressor_chunk_size }} -n {{ matrix_synapse_auto_compressor_chunks_to_compress }}"
  66. # Controls the POSTGRES_LOCATION environment variable
  67. matrix_synapse_auto_compressor_environment_variable_postgres_location: "{{ matrix_synapse_auto_compressor_synapse_database }}"