!RROtHmAaQIkiJzJZZE:nixos.org

NixOS Infrastructure

382 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.117 Servers

Load older messages


SenderMessageTime
31 May 2025
@emilazy:matrix.orgemilythere's a reason we backport their updates to stable even when they're backwards-incompatible23:54:58
1 Jun 2025
@arianvp:matrix.orgArianI was wondering. Could we reduce our AWS egress bill by having Hydra directly warm the fastly cache? Then we don't need to pay money for fastly fetching from S3 for the first time.10:39:02
@arianvp:matrix.orgArianWe can still keep S3 for archival. As ingress is free. But it would remove the egress fees AWS currently charges10:40:03
@arianvp:matrix.orgArianThis could literally be a fastly script that first fetches from the store hosted by the Hydra coördinator and if the file is not on disk falls back to S3 10:41:35
@arianvp:matrix.orgArianIt seems too simple to not have been tried before. Is there something I'm missing here?10:42:07
@vcunat:matrix.orgVladimír Čunát It surprises me that Fastly supports pushing into their cache. 10:43:14
@arianvp:matrix.orgArianI'm not saying we should push. I'm saying fastly should fetch from hydra instead of s3. And only fetch to s3 when hydra returns a 40410:43:44
@emilazy:matrix.orgemilyI guess the question is just whether Hydra can handle that load. and also how big its pipe to Fastly is?11:34:16
@edef1c:matrix.orgedef
In reply to @arianvp:matrix.org
I'm not saying we should push. I'm saying fastly should fetch from hydra instead of s3. And only fetch to s3 when hydra returns a 404
we could alternatively finish the Tigris story / move more towards s3 as pure archival storage
11:35:31
@edef1c:matrix.orgedefboth tigris and r2 are free egress, the norm is changing gradually11:36:06
@arianvp:matrix.orgArian
In reply to @emilazy:matrix.org
I guess the question is just whether Hydra can handle that load. and also how big its pipe to Fastly is?
It is already handling that load though? It's uploading to S3 after all.
11:41:11
@toonn:matrix.orgtoonn That load would be almost doubling, no? 11:48:45
@edef1c:matrix.orgedefno, we could run the pipeline through fastly, if we wanted to11:49:13
@edef1c:matrix.orgedefwe can fetch into s3 on the aws side, pulling from fastly11:50:12
@edef1c:matrix.orgedef whether that is wise is another question, but we can definitely do it 11:50:27
@edef1c:matrix.orgedefmostly it is isomorphic to having hydra have a more-local / free-egress storage service11:51:49
@edef1c:matrix.orgedefand using s3 mostly as archival storage11:52:05
@toonn:matrix.orgtoonn That's certainly better than Hydra pushing to S3 and Fastly pulling from it preferentially but won't most of the Fastly cache still be clobbered by the S3 requests? So in the end Fastly would fetch many things from Hydra twice still? 12:29:43
@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

Show newer messages


Back to Room ListRoom Version: 6