Skip to content
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

Why is the default priority higher (in numbers lower) than cache.nixos.org? #204

Open
SuperSandro2000 opened this issue Dec 7, 2023 · 4 comments

Comments

@SuperSandro2000
Copy link
Member

Hydra explicitly sets 100 https://github.com/NixOS/hydra/blob/58707438ba092e767fd8a0a079a264caa742eeee/src/lib/Hydra/Controller/Root.pm#L349-L351

Why does harmonia set 30 when cache.nixos.org sets 40? Shouldn't we be by default higher to use the likely faster cache.nixos.org?

My suggestion would be to set by default 50 and advise people to change it if necessary.

@Mic92
Copy link
Member

Mic92 commented Mar 21, 2024

I never changed the default when I took the project, so I don't know why harmonia was set up this way.

@Mic92
Copy link
Member

Mic92 commented Mar 21, 2024

If this is a cache in your local network it might make sense to have it higher than cache.nixos.org. Also harmonia with zstd and threads will be much faster than hydra's naive xz based substitution.

@SuperSandro2000
Copy link
Member Author

It is a bit hard to find a sensible default here. If you have roaming machine like a laptop than being in the same network as harmonia it should be preferred but if you are roaming or somewhere else than cache.nixos.org is usually a lot faster.

@Mic92
Copy link
Member

Mic92 commented Mar 21, 2024

I guess in that case we should just stick to one default and document what to use when and make the priority configurable. One argument to have the priority higher is that it saves cost for the NixOS foundation and if you server has gigabit connection than it's probably fine to use it whenever possible. Of course people having their binary cache at home can set it up differently.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants