mirror of
https://github.com/spantaleev/matrix-docker-ansible-deploy.git
synced 2024-11-10 12:47:39 +01:00
Intentionally start Coturn after the homeserver when devture_systemd_service_manager_service_restart_mode is 'one-by-one'
This commit is contained in:
parent
35d22fdba3
commit
01b9a09863
@ -224,6 +224,12 @@ matrix_homeserver_sliding_sync_url: "{{ matrix_sliding_sync_base_url if matrix_s
|
|||||||
# (see `matrix_playbook_internal_matrix_client_api_traefik_entrypoint_enabled`)
|
# (see `matrix_playbook_internal_matrix_client_api_traefik_entrypoint_enabled`)
|
||||||
# - core services (the homeserver) get a level of ~1000
|
# - core services (the homeserver) get a level of ~1000
|
||||||
# - services that the homeserver depends on (database, Redis, ntfy, Coturn, etc.) get a lower level - between 500 and 1000
|
# - services that the homeserver depends on (database, Redis, ntfy, Coturn, etc.) get a lower level - between 500 and 1000
|
||||||
|
# - Coturn gets a higher level if `devture_systemd_service_manager_service_restart_mode == 'one-by-one'` to intentionally delay it, because:
|
||||||
|
# - starting services one by one means that the service manager role waits for each service to fully start before proceeding to the next one
|
||||||
|
# - if Coturn has a lower priority than the homeserver, it would be started before it
|
||||||
|
# - since Coturn is started before the homeserver, there's no container label telling Traefik to get a `matrix.DOMAIN` certificate
|
||||||
|
# - thus, Coturn would spin and wait for a certificate until it fails. We'd get a playbook failure due to it, but service manager will proceed to start all other services anyway.
|
||||||
|
# - only later, when the homeserver actually starts, would that certificate be fetched and dumped
|
||||||
# - reverse-proxying services get level 3000
|
# - reverse-proxying services get level 3000
|
||||||
# - Matrix utility services (bridges, bots) get a level of 2000/2200, so that:
|
# - Matrix utility services (bridges, bots) get a level of 2000/2200, so that:
|
||||||
# - they can start before the reverse-proxy
|
# - they can start before the reverse-proxy
|
||||||
@ -330,7 +336,7 @@ devture_systemd_service_manager_services_list_auto: |
|
|||||||
+
|
+
|
||||||
([{'name': 'matrix-corporal.service', 'priority': 1500, 'groups': ['matrix', 'corporal']}] if matrix_corporal_enabled else [])
|
([{'name': 'matrix-corporal.service', 'priority': 1500, 'groups': ['matrix', 'corporal']}] if matrix_corporal_enabled else [])
|
||||||
+
|
+
|
||||||
([{'name': 'matrix-coturn.service', 'priority': 900, 'groups': ['matrix', 'coturn']}] if matrix_coturn_enabled else [])
|
([{'name': 'matrix-coturn.service', 'priority': (900 if devture_systemd_service_manager_service_restart_mode == 'clean-stop-start' else 1500), 'groups': ['matrix', 'coturn']}] if matrix_coturn_enabled else [])
|
||||||
+
|
+
|
||||||
([{'name': 'matrix-rageshake.service', 'priority': 4000, 'groups': ['matrix', 'rageshake']}] if matrix_rageshake_enabled else [])
|
([{'name': 'matrix-rageshake.service', 'priority': 4000, 'groups': ['matrix', 'rageshake']}] if matrix_rageshake_enabled else [])
|
||||||
+
|
+
|
||||||
|
Loading…
Reference in New Issue
Block a user