Hilton Chain <hako@ultrarare.space> writes: > Ada Stevenson <adansk...@gmail.com> writes: > >> Hi Hilton! >> >> On 07/09/2025 5:55 pm, Hilton Chain wrote: >> >[...] >> >> I've been using the `ci.boiledscript.org` substitute server for a >> while now and it has been a treat! I recently switched to the mirror >> url `cache-cdn.guix.moe` and while the download speeds are good, >> getting the substitute info is an order of magnitude slower than >> getting it from Bordeaux or Guix CI. There wasn't a problem when I was >> downloading straight from the `ci.guix.moe` server itself, so perhaps >> this is a quirk of Cloudflare? >> >> Anyway, I thought I would mention it as it is a pretty big hindrance >> for a good UX, and perhaps you haven't noticed it. >> >> Thanks for your work hosting these servers! There's been a couple >> times now where having this server has saved me from having to wait a >> few hours for builds to complete on another server, or simply having >> to build it myself. :) > > Thanks very much! This is very valuable feedback, indeed I didn't notice the > issue. Below are a few tests in my environment, I have also tested latency > in a > few regions. > > So for best querying performance: > > a suitable mirror > Cloudflare (cached) > Cloudflare (uncached) > > Although Cloudflare might be better for downloading speed. > > Then the goal will be: deploy more mirrors for better coverage and use > Cloudflare as the default mirror for stable experience. > > To achieve the latter, performance of uncached requests should be improved, > then > there're two approaches: > > 1. Sync narinfo files to Cloudflare as well, making it similiar to a full > mirror. There're low-latency storage choices but adding more expenses.
Since it's included in the plan, I tried to move narinfo files into Cloudflare's key-value storage, making cache-cdn a full mirror. Performance on uncached lookups should be improved for all regions now, though at best a cached lookup takes 0.02s per request, while a suitable mirrors may take only 0.005s. > 2. The worker is deployed near the user, so narinfo files should be > accessed > from a mirror in nearest region, sounds more reasonable given the former goal, > I'll have a try. For anyone who reads the thread and interested in them, please let me know if the mirrors are slow, so I can know whether they are working well and which regions needs mirrors more. Also there's an option (the second mirroring approach in my blog post) to selfhost a narinfo mirror and reverse proxy substitutes requests to Cloudflare R2. This can be done locally as well, with the lowest latency. Thanks