From: Andrea Righi [mailto:[EMAIL PROTECTED]
Sent: Mon 09/01/2006 01:08
To: [EMAIL PROTECTED]
Cc: Bernard Li; Brian Elliott Finley; [EMAIL PROTECTED]; [EMAIL PROTECTED]; SIS Devel
Subject: Re: [Sisuite-devel] Re: Bit-Torrent transport
Hi all,
other work for the bittorrent
transport...
In this patch I've added to BOEL binaries the standard
bittorrent python
client "freezed" as a normal ELF binary, as suggested by
Bernard in a
previous chat with him.
This is a very important issue,
because with the python interpreter the
BOEL binaries took a lot of memory in
the clients and a lot of time to
be deployed... This is because I've always
prefered the Bernard approach
using libBT... :), but now also with this
approach the size of the
binaries is strongly reduced (from 20-30MB to
6.7MB!).
To create the bittorrent binaries from the python scripts, I've
used
cx_Freeze (http://starship.python.net/crew/atuining/cx_Freeze/).
Moreover
I've implemented a new heuristic for a client to decide when to
stop seeding
and go forward with the installation. In particular parsing
the
bittorrent-console output is possible to get the upload rate (= how
many KB/s
are pushed to the other peers). Looking periodically at this
value is
possible to decide that under a certain minimum threshold the
client/seeder
is no more useful, and it can proceed to the final steps
of the installation
(untar the image, run systemconfigurator, etc.).
I've done some test and
it seems to work very nice! Unfortunately at the
moment I've only 1 real
client for the tests... so I had to do some
tricks to simulate more clients
on another installed machine running
more bittorrent-console on it... :-(
this is very bad, anyway I suppose
it should be a simple but quite reliable
approximation... so who as 100
clients to do some better tests?
:-))
Comments are welcome...
Best
regards,
-Andrea