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 06:56:44 UTC
svn commit: r1131679 -
/incubator/mesos/trunk/src/ec2/deploy.karmic64/root/nexus-ec2/setup-torque
Author: benh
Date: Sun Jun 5 04:56:44 2011
New Revision: 1131679
URL: http://svn.apache.org/viewvc?rev=1131679&view=rev
Log:
changing the torque download url to nexus one so it will grab hacked version of torque default fifo scheduler (that doesn't check to see if server has at least the number of nodes that a submitted job wants)
Modified:
incubator/mesos/trunk/src/ec2/deploy.karmic64/root/nexus-ec2/setup-torque
Modified: incubator/mesos/trunk/src/ec2/deploy.karmic64/root/nexus-ec2/setup-torque
URL: http://svn.apache.org/viewvc/incubator/mesos/trunk/src/ec2/deploy.karmic64/root/nexus-ec2/setup-torque?rev=1131679&r1=1131678&r2=1131679&view=diff
==============================================================================
--- incubator/mesos/trunk/src/ec2/deploy.karmic64/root/nexus-ec2/setup-torque (original)
+++ incubator/mesos/trunk/src/ec2/deploy.karmic64/root/nexus-ec2/setup-torque Sun Jun 5 04:56:44 2011
@@ -15,7 +15,8 @@ SLAVES="`cat $SLAVES_FILE`"
function installmaster {
pushd ~
echo "downloading and installing torque on master"
- wget http://www.clusterresources.com/downloads/torque/torque-2.4.7.tar.gz
+ #wget http://www.clusterresources.com/downloads/torque/torque-2.4.7.tar.gz
+ wget http://nexus.berkeley.edu/torque-2.4.7.tar.gz
tar xzf torque-2.4.7.tar.gz
cd torque-2.4.7
./configure --prefix=/usr/local
@@ -23,7 +24,7 @@ function installmaster {
make install
echo "running ldconfig on master"
ldconfig
- ./torque.setup root localhost
+ ./torque.setup root localhost # Note: sets some defaults for batch queue
echo "copying init.d control scripts to master"
cp contrib/init.d/debian.pbs_mom /etc/init.d/pbs_mom
@@ -32,11 +33,16 @@ function installmaster {
popd
#WARNING: allow root to qsub for debug purposes only, may be dangerous
- qmgr -c 's s acl_roots+=root@*' #allow root to submit jobs (i.e. qsub)
- qmgr -c 's s allow_node_submit=true' #allow other hostnames to submit
+ qmgr -c 'set server acl_roots+=root@*' #allow root to submit jobs
+ qmgr -c 's s allow_node_submit=true' #other hosts can submit too
+ NUM_SLAVES=`cat slaves|wc -l`
+ qmgr -c "s queue batch resources_max.nodect=$NUM_SLAVES"
+ qmgr -c "s queue batch resources_available.nodect=$NUM_SLAVES" #the framework should update this on its own and the server has to be restarted after this
+ qterm
+
touch ~/.rhosts
echo `hostname` |cat >> ~/.rhosts
- echo `hostname -f` |cat >> ~/.rhosts
+ echo `hostname -f` |cat >> ~/.rhosts
echo localhost |cat >> ~/.rhosts
}