Script changes

This commit is contained in:
hammer 2022-01-29 15:09:06 -06:00
parent 8c20518867
commit 0e0f53b07d
5 changed files with 19 additions and 6 deletions

View File

@ -15,7 +15,7 @@ NUM_SERV=${1:-1}
TYPE=${2:-sync}
CARS=${3:-2}
DBNAME=${4:-tmp}
NODES=${5:-2}
NODES=${5:-3}
module load graphviz
module load gcc

View File

@ -1,6 +1,6 @@
[database]
name = ag_gen
host = 127.0.0.1
port = 5432
host = compute03
port = 5240
username = ag_gen
password = 8PZQc79NUZ3FjqSB

View File

@ -15,7 +15,7 @@ strval2="non-sync"
#Hammer
if [ "$(dnsdomainname)" = "hammer.esg.utulsa.edu" ]; then
#Database stored on node with port
if psql -p 5240 -h login ${DBNAME} -c '\q' 2>&1; then
if psql -p 5240 -h compute03 ${DBNAME} -c '\q' 2>&1; then
echo "Database ${DBNAME} exists. Dropping and recreating from dump."
psql -p 5240 -h compute03 postgres -c "DROP DATABASE "$DBNAME""

View File

@ -0,0 +1,13 @@
mpirun: Forwarding signal 18 to job
--------------------------------------------------------------------------
ORTE has lost communication with a remote daemon.
HNP daemon : [[44229,0],0] on node compute03
Remote daemon: [[44229,0],3] on node compute06
This is usually due to either a failure of the TCP network
connection to the node, or possibly an internal failure of
the daemon itself. We cannot recover from this failure, and
therefore will terminate the job.
--------------------------------------------------------------------------
slurmstepd: *** JOB 29973 ON compute03 CANCELLED AT 2022-01-29T14:55:37 ***

View File

@ -1,6 +1,6 @@
[database]
name = ag_gen
host = 127.0.0.1
port = 5432
host = compute03
port = 5240
username = ag_gen
password = 8PZQc79NUZ3FjqSB