torrent based software distribution
play

Torrent-based software distribution Costin Grigoras Pablo Saiz - PowerPoint PPT Presentation

Torrent-based software distribution Costin Grigoras Pablo Saiz ALICE Offline Week 24.06.2009 Current way of distributing sw SLC4 SLC4 SLC5 SLC5 32bit 64bit 32bit 64bit Build servers SLC4 Mac Mac Ubuntu AliRoot & deps


  1. Torrent-based software distribution Costin Grigoras Pablo Saiz ALICE Offline Week – 24.06.2009

  2. Current way of distributing sw SLC4 SLC4 SLC5 SLC5 32bit 64bit 32bit 64bit Build servers SLC4 Mac Mac Ubuntu AliRoot & deps Itanium 32bit 64bit 64bit Catalogue AliEn ALICE::CERN::SE VoBox Shared software area PackMan NFS/AFS/... Grid Site X Worker nodes

  3. Current way of distributing sw Advantages Disadvantages  A single service/site  Shared software area manages the is a single point of installation of required failure / bottleneck packages  Difficult to update packages keeping the version number  Need to keep a short list of active software packages

  4. How can we avoid using a shared software area ?  Worker nodes are independent  Self-consistent software packages are required  No site-local software repository  Avoid overloading central software repositories  Would be nice to be able to quickly update software packages if needed  We are trying to use BitTorrent technology to solve all the above

  5. Preparing for torrent package.tar.bz2 Chunks of equal size package.tar.bz2.torrent (tens of KB) Metadata info of the original file: - SHA1 hashes of chunks - SHA1 hash of the entire file * uniquely identifies the file - Tracker location (entry point)

  6. Data flow in torrent networks Discovery service: keeps track of who has which files/chunks. HTTP-based protocol Tracker Seeder Seeder Client Client Clients that have the complete file and serve it Are in the process of downloading the file. Cooperate to download faster.

  7. Implementation in AliEn SLC4 SLC4 SLC5 SLC5 32bit 64bit 32bit 64bit Build servers SLC4 Mac Mac Ubuntu AliRoot & deps Itanium 32bit 64bit 64bit Catalogue Seeder Tracker AliEn torrent://... alitorrent:8092 alitorrent:8088 http://alitorrent.cern.ch VoBox Grid Site X Worker nodes

  8. Implementation in AliEn  Worker nodes keep seeding the packages that they have downloaded  Other worker nodes will fetch the content mostly from local nodes  Worker nodes from site A are usually firewalled from site B, so no inter-site traffic  If initial download is not possible via torrent, fall back to wget and then seed the fetched files  Multiple versions of the same file can co-exist since they will have different hash codes; old ones will be graciously phased out.

  9. Current status  AliEn itself is packaged in a small (35MB) archive  AliRoot, Root & deps. packaged in single archives: max. 300MB/job  Subatech is used as testbed  LDAP flag to switch modes: name=Subatech-CREAM,ou=CE,ou=Services,ou=Subatech,ou=Sites,o=alice,dc=cern,dc=ch installMethod=Torrent  Production jobs work fine  Analysis jobs fail to load a particular library; most probably a configuration issue that is currently tracked  You can download precompiled packages from http://alitorrent.cern.ch/

  10. Future plans  Full-scale testing of the solution  Evaluate the need for caching  On worker nodes, as files  On VoBox, as seeder  Regional seeders  All these would require managers  Try to use the solution for distributing data files or pre-compiled PAR files  Latest version would be fetched at every execution, no cleanup required for previous ones

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend