Skip to content

Self-hosted releases.nixos.org #408

Open
@delroth

Description

@delroth

Assuming that 100% of the eu-west-1 S3 bill is releases.nixos.org (there are a few other minor buckets, e.g. tarballs.nixos.org), these mostly static ~32TB of data are costing us between $1.5K-$3.5K/month right now1.

This is IMO a perfect opportunity to start ramping up S3 self-hosting for the NixOS infra. Unlike cache.nixos.org:

  • This is small enough to not require significant investment to migrate.
  • This is all derivative data that does not have too high durability risks (worst case, we should be able to reconstruct it).
  • All writes to the bucket are operated by the channel scripts, not via the Nix codebase, which means we have more control to easily do things like e.g. dual-write.

2x SX134 at Hetzner with 10Gbps uplinks would cost us ~$659/month for 2x {2 x 960 GB flash + 10 x 16 TB hard drive (128TB with 2 disks failure tolerance)}, we can then also use the extra capacity in the future to consider self-hosting parts of cache.nixos.org to offset bandwidth costs.

We would still CDN this via Fastly.

Footnotes

  1. The cost is rapidly increasing from factors that look organic in nature, but more analysis might be able to find artificial sources that are increasing the costs on S3. In any case, $1.5K looks like the minimal baseline costs we could get down to.

Metadata

Metadata

Assignees

Labels

new-serviceRequest for a new service to be ran on the NixOS infra

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions