zhaofengli / attic

Multi-tenant Nix Binary Cache
https://docs.attic.rs
Other
1.04k stars 79 forks source link

Slow download speed from atticd #85

Closed voidcontext closed 1 year ago

voidcontext commented 1 year ago

I am running attic on a VPS with 2vcpu and 2GB RAM, the storage is S3 compatible, db is Postgresql and attic is behind an Nginx reverse proxy. It seems that average download speed of bigger NARs is around 1.5-2MB/s. There's no obvious sign of the root cause (CPU usage is low, memory usage low), and it seems the the chunk size doesn't affect this (tried 64KB and no chunking).

Is this some sort of limitation in how attic works? Was anyone able to get more bandwith out of it with this kind of setup?

voidcontext commented 1 year ago

It seems the S3 storage was the bottleneck, although I am not sure if it's the implementation or the actual infrastructure was slow.