Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Rogers, David
launchad
Commits
57f1e9a6
Commit
57f1e9a6
authored
Jun 10, 2020
by
David M. Rogers
Browse files
Bugfixes. Scaling test works, must re-run docking test.
parent
e775f660
Changes
2
Show whitespace changes
Inline
Side-by-side
loadem.py
View file @
57f1e9a6
...
...
@@ -12,8 +12,7 @@ def get_shard(host):
for
i
in
range
(
120
):
try
:
r
=
redis
.
StrictRedis
(
host
=
host
,
port
=
6379
,
password
=
"Z1908840168_2_T1"
,
db
=
0
,
single_connection_client
=
True
)
r
=
redis
.
StrictRedis
(
host
=
host
,
port
=
6379
,
password
=
"Z1908840168_2_T1"
,
db
=
0
)
break
except
redis
.
exceptions
.
ConnectionError
:
conn_retries
+=
1
...
...
@@ -25,6 +24,8 @@ def get_shard(host):
r
.
connection_pool
.
disconnect
()
del
r
if
shard
is
None
:
return
shard
return
shard
.
decode
(
'utf8'
)
def
main
(
argv
):
...
...
test_redis.lsf
View file @
57f1e9a6
#BSUB -nnodes 60
#BSUB -W
3
0
#BSUB -W
1
0
#BSUB -q debug
#BSUB -P BIF128
#BSUB -J db_load
#BSUB -o %J.out
#BSUB -e %J.err
source /ccs/proj/bif128/venvs/env.sh
PROJ=/gpfs/alpine/bif128/proj-shared/redis
cpus=$(( LSB_MAX_NUM_PROCESSORS-1 ))
echo "Starting $((cpus/42)) node run at " `date`
# create the database afresh (DON'T DO THIS AFTER ACTUAL DOCKING IS DONE)
rm -f $PROJ/shards.rdb
redis-server shards.conf 2>&1 >$PROJ/"
redis
_"$LSB_JOBID.log &
redis-server shards.conf 2>&1 >$PROJ/"
shard
_"$LSB_JOBID.log &
echo "Starting $((cpus/42)) node run at " `date`
python setdb.py `hostname` /gpfs/alpine/bif128/world-shared/ligand_shards.txt
for((i=0;i<120;i++)); do
memb=$(redis-cli --pass Z1908840168_2_T1 scard shards)
...
...
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