New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cache server performance is not so fast. #1406
Comments
Maybe Cachix is a good option? |
Yes. cachix uses CDN. |
Where exactly are you having issues with IOGs hydra cache? We do have people in Asia and Oceania and this is the first time I hear about this; and I'm in SEA right now. Maybe we don't experience it much or just have a higher threshold of "acceptable performance"? If you could provide more detail of the issue. You are experiencing, we might be able to help. |
First, consider the download time of ghc as an example. Next, measure the RTT. The default TCP window size is 64KB. With hydra.iohk.io, it takes 8 hours to download 6GB. With cache.nixos.org it takes an hour to download 6GB. Since it is a cache, once it can be downloaded locally, it does not take a long time every time, but the first time it takes several hours. I think it is acceptable to download GB data within an hour.
|
Since it is a limit for each connection, it may actually be shorter than this. |
In summary, the current download bottleneck is RTT. |
TCP can dynamically increase the window size. You can check with |
As I understand it, The Mathis equations states that the maximum throughput over TCP is inversely proportional to the RTT, so regardless of window scaling and all other things the time to download GHC can only go up as RTT increases. |
It seems that the window size is about 500 in my linux environment. (The measurement time is too short.)
|
I'm using both iohk.cachix.org and hydra.iohk.io, but iohk.cachix.org doesn't have a ghc cache.
|
I'm happy to sponsor cachix cache for haskell.nix |
Are there any concerns about setting this on the hydra server? |
Please try replacing Docs update is in #1481 |
It is really fast. I appreciate your help! |
See ttps://github.com/input-output-hk/haskell.nix/issues/1406
I think hydra.iohk.io is in the United States.
It is far from Asia and the download is not fast.
Would you please use a CDN?
You can use cloudflare for free.
If you need support, I'll do it.
The text was updated successfully, but these errors were encountered: