Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
pipelet
Pipelet
Commits
fd98e9fd
Commit
fd98e9fd
authored
Jan 21, 2012
by
Betoule Marc
Committed by
Betoule Marc
Feb 16, 2013
Browse files
modif to the script launched at ccin2p3
parent
c0d635ea
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
pipelet/launchers.py
pipelet/launchers.py
+5
-4
No files found.
pipelet/launchers.py
View file @
fd98e9fd
...
...
@@ -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/
ba
sh -l
server_file
=
"""#! /bin/
z
sh -l
echo $HOST
echo "export PIPELETD_HOST=$HOST
\n
export PIPEWEB_HOST=$HOST
\n
export 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/
ba
sh -l
worker_file
=
"""#! /bin/
z
sh -l
echo $HOST
sleep 1
source $HOME/host_info.sh
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment