chihaya / chihaya

A customizable, multi-protocol BitTorrent Tracker
https://chihaya.io
Other
1.44k stars 190 forks source link

Use cases for peer-to-peer cloud software deployments #611

Closed josecelano closed 1 year ago

josecelano commented 1 year ago

I'm looking for documentation, examples, etcetera, of using this software for peer-to-peer cloud software deployments.

mrd0ll4r commented 1 year ago

Hey, that has been done before, although using v1. Still, shouldn't be too difficult with v2. I'll give you a few pointers, let me know what you think and if there's any questions:

On the Chihaya-side, you'd have to consider things like:

If you do end up doing this, we'd appreciate any feedback on the process :) Any problems you ran into, etc. pp.

josecelano commented 1 year ago
  • Chihaya

Hey, thank you @mrd0ll4r!

I was wondering if there are specific libraries for integration with other deployment tools.

For example, I guess one option could be to distribute your docker images with BitTorrent clients and use docker save and docker load. You would need a thin BitTorrent client to "pull" the images. That way, you would not need to use a docker registry, and your servers would also act like a distributed docker registry.

But my question is more about already-built solutions than custom deployment processes. For example, maybe if you are using K8S you can setup a local docker registry and load images into the local registry with a "thin" BitTorrent client — just and idea.

Ideally, there should be an easy way to use the BitTorrent protocol in your standard deployment solution.

But I'm not a sysadmin, I'm just curious about use cases for BitTorrent. I'm also contributing to a BitTorrent tracker, and I want to know more about real use cases.

By the way I found this client https://github.com/mandreyel/cratetorrent that I suppose it could be use to write a service that you can run on your servers to download your artifacts.

I'm going to close the issue since this is more a discussion that an issue.

mrd0ll4r commented 1 year ago

Hmm, I'm not sure if there are ready-made solutions... I know twitter and facebook used to do some bittorrent stuff for their deployments, but not sure if that's still the case. I wonder if @jzelinskie knows more, since he's much close to what's actually happening in the industry :)