Commit fd98e9fd authored by Betoule Marc's avatar Betoule Marc Committed by Betoule Marc
Browse files

modif to the script launched at ccin2p3

parent c0d635ea
......@@ -465,7 +465,7 @@ def launch_ccali_ge(pipe, n, address=('127.0.0.1',5000), authkey='secret', job_d
def launch_ccage_server (pipe, address=('127.0.0.1',5000), authkey='secret', log_level=logging.WARNING, project="planck", cpu_time='24:00:00', scratch="512M", mem="512M", ressource=['sps']):
""" Launch a scheduler + web server through a SGE batch system @ccin2p3.
"""
server_file="""#! /usr/local/bin/bash -l
server_file="""#! /bin/zsh -l
echo $HOST
echo "export PIPELETD_HOST=$HOST\nexport PIPEWEB_HOST=$HOST\nexport PIPELETD_PORT=%d" > $HOME/host_info.sh
source $HOME/host_info.sh
......@@ -491,8 +491,9 @@ EOF
com=['qsub',
'-P', 'P_%s'%project,
'-q', 'demon',
'-l', 'demon=1',
#'-q', 'demon',
#'-l', 'demon=1',
'-l', 'sps=1',
'-l', 'fsize=%s'%scratch,
'-l', 'vmem=%s'%mem,
'-l', 'ct=%s'%cpu_time,
......@@ -504,7 +505,7 @@ EOF
def launch_ccage_worker (pipe, n, address=('127.0.0.1',5000), authkey='secret', log_level=logging.WARNING, project="planck", cpu_time='01:00:00', scratch="512M", mem="512M", ressource=['sps']):
""" Launch n worker using job array
"""
worker_file = """#! /usr/local/bin/bash -l
worker_file = """#! /bin/zsh -l
echo $HOST
sleep 1
source $HOME/host_info.sh
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment