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

IPFS mirror #1

Closed
RubenKelevra opened this issue Jul 26, 2021 · 19 comments
Closed

IPFS mirror #1

RubenKelevra opened this issue Jul 26, 2021 · 19 comments

Comments

@RubenKelevra
Copy link

Hey guys,

I'm running an ArchLinux packages IPFS-Cluster under the domain pacman.store, which allows everyone to join by running a small daemon next to the IPFS node. This is called collaborative cluster.

I was wondering if you're interested in having me fetch your packages as well and add them to the cluster. This would allow people to fetch your ISOs and packages via an IPFS node, which would then continue to seed the files - like bittorrent.

@RubenKelevra

This comment has been minimized.

@RubenKelevra
Copy link
Author

@AlpixTM @killajoe :)

@AlpixTM
Copy link
Member

AlpixTM commented Jul 30, 2021 via email

@RubenKelevra
Copy link
Author

@AlpixTM I understand, that you don't need it - but that was never in question.

I would just like to offer it as an alternative to regular HTTPS/HTTP mirrors. I just need rsync access to one of your tier1 or main mirrors to make that happen. :)

@AlpixTM
Copy link
Member

AlpixTM commented Aug 2, 2021

Hey Ruben,

we only offer tier1 access to our official mirrors, but you can sync from an official mirror.

E.g. you could sync from mirror.erickochen.nl::endeavouros 

Greetings Lukas

@killajoe
Copy link
Member

killajoe commented Aug 9, 2021

reopen if you need, but looks solved to me ?

@killajoe killajoe closed this as completed Aug 9, 2021
@RubenKelevra
Copy link
Author

Yeah, will set it up as soon as I find time :)

@RubenKelevra
Copy link
Author

@AlpixTM @killajoe just noticed that there are ".sha512sum.1" files in the iso folder, are they supposed to be there?

And there are a lot of old iso releases ... do we really need to hold them on the mirrors? :)

@RubenKelevra
Copy link
Author

RubenKelevra commented Aug 10, 2021

I've added it to the cluster. It can be viewed in the Browser via

http://endeavouros.pkg.pacman.store/

For pacman you just have to configure it to use the local ipfs node, which should look like this:

Server = http://endeavouros.pkg.pacman.store.ipns.localhost:8080/repo/$repo/$arch

@AlpixTM
Copy link
Member

AlpixTM commented Aug 11, 2021

@AlpixTM @killajoe just noticed that there are ".sha512sum.1" files in the iso folder, are they supposed to be there?

No, thanks for the information, I will remove it.

And there are a lot of old iso releases ... do we really need to hold them on the mirrors? :)

No, it's planned to remove the old ones soon

@AlpixTM
Copy link
Member

AlpixTM commented Aug 11, 2021

I've added it to the cluster. It can be viewed in the Browser via

http://endeavouros.pkg.pacman.store/

For pacman you just have to configure it to use the local ipfs node, which should look like this:

Server = http://endeavouros.pkg.pacman.store.ipns.localhost:8080/repo/endeavouros/x86_64

Would that work for everybody like a normal http mirror, or is some config with pacman needed?
Does a user need to run an IPNS instance to connect?

@RubenKelevra
Copy link
Author

RubenKelevra commented Aug 13, 2021

@AlpixTM there's no special config needed for pacman. The decentralized nature of IPFS just means that there are some operations that have more latency. That's why I recommend having the mirror 3 times in the list, to have pacman retry it.

While you can access the IPFS network via publicly available gateway you loose a lot of features doing this (and might run into some rate-limiting).

It's recommended to install ipfs on each machine which should use the mirror or have one centralized ipfs instance in a local network since the packages will be cached and offered to other computers in the local network at LAN speed.

Additionally, each node that downloaded a package via the mirror will hold it for a while in its cache (until the cache gets wiped the next time). So there are many sources available if a package is often installed - which should allow for organic growth instead of having a lot of servers sitting around.

TL;DR the ipfs daemon will replace the lan sharing scripts/addons for pacman, while there's zero configuration necessary, even if you switch between different networks and allow for a more organic decentralized growth of the package exchange infrastructure.

@RubenKelevra
Copy link
Author

I've updated the install instructions to include Endeavouros

https://github.com/RubenKelevra/pacman.store#use-the-pkg-cache-with-pacman

@RubenKelevra
Copy link
Author

@AlpixTM wrote

Hey Ruben,

we only offer tier1 access to our official mirrors, but you can sync from an official mirror.

E.g. you could sync from mirror.erickochen.nl::endeavouros 

Hey Lukas,

this mirror is gone:

$ nslookup mirror.erickochen.nl 1.1.1.1
Server:		1.1.1.1
Address:	1.1.1.1#53

** server can't find mirror.erickochen.nl: NXDOMAIN

Is there an alternative I can tap into?

@AlpixTM
Copy link
Member

AlpixTM commented Jan 25, 2022

Hey,

you can use rsync://mirror.jingk.ai/endeavouros/

Does that work for you?

Greetings Lukas

@RubenKelevra
Copy link
Author

Hey @AlpixTM,

thanks!

I've updated my config, if it's not working I let you know :)

RubenKelevra/rsync2ipfs-cluster@075b6c3...master

@RubenKelevra
Copy link
Author

Hey @AlpixTM,

while this server works it's kind of slow. I feel like I might overload it when I leech from it all the time.

Current download speed is just 16 Mbit/s.

Is there any fast server available? :)

@AlpixTM
Copy link
Member

AlpixTM commented Feb 10, 2022

Hey,

you could also try rsync://mirror.moson.org/endeavouros/

@RubenKelevra
Copy link
Author

@AlpixTM this one is fine, getting around 250 MByte/s :)

Thanks again!

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

No branches or pull requests

3 participants