Make synapse-s3-storage-provider periodic migration schedule customizable

Larger deployments may wish to run migration more often.
This commit is contained in:
Slavi Pantaleev 2023-02-22 08:18:21 +02:00
parent d04132759b
commit 643acfcb5b
2 changed files with 4 additions and 1 deletions

View file

@ -874,6 +874,9 @@ matrix_synapse_ext_synapse_s3_storage_provider_config_threadpool_size: 40
# It specifies how old files need to have been inactive to be eligible for migration from the local filesystem to the S3 data store.
# By default, we use `0` which says "all files are eligible for migration".
matrix_synapse_ext_synapse_s3_storage_provider_update_db_day_count: 0
# Specifies how often periodic migration (`matrix-synapse-s3-storage-provider-migrate.timer`) will run.
# This is a systemd timer OnCalendar definition. Learn more here: https://man.archlinux.org/man/systemd.time.7#CALENDAR_EVENTS
matrix_synapse_ext_synapse_s3_storage_provider_periodic_migration_schedule: '*-*-* 05:00:00'
matrix_s3_media_store_enabled: false
matrix_s3_media_store_custom_endpoint_enabled: false

View file

@ -3,7 +3,7 @@ Description=Migrates locally-stored Synapse media store files to S3
[Timer]
Unit=matrix-synapse-s3-storage-provider-migrate.service
OnCalendar=*-*-* 05:00:00
OnCalendar={{ matrix_synapse_ext_synapse_s3_storage_provider_periodic_migration_schedule }}
[Install]
WantedBy=timers.target