in the archive U can find:
MulticastTask.calss.php
the /bin/fog (present in mi Image.gz)
[url=“/_imported_xf_attachments/0/412_Archive.zip?:”]Archive.zip[/url]
in the archive U can find:
MulticastTask.calss.php
the /bin/fog (present in mi Image.gz)
[url=“/_imported_xf_attachments/0/412_Archive.zip?:”]Archive.zip[/url]
uor client are all the same. so i’m not able to give answare to raff.
hera another part of my study:
[url]https://docs.google.com/spreadsheet/ccc?key=0Aqa-uTXnbjT5dDJ3WjNxbzIyY1pKSlJISW9uT0xTWXc&usp=sharing[/url]
the time to deploy via multicast a group of machine (before my kack)
as you che see the tim grows very quickly: the main reason seem the small buffer of the tcp stack an then server
Hi, i use fog to clone 140+ machine at one.
using fog from the shelf make the task impossible (200H+) but with few change now i can clone all the group in a couple of hours.
on the fog server increase the rec buffer
echo 1000000000 > /proc/sys/net/core/rmem_max
echo 1000000000 > /proc/sys/net/core/rmem_default
in /opt/fog/service/common/lib/MulticastTask.class.php i made the changes:
I send the image to the client WHIT-OUT decompress it. I replace gunzip with cat
I.E. the lines like
$cmd = “gunzip -c “” . $strRec . “” | " . UPDSENDERPATH . " --min-receivers " . $this->getClientCount() . " --portbase " . $this->getPortBase() . " " . $interface . " $wait --half-duplex --ttl 32 --nokbd;”;
became
$cmd = “cat “” . $strRec . “” | " . UPDSENDERPATH . " --min-receivers " . $this->getClientCount() . " --portbase " . $this->getPortBase() . " " . $interface . " $wait --half-duplex --mcast-data-address $mca --ttl 32 --nokbd;”;
In init.gz i modified /bin/fog
i.e. the lines like
udp-receiver --nokbd --portbase ${port} --mcast-rdv-address ${storageip} 2>/dev/null | partimage -f3 -b restore $win7rec stdin
became
udp-receiver --nokbd --portbase ${port} --mcast-rdv-address ${storageip} 2>/dev/null | gzip -d -c |partimage -f3 -b restore $win7rec stdin
the last trick
to use multiple multicast group at the same time is better use separate mcast-data-address (so the fog server will use different input buffer)
so in /opt/fog/service/common/lib/MulticastTask.class.php , at the start of public function getCMD()
i add
$mport=$this->getPortBase();
$mcabase = substr($mport,-1);
$mca = “232.192.124.24”.$mcabase;
May You consider to insert those little changes in the next fog release?