You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by be...@apache.org on 2011/06/05 10:28:05 UTC
svn commit: r1132040 -
/incubator/mesos/trunk/ec2/deploy.lucid64/root/mesos-ec2/redeploy-mesos
Author: benh
Date: Sun Jun 5 08:28:05 2011
New Revision: 1132040
URL: http://svn.apache.org/viewvc?rev=1132040&view=rev
Log:
Updating redeploy-mesos to handle multiple masters
Modified:
incubator/mesos/trunk/ec2/deploy.lucid64/root/mesos-ec2/redeploy-mesos
Modified: incubator/mesos/trunk/ec2/deploy.lucid64/root/mesos-ec2/redeploy-mesos
URL: http://svn.apache.org/viewvc/incubator/mesos/trunk/ec2/deploy.lucid64/root/mesos-ec2/redeploy-mesos?rev=1132040&r1=1132039&r2=1132040&view=diff
==============================================================================
--- incubator/mesos/trunk/ec2/deploy.lucid64/root/mesos-ec2/redeploy-mesos (original)
+++ incubator/mesos/trunk/ec2/deploy.lucid64/root/mesos-ec2/redeploy-mesos Sun Jun 5 08:28:05 2011
@@ -1,10 +1,20 @@
#!/bin/bash
+MASTERS=/root/mesos-ec2/masters
SLAVES=/root/mesos-ec2/slaves
-MASTER=/root/mesos-ec2/master
+
+NUM_MASTERS=`cat $MASTERS | wc -l`
SSH_OPTS="-o StrictHostKeyChecking=no -o ConnectTimeout=2"
+if [ $NUM_MASTERS -gt 1 ]; then
+ echo "RSYNC'ing /root/mesos to masters..."
+ for master in `cat $MASTERS`; do
+ echo $master
+ rsync -e "ssh $SSH_OPTS" -az --exclude '*.d' --exclude '*.o' --exclude '*.cpp' --exclude '*.hpp' --exclude '*.pyc' --exclude 'mesos/frameworks/hadoop-0.20.0/logs/*' --exclude 'mesos/work' --exclude 'mesos/logs' --exclude 'mesos/test_output' /root/mesos $master:/root
+ done
+fi
+
echo "RSYNC'ing /root/mesos to slaves..."
for slave in `cat $SLAVES`; do
echo $slave