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.
 
 

80 regels
5.1 KiB

  1. # SPDX-FileCopyrightText: 2024 MDAD Team and contributors
  2. #
  3. # SPDX-License-Identifier: AGPL-3.0-or-later
  4. ---
  5. # synapse_auto_compressor tool
  6. # Project source code URL: https://github.com/matrix-org/rust-synapse-compress-state
  7. matrix_synapse_auto_compressor_enabled: true
  8. # renovate: datasource=docker depName=registry.gitlab.com/etke.cc/rust-synapse-compress-state
  9. matrix_synapse_auto_compressor_version: v0.1.4
  10. # 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
  11. matrix_synapse_auto_compressor_uid: ''
  12. matrix_synapse_auto_compressor_gid: ''
  13. # note: the postgres image version doesn't matter, as it is used for a SQL script that doesn't use any specific features
  14. matrix_synapse_auto_compressor_postgres_image: "postgres"
  15. matrix_synapse_auto_compressor_base_path: "{{ matrix_base_data_path }}/synapse-auto-compressor"
  16. matrix_synapse_auto_compressor_container_src_files_path: "{{ matrix_synapse_auto_compressor_base_path }}/container-src"
  17. matrix_synapse_auto_compressor_container_image_self_build: false
  18. matrix_synapse_auto_compressor_container_image_self_build_repo: "https://github.com/matrix-org/rust-synapse-compress-state.git"
  19. matrix_synapse_auto_compressor_container_image_self_build_version: "{{ 'main' if matrix_synapse_auto_compressor_version == 'latest' else matrix_synapse_auto_compressor_version }}"
  20. matrix_synapse_auto_compressor_container_image: "{{ matrix_synapse_auto_compressor_container_image_name_prefix }}etke.cc/rust-synapse-compress-state:{{ matrix_synapse_auto_compressor_version }}"
  21. matrix_synapse_auto_compressor_container_image_name_prefix: "{{ 'localhost/' if matrix_synapse_auto_compressor_container_image_self_build else 'registry.gitlab.com/' }}"
  22. matrix_synapse_auto_compressor_container_image_force_pull: "{{ matrix_synapse_auto_compressor_container_image.endswith(':latest') }}"
  23. # The base container network. It will be auto-created by this role if it doesn't exist already.
  24. matrix_synapse_auto_compressor_container_network: matrix-synapse-auto-compressor
  25. # A list of additional container networks that the container would be connected to.
  26. # The role does not create these networks, so make sure they already exist.
  27. # Use this to expose this container to another reverse proxy, which runs in a different container network.
  28. matrix_synapse_auto_compressor_container_additional_networks: []
  29. # A list of extra arguments to pass to the container
  30. matrix_synapse_auto_compressor_container_extra_arguments: []
  31. # List of systemd services that matrix-synapse-auto-compressor.service depends on
  32. 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 }}"
  33. 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 [] }}"
  34. matrix_synapse_auto_compressor_systemd_required_services_list_auto: []
  35. matrix_synapse_auto_compressor_systemd_required_services_list_custom: []
  36. # List of systemd services that matrix-synapse-auto-compressor.service wants
  37. matrix_synapse_auto_compressor_systemd_wanted_services_list: []
  38. matrix_synapse_auto_compressor_database_username: 'synapse'
  39. matrix_synapse_auto_compressor_database_password: ''
  40. matrix_synapse_auto_compressor_database_hostname: ''
  41. matrix_synapse_auto_compressor_database_port: 5432
  42. matrix_synapse_auto_compressor_database_name: 'synapse'
  43. # connection string to synapse database (postgres only)
  44. 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 }}'
  45. # systemd calendar configuration for the compressor job
  46. matrix_synapse_auto_compressor_calendar: "*-*-* 00:00:00"
  47. # The number of state groups to work on at once.
  48. # All of the entries from state_groups_state are requested from the database for state groups that are worked on.
  49. # Therefore small chunk sizes may be needed on machines with low memory.
  50. # Note: if the compressor fails to find space savings on the chunk as a whole
  51. # (which may well happen in rooms with lots of backfill in) then the entire chunk is skipped.
  52. matrix_synapse_auto_compressor_chunk_size: 500
  53. # CHUNKS_TO_COMPRESS chunks of size CHUNK_SIZE will be compressed.
  54. # The higher this number is set to, the longer the compressor will run for.
  55. matrix_synapse_auto_compressor_chunks_to_compress: 100
  56. 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 }}"
  57. # Controls the POSTGRES_LOCATION environment variable
  58. matrix_synapse_auto_compressor_environment_variable_postgres_location: "{{ matrix_synapse_auto_compressor_synapse_database }}"