Add a manual domains reload feature to gitlab-pages
In https://gitlab.com/gitlab-com/infrastructure/issues/2035 we found out that gitlab-pages
was serving stale data after the pages mount was replaced without restarting the service. It may not be possible in this particular case as the running process was still seeing the old volume, but while debugging I felt the need of a reload function that would allow me to reload the domains. Something like a SIGUSR1
trap in the code that triggers the reload. Bonus points if that also handles the storage swap.
Would it be possible to add this feature?