Maygh is a system that builds a content distribution network from client web browsers, without the need for additional plugins or client-side software.
A techniqical paper (Maygh: Building a CDN from client web browsers) is presented in EuroSys'13, at Prague.
There is no need to install, just copy the whole folder. In order to run the Maygh coordinator, you need to have Node.js 0.5.2. Yes, it's a old version, I know, hopefully I will have time to upgrade it to the latest Node release.
cd Coordinator && node cloudcdn2.js
You have to include the following two scripts in the page which you want to use Maygh.
Maygh.js
(In JsCloud/out/)swfobject.js
(You might find this in JsCloud/lib/ or https://code.google.com/p/swfobject/)
And put flCloud.swf
in your server, such as fl/flCloud.swf
.
To load content via Maygh, first create a Maygh object, then load, such as:
var maygh = new Maygh();
maygh.load(content_hash, dom_id, url);
We want to thank ArcusNode, on which our coordinator is based.