You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been playing with Attic during the last couple weeks and got to a point where I wanted to compare how fast it was in terms of building already-cached derivations compared to Cachix.
My main focus was finding a way to build derivations in the least amount of time.
Currently, my company uses Cachix for AWS EC2 machines hosted on us-east-1. Cachix hosts its servers and buckets in the same region and does not allow for much tweaking, meaning that we're probably getting the best performance out of it right now.
This is the most basic schema I can think for describing it:
I figured maybe hosting a local attic cache within the AWS machine and then accessing it from the container via localhost would be much faster, as data, although still using http, would never leave the machine but rather only be sent via localhost.
Please note I did not build these benchmarks with the purpose of other people being able to reproduce them, but rather as a simple way of verifying if I was actually seeing an increase in build speed when using attic locally compared to cachix via internet.
The results are pretty confusing to me, as even though the data remains in the machine and travels via localhost, I'm actually seeing a decrease in performance for most scenarios.
With this in mind, I have several questions I hope someone would shine some light upon:
What is the recommended server configuration for prioritizing cache download/decompression in order to build derivations as fast as possible?
Are there any bottlenecks I may not be considering with this architecture?
Are there any other ways for making pulling cache faster, like completely getting rid off http and using disk files instead (like using a second /nix/store)?
The text was updated successfully, but these errors were encountered:
Hey,
I've been playing with Attic during the last couple weeks and got to a point where I wanted to compare how fast it was in terms of building already-cached derivations compared to Cachix.
My main focus was finding a way to build derivations in the least amount of time.
Currently, my company uses Cachix for AWS EC2 machines hosted on
us-east-1
. Cachix hosts its servers and buckets in the same region and does not allow for much tweaking, meaning that we're probably getting the best performance out of it right now.This is the most basic schema I can think for describing it:
I figured maybe hosting a local attic cache within the AWS machine and then accessing it from the container via localhost would be much faster, as data, although still using http, would never leave the machine but rather only be sent via localhost.
Here are some results I got:
Please note I did not build these benchmarks with the purpose of other people being able to reproduce them, but rather as a simple way of verifying if I was actually seeing an increase in build speed when using attic locally compared to cachix via internet.
The results are pretty confusing to me, as even though the data remains in the machine and travels via localhost, I'm actually seeing a decrease in performance for most scenarios.
With this in mind, I have several questions I hope someone would shine some light upon:
The text was updated successfully, but these errors were encountered: