doc/administration/geo/secondary_proxy/runners.md
{{< details >}}
{{< /details >}}
{{< history >}}
geo_proxy_check_pipeline_refs. Disabled by default.{{< /history >}}
With Geo proxying for secondary sites, it is possible to register a gitlab-runner with a secondary site. This offloads load from the primary instance.
[!note] The jobs that start during the first stage of a pipeline almost always have their Git clone requests forwarded to the primary site. This is because those clones usually occur before the Git data is replicated and verified by the secondary site. Later stages are not guaranteed to be served by the secondary site either, for example if the Git change is large, bandwidth is small, or pipeline stages are short. In most cases, the subsequent stages of the pipeline serve Git data from the secondary site. Issue 446176 proposes an enhancement to increase the chance of the first stage clone request is served from the secondary site.
{{< details >}}
{{< /details >}}
Using Location-Aware DNS, with the feature flag enabled works with no extra configuration. After you install and register a runner in the same location as a secondary site, it automatically talks to the closest site, and only proxies to the primary if the secondary is out of date.
Using separate secondary URLs, the runners should be:
clone_url set to the external_url of the secondary instance.When executing a planned failover, secondary runners try to keep talking to their local instance. This leads to decreased runner capacity, and may need to be accounted for.
{{< details >}}
{{< /details >}}
When using Location-Aware DNS, all runners automatically connect to the closest Geo site.
When failing over to a new primary:
To alleviate any of these issues, you can pause or shutdown some of the runners until the site is back up to 100%.
If you are not concerned about these issues, there is nothing to do here.
You must have administrator access to use any of the following methods:
pause button next to each runner you would like to pause.id.paused=false.