Gratia dCache Probe

Description

Install the required packages, in our storage element:

wget http://vdt.cs.wisc.edu/software/dcache/gratia//1.00.5g-1/gratia-probe-dcache-1.00.5g-1.sl4_32.tar.gz
tar xvfz gratia-probe-dcache-1.00.5g-1.sl4_32.tar.gz
rpm -i  gratia-probe-extra-libs-1.00.5g-1.noarch.rpm
wget ftp://mirror.switch.ch/pool/3/mirror/centos/4.6/centosplus/i386/RPMS/postgresql-libs-8.1.9-1.el4s1.1.i386.rpm
rpm -ivh postgresql-libs-8.1.9-1.el4s1.1.i386.rpm
rpm -i  gratia-probe-extra-libs-arch-spec-1.00.5g-1.i386.rpm
rpm -i  gratia-probe-common-1.00.5g-1.noarch.rpm
rpm -i  gratia-probe-dCache-storage-itb-1.00.5g-1.noarch.rpm
rpm -i  gratia-probe-dCache-transfer-itb-1.00.5g-1.noarch.rpm

To get the billing database working, in our dcache installation:

 /opt/d-cache/bin/dcache stop
 vim /opt/d-cache/config/dCacheSetup
billingToDb=yes
/opt/d-cache/bin/dcache start
log as "postgres" user. Look if you have "Indexes" in the end of
su - postgres
psql
\c billing
\d
I didn't see the "Indexes", so create it :
create unique index transaction on doorinfo(transaction);
create index dates_di on doorinfo(datestamp);
create index initiator on billinginfo(initiator);
create index dates on billinginfo(datestamp);
\q
Now you can edit your configuration file:
 
vim /opt/d-cache/gratia/probe/dCache-transfer/ProbeConfig
were we changed it :
SSLRegistrationHost="gratia-transfer.opensciencegrid.org:8886"
SiteName="osg-se.sprace.org.br"
Grid="OSG"
UserVOMapFile="/OSG/monitoring/osg-user-vo-map.txt"
EnableProbe="1"
DBHostName="localhost"
DBLoginName="srmdcache"
DBPassword="srmdcache"
OnlySendInterSiteTransfers="false"
And start this service:
chkconfig --level 345 gratia-dcache-transfer on
service gratia-dcache-transfer start

You can check if a python process is running:

ps -aux|grep python
python dCacheBillingAggregator.py
and look the feedback from these sites: http://t2.unl.edu/gratia/xml/facility_transfer_volume and http://gratia-transfer.opensciencegrid.org:8886/gratia-reporting/

In this last one, you can even query , using SQL, the activity due an specific user:

select * from MasterTransferSummary where CommonName like '%Marco%' order by
TransferSummaryID

Updates

Topic revision: r1 - 2009-01-27 - MarcoAndreFerreiraDias
 

This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback

antalya escort bursa escort eskisehir escort istanbul escort izmir escort