-
Notifications
You must be signed in to change notification settings - Fork 21
Expand file tree
/
Copy pathtest_spider_cms_queues.sh
More file actions
executable file
·54 lines (46 loc) · 1.83 KB
/
test_spider_cms_queues.sh
File metadata and controls
executable file
·54 lines (46 loc) · 1.83 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#!/bin/bash
# Query history schedd and send to
# - cms-test(index: monit_prod_condor_test_raw*) AMQ broker and
export SPIDER_WORKDIR="/home/cmsjobmon/cms-htcondor-es"
export AFFILIATION_DIR_LOCATION="$SPIDER_WORKDIR/.affiliation_dir.json"
export PYTHONPATH="$SPIDER_WORKDIR/src/:$PYTHONPATH"
export CMS_HTCONDOR_TOPIC="/topic/cms.jobmon.condor"
_LOGDIR=$SPIDER_WORKDIR/log/
_LOG_LEVEL="WARNING"
_QUERY_QUEUE_BATCH_SIZE=100
# ----- : TEST VALUES : -----
export CMS_HTCONDOR_PRODUCER="condor-test"
export CMS_HTCONDOR_BROKER="cms-test-mb.cern.ch"
# should be less than #cpus, upload pool size suggestion is #cpus/2
_QUERY_POOL_SIZE=2
_UPLOAD_POOL_SIZE=1
# ----- : =========== : -----
cd $SPIDER_WORKDIR || exit
source "$SPIDER_WORKDIR/venv3_9/bin/activate"
# Clean test run, remove affiliation and checkpoint files before test run.
#rm -f $SPIDER_WORKDIR/.affiliation_dir.json
#rm -f $SPIDER_WORKDIR/checkpoint.json
# Create affiliations json first, otherwise convert_to_json.py will fail
# ./scripts/cronAffiliation.sh
python scripts/spider_cms.py \
--read_only \
--log_dir $_LOGDIR \
--log_level $_LOG_LEVEL \
--skip_history \
--process_queue \
--query_queue_batch_size $_QUERY_QUEUE_BATCH_SIZE \
--query_pool_size $_QUERY_POOL_SIZE \
--upload_pool_size $_UPLOAD_POOL_SIZE \
--collectors_file $SPIDER_WORKDIR/etc/collectors.json \
--schedd_filter "vocms0258.cern.ch,vocms0267.cern.ch,crab3@vocms0195.cern.ch,crab3@vocms0196.cern.ch,crab3@vocms0194.cern.ch"
# Submit test
#python scripts/spider_cms.py \
# --feed_amq \
# --log_dir $_LOGDIR \
# --log_level $_LOG_LEVEL \
# --skip_history \
# --process_queue \
# --query_queue_batch_size $_QUERY_QUEUE_BATCH_SIZE \
# --query_pool_size $_QUERY_POOL_SIZE \
# --upload_pool_size $_UPLOAD_POOL_SIZE \
# --collectors_file $SPIDER_WORKDIR/etc/collectors.json