!RROtHmAaQIkiJzJZZE:nixos.org

NixOS Infrastructure

386 Members
Next Infra call: 2024-07-11, 18:00 CEST (UTC+2) | Infra operational issues backlog: https://github.com/orgs/NixOS/projects/52 | See #infra-alerts:nixos.org for real time alerts from Prometheus.120 Servers

Load older messages


SenderMessageTime
1 Jun 2025
@flokli:matrix.orgflokliWe can also do the push through thing. So instead of hydra uploading to fastly or s3 directly, it'd send to a http daemon that uploads to both places13:47:44
@flokli:matrix.orgflokliIt gives nicer control over the import path13:48:01
@edef1c:matrix.orgedefyes, these are all essentially identical in terms of dataflow13:48:06
@flokli:matrix.orgflokli* It gives nicer control over the upload path13:48:12
@edef1c:matrix.orgedef * yes, these are all essentially identical in terms of bulk data flow13:48:20
@edef1c:matrix.orgedefor well, we would be spending twice the hetzner bandwidth if we go to both13:48:57
@edef1c:matrix.orgedefmostly it depends on how much annoying orchestration we want to have13:49:16
@edef1c:matrix.orgedef * mostly it depends on how much annoying orchestration and consistency trickery we want to have13:49:29
@flokli:matrix.orgflokliI assumed network bandwidth egressing from Hetzner is not the bottleneck 13:51:01
@hexa:lossy.networkhexait is not13:51:12
@edef1c:matrix.orgedefit's not, no13:51:15
@edef1c:matrix.orgedef so like, for the most part you can do anything to the NAR datapath 13:52:06
@edef1c:matrix.orgedefas long as narinfo 404 is fast13:52:16
@brian:bmcgee.ieBMG joined the room.15:29:29
@arianvp:matrix.orgArian
In reply to @flokli:matrix.org
We can also do the push through thing. So instead of hydra uploading to fastly or s3 directly, it'd send to a http daemon that uploads to both places

I'm suggesting something way simpler.

We just have nix-serve running on hydra and serve its nix store.

We configure fastly to first fetch Hydra and on 404 fetch s3

17:41:24
@arianvp:matrix.orgArianRequires no big changes on hydra side 17:41:36
@edef1c:matrix.orgedefthe narinfo 404 path is sacred, we cause a lot of user suffering if it isn't fast17:42:18
@arianvp:matrix.orgArianBut it might be too simplistic. 17:42:18
@edef1c:matrix.orgedefwhether this was a good design choice in the substitution mechanism is another matter17:42:40
@edef1c:matrix.orgedefbut this is the army we fight with, for now17:42:55
@arianvp:matrix.orgArianBut it will just be slow for a single person. Afterwards it's cached 17:43:02
@edef1c:matrix.orgedefno17:43:08
@arianvp:matrix.orgArian:D17:43:09
@edef1c:matrix.orgedef 404s aren't cacheable, since presence isn't immutable 17:43:23
@arianvp:matrix.orgArianAaaaaah 17:43:33
@edef1c:matrix.orgedefand 404s tend to be unique requests17:43:35
@arianvp:matrix.orgArianYes. I see what you're getting at now17:43:45
@edef1c:matrix.orgedef every nix build is bottlenecked on cno 404s 17:43:48
@edef1c:matrix.orgedef * every nix build is bottlenecked on c.n.o 404s 17:43:52
@arianvp:matrix.orgArianWe don't cache them at all? Because we DO cache 404s locally 17:44:52

Show newer messages


Back to Room ListRoom Version: 6