ISS Redirector configuration
===
```
## COMMON DEFINITIONS
# Configuration file syntax
# https://xrootd.slac.stanford.edu/doc/dev49/Syntax_config.htm
set myName = ALICE::ISS::FILE
set myRedirector = rd.spacescience.ro
set portXRDman = 1094
set portXRDsrv = 1094
set portCMSD = 3122
##########################################################
## COMMON SETTINGS ##
if defined ?~XRD_READONLY
set isWritable = nowritable
else
set isWritable = writable
fi
# https://xrootd.slac.stanford.edu/doc/dev51/xrd_config.htm#_Toc49272884
all.export / nolock $isWritable
# DEFAULTS
# https://xrootd.slac.stanford.edu/doc/dev51/ofs_config.htm#_Toc53410337
# explicit set the defaults
oss.defaults nocheck nodread nomig nomkeep nomlock nommap nopurge norcreate nostage xattrs
# Specify the way a disk partition is selected for file placement.
# https://xrootd.slac.stanford.edu/doc/dev51/ofs_config.htm#_Toc53410336
oss.alloc 0 0 0
# https://xrootd.slac.stanford.edu/doc/dev51/xrd_config.htm#_Toc49272870
all.sitename $myName
# Specify the manager cmsd location.
# https://xrootd.slac.stanford.edu/doc/dev50/cms_config.htm#_Toc53611061
all.manager $myRedirector $portCMSD
# Specify execution tracing options.
# https://xrootd.slac.stanford.edu/doc/dev51/xrd_config.htm#_Toc49272874
# xrd.trace off
# https://xrootd.slac.stanford.edu/doc/dev50/cms_config.htm#_Toc53611104
# cms.trace -all
# https://xrootd.slac.stanford.edu/doc/dev51/ofs_config.htm#_Toc53410332
# ofs.trace -all
# Enable I/O monitoring.
# https://xrootd.slac.stanford.edu/doc/dev51/xrd_config.htm#_Toc49272899
xrootd.monitor all flush io 30 window 30 fstat 30s lfn dest files fstat info user alien.spacescience.ro:9930 dest files fstat info sev.spacescience.ro:49000
# Enable HTTP
# https://xrootd.slac.stanford.edu/doc/dev51/xrd_config.htm#_Toc49272904
if exec xrootd
xrd.protocol http /usr/lib64/libXrdHttp.so
# Enable third-party-copy
http.exthandler xrdtpc /usr/lib64/libXrdHttpTPC.so
# Pass the bearer token to the Xrootd authorization framework.
http.header2cgi Authorization authz
http.listingdeny yes
fi
# Specify network parameters
# https://xrootd.slac.stanford.edu/doc/dev51/xrd_config.htm#_Toc49272861
xrd.network buffsz 0 nodnr nokeepalive
# Set timeout parameters for incoming connections
# https://xrootd.slac.stanford.edu/doc/dev51/xrd_config.htm#_Toc49272872
xrd.timeout hail 20 kill 10 read 20 idle 300
# Specify how asynchronous I/O is to be handled.
# https://xrootd.slac.stanford.edu/doc/dev51/xrd_config.htm#_Toc49272887
xrootd.async off
#xrootd.async force limit 8 maxsegs 4 maxstalls 4 maxtot 256 segsize 64k syncw nosf
# Specify how file check sums are computed; Native checksums are adler32, crc32, and md5
# https://xrootd.slac.stanford.edu/doc/dev51/xrd_config.htm#_Toc49272888
xrootd.chksum max 4 md5
# Specify when threads are created, how many can be created, and when they should be destroyed.
# https://xrootd.slac.stanford.edu/doc/dev51/xrd_config.htm#_Toc49272869
xrd.sched mint 16 idle 60 avlt 4 maxt 128
# Enable and set third-party-copy (TPC) parameters.
# https://xrootd.slac.stanford.edu/doc/dev51/ofs_config.htm#_Toc53410328
ofs.tpc autorm xfr 20 pgm /usr/bin/xrdcp -f
# Specify how servers are selected for file creation - manager and server
# https://xrootd.slac.stanford.edu/doc/dev50/cms_config.htm#_Toc53611078
cms.space recalc 60 min 50g 30g
#########################
## MANAGER SECTION ##
#########################
if $myRedirector
# https://xrootd.slac.stanford.edu/doc/dev50/cms_config.htm#_Toc53611065
all.role manager
# https://xrootd.slac.stanford.edu/doc/dev51/xrd_config.htm#_Toc49272866
xrd.port $portXRDman
# Control the keep-alive and load reporting frequency.
# https://xrootd.slac.stanford.edu/doc/dev50/cms_config.htm#_Toc53611094
cms.ping 15 log 3 usage 20
# Manage processing latency.
# https://xrootd.slac.stanford.edu/doc/dev50/cms_config.htm#_Toc53611085
cms.delay delnode 30m drop 120 hold 5000 overload 15 lookup 20 qdl 20 servers 1 startup 10
# Set the time file existence information is to be cached in memory.
# https://xrootd.slac.stanford.edu/doc/dev50/cms_config.htm#_Toc53611087
# cms.fxhold 5m 8h
# Specify the parameters for the load balancing scheduling algorithm - manager and supervisor
# https://xrootd.slac.stanford.edu/doc/dev50/cms_config.htm#_Toc53611076
cms.sched cpu 50 io 50 space 80
else
########################
## SERVER SECTION ##
########################
all.role server
xrd.port $portXRDsrv
# Specify how load is computed and reported.
# https://xrootd.slac.stanford.edu/doc/dev50/cms_config.htm#_Toc53611073
cms.perf int 20 pgm /usr/share/xrootd/utils/cms_monPerf 5
# Specify how frequently internal statistics are reconciled with actual available space in each disk partition.
# https://xrootd.slac.stanford.edu/doc/dev51/ofs_config.htm#_Toc53410350
oss.spacescan 600
# Auth Section #
# Specify the location of the security interface layer. - IS IT NEEDED?
# https://xrootd.slac.stanford.edu/doc/dev51/xrd_config.htm#_Toc49272885
xrootd.seclib /usr/lib64/libXrdSec.so
# Define the characteristics of an authentication protocol.
# https://xrootd.slac.stanford.edu/doc/dev50/sec_config.htm#_Toc56021417
# https://xrootd.slac.stanford.edu/doc/dev50/sec_config.htm#_Toc56021444
sec.protocol /usr/lib64 unix
# Enable the access control, acc, component.
# http://xrootd.org/doc/dev49/ofs_config.htm#_Toc522916523
ofs.authorize
# Specify the location of the file system authorization interface layer.
# https://xrootd.slac.stanford.edu/doc/dev51/ofs_config.htm#_Toc53410311
ofs.authlib /usr/lib64/libXrdAliceTokenAcc.so
# The funny ALICE name translation, for the global metamanager to aggregate all the clusters
# https://xrootd.slac.stanford.edu/doc/dev51/ofs_config.htm#_Toc53410349
oss.namelib /usr/lib64/libXrdAggregatingName2Name.so /home/aliprod/data
# The metamanager acts as a virtual stager. Beware, internally xrootd strips the trailing slashes so, no point in adding them here
# Specify where the local file system name space is actually rooted.
# https://xrootd.slac.stanford.edu/doc/dev51/ofs_config.htm#_Toc53410339
oss.localroot .
# Specify the location of a file systems that is to be used to hold data files.
# Only IF multiple locations are to be aggregated.
# https://xrootd.slac.stanford.edu/doc/dev51/ofs_config.htm#_Toc53410342
# OSS_SPACE
fi
## CLI starting of services
## !!! DO NOT REMOVE !!!
## variables used for cutomized start of services
#@@__INSTANCE_NAME="rd"
#@@__XRD_LOG="/home/aliprod/alicexrdrun/logs/xrdlog"
#@@__CMSD_LOG="/home/aliprod/alicexrdrun/logs/cmslog"
```