Skip to content

Instantly share code, notes, and snippets.

@dciangot
Last active February 9, 2021 11:31
Show Gist options
  • Save dciangot/482032481312e8af6f3cb86ac16bb2df to your computer and use it in GitHub Desktop.
Save dciangot/482032481312e8af6f3cb86ac16bb2df to your computer and use it in GitHub Desktop.
sudo -u xrootd bash -c "eosfusebind krb5 /tmp/krb5cc_7910 && xrootd -d -c /opt/eos_xcache/config/xrootd-xcache.cfg -s /var/log/xrootd/xrootd.pid -l /var/log/xrootd/xrootd.log" &
set rdtrCache=localhost
set rdtrPortCmsd=1213
set rdtrGlobal=xrootd-cms.infn.it
set rdtrGlobalPort=1094
set cacheXrdPort=1094
set cacheLowWm=0.90
set cacheHiWm=0.97
set cacheLogLevel=info
set cachePath=/eos/standard/data
set cacheRam=60
set cacheStreams=256
set prefetch=0
set blkSize=512k
all.manager $rdtrCache:$rdtrPortCmsd
if exec cmsd
all.role server
xrd.port 31113
# Export with stage option - this tells manager cmsd we can pull files from the origin
#
all.export / stage
# The cmsd uses the standard oss plug-in to locate files in the cache.
# oss.localroot directive should be the same as for the server.
#
oss.localroot $cachePath
# Server?s xrootd configuration ? all PFC?s are virtual data servers
#
else
all.export /
all.role server
oss.localroot $cachePath
xrd.port $cacheXrdPort
xrootd.chksum max 2 adler32
ofs.osslib libXrdPss.so
#pss.cachelib libXrdFileCache.so
pss.cachelib default
acc.audit deny
pss.origin $rdtrGlobal:$rdtrGlobalPort
pss.config streams $cacheStreams
xrootd.seclib /usr/lib64/libXrdSec.so
xrootd.trace info
xrd.trace info
sec.trace debug
pfc.trace $cacheLogLevel
sec.protocol /usr/lib64 gsi \
-certdir:/cvmfs/grid.cern.ch/etc/grid-security/certificates \
-cert:/etc/grid-security/hostcert.pem \
-key:/etc/grid-security/hostkey.pem \
-d:3 \
-ca:1 -crl:0 \
-gridmap:/dev/null \
-vomsfun:/usr/lib64/libXrdSecgsiVOMS.so -vomsfunparms:certfmt=raw|dbg
ofs.authorize 1
acc.audit deny
acc.authdb /opt/eos_xcache/config/Authfile-auth
sec.protbind * gsi
pfc.diskusage $cacheLowWm $cacheHiWm
pfc.ram ${cacheRam}g
pfc.blocksize $blkSize
pfc.prefetch $prefetch
pss.setopt ParallelEvtLoop 10
pss.setopt RequestTimeout 25
pss.setopt ConnectTimeout 25
pss.setopt ConnectionRetry 2
xrd.report localhost:3033 every 15 all -poll
#xrootd.monitor all fstat 1m dest fstat pfc user localhost:3031
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment