-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
61 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# put the scripts on all the nodes | ||
|
||
# Note to jump between lsstcam nodes use 'kinit' since ipa controls it all | ||
|
||
|
||
source envvars.sh | ||
|
||
|
||
for n in $nodes; do | ||
scp ${n}:/home/womullan/s3daemon/summittests/*log logs | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# put the scripts on all the nodes | ||
|
||
# Note to jump between lsstcam nodes use 'kinit' since ipa controls it all | ||
|
||
|
||
source envvars.sh | ||
|
||
|
||
for n in $nodes; do | ||
rsync -a --exclude '/home/womullan/s3daemon/logs' /home/womullan/s3daemon ${n}: | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# use ssh to run given scrip on all the nodes in $nodes | ||
|
||
# Note to jump between lsstcam nodes use 'kinit' since ipa controls it all | ||
|
||
|
||
source envvars.sh | ||
|
||
cmd="./$1" | ||
|
||
for n in $nodes; do | ||
exec="cd s3daemon/summittests; ${cmd}" | ||
echo $exec | ||
ssh $n "${exec}" & | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,17 @@ | ||
# Simple config for s3daemon | ||
# eventually this shoudl be installed and excuted by puppe on every node | ||
# assumes s3daemon has been installed or pip install -r of its requirements.txt | ||
# see https://github.com/lsst-dm/s3daemon/blob/main/README.md | ||
|
||
# Note to jump between lsstcam nodes use 'kinit' since ipa controls it all | ||
|
||
|
||
source envvars.sh | ||
source venv/bin/activate | ||
|
||
host=`echo $HOSTNAME | cut -d'.' -f1` | ||
logfile="${host}-s3daemon.log" | ||
|
||
echo "S3_ENDPOINT_URL is $S3_ENDPOINT_URL" | ||
|
||
python ../python/s3daemon/s3daemon.py & | ||
python ../python/s3daemon/s3daemon.py > $logfile 2>&1 & |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# find the process and kill | ||
|
||
proc=`ps -ealf | grep s3daem | grep -v grep | cut -d' ' -f5` | ||
|
||
kill -9 $proc |