Skip to content

Commit 9218af0

Browse files
author
Marian Zvada
committed
instructions how to install redirector for Stash Federation
1 parent 9c42548 commit 9218af0

1 file changed

Lines changed: 71 additions & 0 deletions

File tree

docs/ops/redirector.md

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
# Installing XRootD StashCache Federation Redirector
2+
3+
Use these instructions to install an XRootD StashCache Federation Redirector. These instructions assume that you have SL, CentOS, or RHEL 6.
4+
Redirector server recommendations
5+
The service is very lightweight depending on number of subscribers (caching proxies), though. Recommended would be use machine with 4GB of RAM and 2 cores. Load avg is practically close to zero, therefore 2 cores is sufficient with as much RAM as you can reasonably ask for. As far as disk goes, something reasonable like 500GB of local storage is good enough, and best if the server has a 10 Gbps NIC at least.
6+
7+
You must have port 1094 and 1213 open to all traffic; otherwise the redirector will not work.
8+
In addition, we run separate xrootd server instance on redirector host for RSV tests which needs open port 2094
9+
10+
## Installation using yum
11+
If you don't want to use yum, refer to http://xrootd.org/dload.html for other methods.
12+
Copy http://xrootd.org/binaries/xrootd-stable-slc6.repo to /etc/yum.repos.d
13+
Do: yum install xrootd and answer every question with y
14+
Configure the server for RSV tests
15+
Edit the configuration file (/etc/xrootd/xrootd-clustered-server.cfg) to look like this:
16+
xrd.port 2094 if exec xrootd
17+
all.adminpath /var/spool/xrootd
18+
19+
all.role server
20+
21+
all.export /stash/
22+
#Production Redirector DNS alias
23+
all.manager redirector.osgstorage.org+ 1213
24+
#ITB Redirector DNS alias
25+
#all.manager stash-itb.grid.iu.edu+ 1213
26+
27+
For the RSV test purpose make sure the testing file is present on the file system:
28+
/stash/user/test.1M
29+
Configure the redirector for caches and origins
30+
1. Edit the configuration file (/etc/xrootd/xrootd-clustered.cfg) to look like this:
31+
all.export /
32+
xrd.allow host *
33+
cms.allow host *
34+
sec.protocol host
35+
sec.protbind * none
36+
all.adminpath /var/spool/xrootd
37+
all.pidpath /var/run/xrootd
38+
39+
xrootd.trace emsg login stall redirect
40+
ofs.trace all
41+
xrd.trace all debug
42+
cms.trace all debug
43+
44+
xrd.port 1094
45+
all.role meta manager
46+
47+
#Production Redirector DNS alias
48+
all.manager meta all redirector.osgstorage.org+ 1213
49+
all.sitename GOC-StashCache-Redirector
50+
51+
#ITB Redirector DNS alias
52+
#all.manager meta all stash-itb.grid.iu.edu+ 1213
53+
#all.sitename GOC-StashCache-ITB-Redirector
54+
# XRootD Stats - sends UDP packets
55+
xrd.report uct2-collectd.mwt2.org:9931
56+
xrootd.monitor all auth flush 30s window 5s fstat 60 lfn ops xfr 5 dest redir fstat info user uct2-collectd.mwt2.org:9930
57+
2. Change ownership of these directories:
58+
chown -R xrootd: /var/spool/xrootd
59+
chown -R xrootd: /var/log/xrootd
60+
chown -R xrootd: /stash
61+
3. Start the service: /etc/init.d/{xrootd,cmsd} start
62+
4. Set the service start when machine is rebooted: chkconfig --level 2345 {xrootd,cmsd} on
63+
5. Test that your instance works as expected, ideally would be setup origin server and subscribe into this redirector. Then, see the log files if origin server joined the Federation.
64+
Configure /etc/sysconfig/xrootd
65+
Assuming host runs both services "server and redirector" and the two configurations above are applied, make sure properly edit /etc/sysconfig/xrootd and add/edit these lines:
66+
XROOTD_DEFAULT_OPTIONS="-l /var/log/xrootd/xrootd.log -c /etc/xrootd/xrootd-clustered.cfg -k fifo"
67+
CMSD_DEFAULT_OPTIONS="-l /var/log/xrootd/cmsd.log -c /etc/xrootd/xrootd-clustered.cfg -k fifo”
68+
XROOTD_SERVER_OPTIONS="-l /var/log/xrootd/xrootd.log -c /etc/xrootd/xrootd-clustered-server.cfg -k fifo"
69+
CMSD_SERVER_OPTIONS="-l /var/log/xrootd/cmsd.log -c /etc/xrootd/xrootd-clustered-server.cfg -k fifo”
70+
XROOTD_INSTANCES="default server"
71+
CMSD_INSTANCES="default server”

0 commit comments

Comments
 (0)