Installing the dCache Gratia Probes

About this Document

dCache is a storage solution and its gratia probes provide accounting for transfers and storage: The dCache-transfer probe reports the details of each file transfer into or out of a dCache file server while the dCache-storage probe is responsible for reporting storage capacity and storage usage.

This document describes how you can install and configure the Gratia Storage and Transfer probes for dCache based Storage Elements.

Requirements

As with all OSG software installations, there are some one-time (per host) steps to prepare in advance:

Installing the dCache Gratia Probes

To install the gratia probe, run the following command on the dCache admin node:

[root@client ~]$ yum install gratia-probe-dcache-transfer

HELP NOTE
If you need to install it on another node, make sure to configure the postgres database running on dCache admin node to allow remote access from node on which probe is installed.

Configuring the dCache Gratia Probes

To configure dCache transfer probe you will need to modify the configuration file /etc/gratia/dCache-transfer/ProbeConfig as follows

    CollectorHost="gratia-osg-itb.opensciencegrid.org:80"
    SSLHost="gratia-osg-itb.opensciencegrid.org:443"
    SSLRegistrationHost="gratia-osg-itb.opensciencegrid.org:80"
    UserVOMapFile="/var/lib/osg/user-vo-map"
    SiteName="YOUR SITE NAME"
    Grid="OSG-ITB"
    EnableProbe="1"
     DBHostName="ADMIN NODE"
note If you are installing on dCache admin node you don't need to change DBHostName (localhost is a default)

To configure dCache storage probe you will need to modify the configuration file /etc/gratia/dCache-storage/ProbeConfig as follows

    CollectorHost="gratia-osg-itb.opensciencegrid.org:80"
    SSLHost="gratia-osg-itb.opensciencegrid.org:443"
    SSLRegistrationHost="gratia-osg-itb.opensciencegrid.org:80"
    UserVOMapFile="/var/lib/osg/user-vo-map"
    SiteName="YOUR SITE NAME"
    Grid="OSG-ITB"
    EnableProbe="1"
    InfoProviderUrl="http://ADMIN NODE:2288/info"
warning In above configuration, please use ITB for testing

You will also need to configure /etc/gums/gums-client.properties in order to accurately collect grid resource usage and metrics by VO for transfer submitted using grid proxies or where voms proxy information is not available.

gums.location=https://GUMS_HOST:8443/gums/services/GUMSAdmin
gums.authz=https://GUMS_HOST:8443/gums/services/GUMSXACMLAuthorizationServicePort
warning if you are not using a default port (8443) you have to change it as well.

Using the dCache Gratia Probes

gratia-probes-cron is the service that manages gratia probes on a host. As a reminder, here are common service commands (all run as root):

To … On EL 6, run the command… On EL 7, run the command…
Start a service service keepalived start systemctl start keepalived
Stop a service service keepalived stop systemctl start keepalived
Enable a service to start during boot chkconfig keepalived on systemctl enable keepalived
Disable a service from starting during boot chkconfig keepalived off systemctl disable keepalived

Validating the dCache Gratia Probe

  1. First, ensure that Gratia transfer probe for dCache is running:
    [root@client ~]$  ps auxww|grep gratia-dcache-transfer
    root      2680  2.3  0.2 174584 11080 ?        S    14:32   0:19 /usr/bin/python /usr/share/gratia/dCache-transfer/gratia-dcache-transfer
    
  2. Check the log files, located under /var/log/gratia
Topic revision: r16 - 04 May 2017 - 20:40:32 - BrianLin
Hello, TWikiGuest!
Register

 
TWIKI.NET

TWiki | Report Bugs | Privacy Policy

This site is powered by the TWiki collaboration platformCopyright by the contributing authors. All material on this collaboration platform is the property of the contributing authors..