solar-resources/examples/torrent
Łukasz Oleś 25dc2685f5 Refactor VirtualResources
- rename VirtualResource to Composer
- rename event parameter depend_action to child_action
- rename values parameter to input

Closes-bug: #1526780

Change-Id: Ib974e14ff4bda44c2d7d991f62aa4a06dea160ea
2015-12-29 16:50:46 +01:00
..
example.py Refactor VirtualResources 2015-12-29 16:50:46 +01:00
README.md Added some info how torrent transport works 2015-10-13 13:57:03 +02:00

Example of using torrent transport with solar. Torrent is used to distribute task data. After fetching is finished torrent client forks and continues seeding.

The example contains single node with single host mapping + transports.

Execute:

python examples/torrent/example.py
solar changes stage
solar changes process
solar orch run-once last

Wait for finish:

solar orch report last -w 100

After this you should see new entry in /etc/hosts file.

  • All created torrents are in /vagrant/torrents, it doesn't need to be shared
  • Initial seeding is done using torrent file
  • Downloading and then seeding is always done with magnetlinks