8000 Peerix doesn't serve all available files · Issue #21 · cid-chan/peerix · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Peerix doesn't serve all available files #21

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

Open
rapenne-s opened this issue Aug 31, 2022 · 3 comments
8000 Open

Peerix doesn't serve all available files #21

rapenne-s opened this issue Aug 31, 2022 · 3 comments

Comments

@rapenne-s
Copy link

I'm seeing a problem between my computers using peerix, files in the store are not always found

For example, peerix reported INFO:root:Requesting kdyfy1hx3n95vifdi79zparg53r01ah3 from direct local network. when looking for kdyfy1hx3n95vifdi79zparg53r01ah3 and it didn't retrieve it from my computer 10.42.42.102 which is sometimes serving files through peerix (so peerix is working fine). On the peerix NixOS which has the file, peerix reported INFO:peerix.remote:Got request from 10.42.42.150:12304 for kdyfy1hx3n95vifdi79zparg53r01ah3

However, I've been able to manually import it from the remote store using nix-copy-closure --from solene@10.42.42.102 /nix/store/kdyfy1hx3n95vifdi79zparg53r01ah3-rust-1.62.1-x86_64-unknown-linux-gnu.tar.gz to confirm the file was available in the remote store served by peerix.

I can't find a pattern about this issue, using nix build nixpkgs#foobar.inputDerivation to pull dependencies on a system, and running it on with the same nixpkgs on another peerix computer will only download 1/5 of inputs from the peerix node. There are no specific errors in the service logs.

@cid-chan
Copy link
Owner
cid-chan commented Aug 31, 2022 via email

@rapenne-s
Copy link
Author

Increasing the timeout from 50 to 500 (a bit random but I wanted to be sure it was doing something) drastically improved the situation. After switching back to 50, cache.nixos.org was often used instead of peerix.

Both computers are on the same LAN and a ping reports only 2ms.

@profiluefter
Copy link

It works way better with a higher timeout, yeah.
I used the following config to change the timeout:

  systemd.services.peerix.script = lib.mkForce ''
    exec ${config.services.peerix.package}/bin/peerix --timeout 1000
  '';

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

3 participants
0