Skip to content

Commit 8e4bd17

Browse files
authored
Merge pull request #18 from djw8605/taburaad-add_stashcp2
Add Stashcp implementaiton 2.0
2 parents 121a7f4 + f3971b0 commit 8e4bd17

File tree

12 files changed

+911
-432
lines changed

12 files changed

+911
-432
lines changed

.travis.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
sudo: required
2+
env:
3+
matrix:
4+
- OS_TYPE=centos OS_VERSION=6
5+
- OS_TYPE=centos OS_VERSION=7
6+
- OS_TYPE=centos OS_VERSION=6 XRD_CACHE="root://stash.osgconnect.net"
7+
- OS_TYPE=centos OS_VERSION=6 XRD_CACHE="root://xrd-cache-1.t2.ucsd.edu"
8+
- OS_TYPE=centos OS_VERSION=6 XRD_CACHE="root://mwt2-stashcache.campuscluster.illinois.edu"
9+
- OS_TYPE=centos OS_VERSION=6 XRD_CACHE="root://hcc-stash.unl.edu"
10+
- OS_TYPE=centos OS_VERSION=6 XRD_CACHE="root://osgxroot.usatlas.bnl.gov"
11+
- OS_TYPE=centos OS_VERSION=7 XRD_CACHE="root://stash.osgconnect.net"
12+
- OS_TYPE=centos OS_VERSION=7 XRD_CACHE="root://xrd-cache-1.t2.ucsd.edu"
13+
- OS_TYPE=centos OS_VERSION=7 XRD_CACHE="root://mwt2-stashcache.campuscluster.illinois.edu"
14+
- OS_TYPE=centos OS_VERSION=7 XRD_CACHE="root://hcc-stash.unl.edu"
15+
- OS_TYPE=centos OS_VERSION=7 XRD_CACHE="root://osgxroot.usatlas.bnl.gov"
16+
17+
18+
services:
19+
- docker
20+
21+
before_install:
22+
- sudo apt-get update
23+
- echo 'DOCKER_OPTS="-H tcp://127.0.0.1:2375 -H unix:///var/run/docker.sock -s devicemapper"' | sudo tee /etc/default/docker > /dev/null
24+
- sudo service docker restart
25+
- sleep 5
26+
- sudo docker pull centos:centos${OS_VERSION}
27+
28+
29+
script:
30+
# Run tests in Container
31+
- bin/stashcp2/tests/setup_tests.sh ${OS_VERSION}

README.md

Lines changed: 21 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,27 @@
1-
StashCache
2-
==========
1+
# StashCache
2+
3+
[![Build Status](https://travis-ci.org/djw8605/StashCache-1.svg?branch=master)](https://travis-ci.org/djw8605/StashCache-1)
34

45
This repo holds json file with addresses, statuses and geographical coordinates of all of the StashCache caches.
56
Status is given as a number: 1 - Active, 0 - Not Active.
67

7-
Doing:
8-
source ./setStashCache.(c)sh will determine what is the closest StashCache to the user and export a variable STASHPREFIX containing the address of the closest StashCache.
8+
## Using Stashcp
9+
10+
XrootD client is required to be installed in order to use stashcp. You can use it with:
11+
12+
./bin/stashcp <source> <destination>
13+
14+
See the help message for full usage of the command.
15+
16+
## Operation of stashcp
17+
18+
Stashcp uses geo located nearby caches in order to copy from the OSG Connect's stash storage service
19+
to a job's workspace on a cluster.
20+
21+
Stashcp uses an ordered list of methods to access the file:
922

10-
After that a user can access the file in the following way:
23+
1. Copy the file from CVMFS, under the directory /cvmfs/stash.osgstorage.org/...
24+
2. Copy the file with `xrdcp` from the nearest cache.
25+
3. Copy the file with `xrdcp` from the source, stash.osgconnect.net.
1126

12-
xrdcp $STASHPREFIX/user/ivukotic/xAOD_mc.pool.root xAOD_mc.pool.root
27+
While using `xrdcp`, it uses XrootD's internal timers to act as a strict watchdog.

bin/caches.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[
2-
{"name":"root://student02.ci-connect.net/", "status":0, "longitude":-87.603, "latitude":41.78},
3-
{"name":"root://stash.osgconnect.net/", "status":1, "longitude":-87.603, "latitude":41.78},
2+
{"name":"root://student02.ci-connect.net", "status":0, "longitude":-87.603, "latitude":41.78},
3+
{"name":"root://stash.osgconnect.net", "status":1, "longitude":-87.603, "latitude":41.78},
44
{"name":"root://cm3.bu.edu", "status":0, "longitude":-72.6167, "latitude":42.2042},
55
{"name":"root://xrd-cache-1.t2.ucsd.edu", "status":1, "longitude":-117.2359, "latitude":32.8807},
66
{"name":"root://mwt2-stashcache.campuscluster.illinois.edu", "status":1, "longitude":-88.23, "latitude":40.107487},

0 commit comments

Comments
 (0)