Skip to content

Commit

Permalink
Merge pull request #120 from HSF/dev
Browse files Browse the repository at this point in the history
renew idds default cfg
  • Loading branch information
wguanicedew authored Oct 26, 2022
2 parents e36b0c0 + eda0738 commit 6e9e538
Show file tree
Hide file tree
Showing 5 changed files with 57 additions and 5 deletions.
11 changes: 11 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,17 @@ RUN chown atlpan -R /opt/idds
RUN chown atlpan -R /var/log/idds
RUN chown apache -R /var/idds/wsgisocks/

# redis
RUN chmod a+rx /etc/redis*
# RUN chmod a+rwx /var/log/redis
# RUN chmod a+rwx /var/lib/redis
RUN rm -fr /var/log/redis
RUN rm -fr /var/lib/redis
RUN mkdir /var/log/idds/redis
RUN chmod a+rwx /var/log/idds/redis
RUN ln -s /var/log/idds/redis /var/log/redis
RUN ln -s /var/log/idds/redis /var/lib/redis

# setup conda virtual env
ADD requirements.yaml /opt/idds/
# ADD start-daemon.sh /opt/idds/
Expand Down
1 change: 1 addition & 0 deletions main/config_default/auth.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ allow_vos = panda_dev,Rubin,Rubin.production
[Users]
allow_users = DC=cern,DC=slac
ban_users = testuser
super_users = idds,wguan,Wen Guan,CN=518174849,/DC=ch/DC=cern/OU=Organic Units/OU=Users/CN=atlpilo1/CN=614260/CN=Robot: ATLAS Pilot1/CN=545485199/CN=518174849
34 changes: 32 additions & 2 deletions main/config_default/idds.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,28 @@ host = https://localhost:443/idds
cacher_dir = /var/log/idds

[main]
agents = clerk, transformer, carrier, conductor
# agents = clerk, transformer, carrier, conductor
agents = clerk, transformer, submitter, poller, receiver, trigger, finisher, conductor

[clerk]
num_threads = 4
poll_period = 1800
new_poll_period = 10
update_poll_period = 1800
new_command_poll_period = 10
update_command_poll_period = 600

poll_time_period = 60
poll_operation_time_period = 60
retrieve_bulk_size = 4
pending_time = 4
pending_time = 30

[transformer]
num_threads = 8
poll_period = 1800
new_poll_period = 60
update_poll_period = 1800

poll_time_period = 60
retrieve_bulk_size = 4
poll_operation_time_period = 240
Expand All @@ -43,17 +54,36 @@ domapandawork.num_retries = 0

[carrier]
num_threads = 8
max_number_workers = 2
trigger_max_number_workers = 6
finisher_max_number_workers = 6

poll_period = 3600
new_poll_period = 10
update_poll_period = 300

poll_time_period = 60
poll_operation_time_period = 240
retrieve_bulk_size = 4
message_bulk_size = 1000

plugin.receiver = idds.agents.common.plugins.messaging.MessagingReceiver
plugin.receiver.brokers = atlas-mb.cern.ch
plugin.receiver.port = 61013
# plugin.notifier.vhost =
plugin.receiver.destination = /topic/doma.panda_idds
plugin.receiver.username = user
plugin.receiver.password = password
plugin.receiver.broker_timeout = 10

# domapandawork.life_time = 86400
domapandawork.num_retries = 0
domapandawork.poll_panda_jobs_chunk_size = 10000

[conductor]
delay = 120
replay_times = 2

threshold_to_release_messages = 1000
random_delay = 60

Expand Down
9 changes: 6 additions & 3 deletions main/tools/env/setup_panda.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,14 @@ export PANDA_BEHIND_REAL_LB=true

if [ "$instance" == "k8s" ]; then
export PANDA_AUTH=oidc
export PANDA_URL_SSL=https://pandaserver-doma.cern.ch:25443/server/panda
export PANDA_URL=http://pandaserver-doma.cern.ch:25080/server/panda
export PANDAMON_URL=https://panda-doma.cern.ch
export PANDA_BEHIND_REAL_LB=true
export PANDA_VERIFY_HOST=off
export PANDA_URL_SSL=https://panda-server-dev.cern.ch:443/server/panda
export PANDA_URL=http://panda-server-dev.cern.ch:80/server/panda
export PANDAMON_URL=https://panda-server-dev.cern.ch
export PANDA_AUTH_VO=panda_dev

export PANDACACHE_URL=$PANDA_URL_SSL
# export PANDA_CONFIG_ROOT=/afs/cern.ch/user/w/wguan/workdisk/iDDS/main/etc/panda/
export PANDA_CONFIG_ROOT=~/.panda/
elif [ "$instance" == "slac" ]; then
Expand Down
7 changes: 7 additions & 0 deletions start-daemon.sh
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,13 @@ if ! [ -f /opt/idds/config/.token ]; then
fi

# start redis
mkdir /var/log/idds/redis
if [ ! -f /var/log/redis ]; then
ln -s /var/log/idds/redis /var/log/redis
fi
if [ ! -f /var/lib/redis ]; then
ln -s /var/log/idds/redis /var/lib/redis
fi
/usr/bin/redis-server /etc/redis.conf --supervised systemd &

if [ "${IDDS_SERVICE}" == "rest" ]; then
Expand Down

0 comments on commit 6e9e538

Please sign in to comment.