Geo secondary proxying: serve assets locally
What does this MR do and why?
As Geo sites are required to be on the same version as the primary, the assets should be the same, and at the same path, therefore we can speed this up by serving them from the local secondary when proxying is in use.
Related to #347120 (closed)
How to set up and validate locally
With GDK + Geo set up (or on a GET instance) using secondary proxying:
- Tail the logs on the primary
- Make a request through the secondary (hard refresh on the homepage or a specific page), notice
assets/*
paths being requested - On the secondary,
cd workhorse && make && gdk restart gitlab-workhorse
- Hard refresh again, notice page loading fine, no assets requested in the primary logs
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Catalin Irimie