cluster:Accounting
Contents |
Introduction
|
Accounting structure in D-Grid can be separated into two types:
The access to the data can be done with Command Line Interface (CLI) to the DGAS or with HLRmon. There are some user roles which can manipulate with the accounting data: VO user, VO manager, Site manager, ROC manager.
|
|
Accounting with glite server
Install
The DGAS client is located into the gLite 3.1 server and based on the LCG-CE packages installation:
- glite-dgas-common
- glite-dgas-hlr-clients
- lcg-dgas-tools
administrator's script: install.sh
#!/bin/sh# install the accounting client with glite CE# on the glite CEyum install glite-dgas-common.i386 glite-dgas-hlr-clients.i386 lcg-dgas-tools.i386
Configure
The following steps should be done to configure the accounting client:
- The torque
/var/spool/torque/server_priv/accountingdirectory should be exported and mounted by the DGAS client. - The following file should be configured:
- /glite/etc/dgas_atmClient.conf
- /glite/etc/dgas_ce_getAcctLogd.conf (standard configuration, nothing to be changing)
- /glite/etc/dgas_ce_pushd.conf (siteName abbriviation without spaces!)
- /glite/etc/dgas_gianduia.conf (siteName abbriviation without spaces!)
- /glite/etc/dgas_VOUserHLR.conf (standard configuration, nothing to be changing)
- /opt/glite/sbin/glite-urcollector.pl (includes changes into the writeGianduiottoFile function)
- The
/etc/grid-securitydirectory store the following important files: - SPEC Benchmark
- /opt/glite/etc/dgas_gianduia.conf to be registered for its own resources in the Home Location Register
- Register the user into the DGAS database - send the email with DN into the accounting@rvs.uni-hannover.de
- copy the initial DGAS scripts into the
/etc/init.dand configure the activation withchkconfig
administrator's script: configure.sh
#!/bin/sh# configure the accounting client with glite CE# mount /var/spool/torque/server_priv/accounting from batch server# Note: the batch server should export the directory with NFSTORQUE_SERVER=dgiref-batch.fzk.demkdir -p /var/spool/torque/server_priv/accounting
mount -a
#cat /opt/glite/etc/dgas_ce_pushd.conf
#cat /opt/glite/etc/dgas_gianduia.conf
#cat /opt/glite/sbin/glite-urcollector.pl
#cat /opt/glite/etc/dgas_gianduia.conf
# copy to the /etc/init.dcp /opt/glite/sbin/glite-dgas-urcollector /etc/init.d
cp /opt/glite/sbin/glite-dgas-pushd /etc/init.d
# configure chkconfigchkconfig glite-dgas-urcollector on
chkconfig glite-dgas-pushd on
Accounting without glite server
Install
The standalone DGAS client with additional packages can be installed.
- the client location is the batch server to generate users records from the batch logs.
- additional package includes
- the
gianduiacomponents to automatically transform the Accounting logs into the DGAS records - standalone DGAS client to send data to the DGAS server
- the
The necessary grid mapfiles can be obtained automatically with configuration for the gianduia package.
administrator's script: install.sh
#!/bin/sh# install the accounting client without glite CE# on the batch serverrpm -ihv http://mirror.scc.kit.edu/downloads/rpms/accounting/2010.1/atmClient-standalone-1.0.1-1.i386.rpm
rpm -ihv http://mirror.scc.kit.edu/downloads/rpms/accounting/2010.1/gianduia-1.0.3-1.i386.rpm
Configure
The following steps should be done to configure the accounting client:
- The torque
/var/spool/torque/server_priv/accountingdirectory should be exported and mounted by the DGAS client. - The following file should be configured:
- /glite/etc/dgas_atmClient.conf
- /glite/etc/dgas_ce_getAcctLogd.conf (standard configuration, nothing to be changing)
- /glite/etc/dgas_ce_pushd.conf (siteName abbriviation without spaces!)
- /glite/etc/dgas_gianduia.conf (siteName abbriviation without spaces!)
- /glite/etc/dgas_VOUserHLR.conf (standard configuration, nothing to be changing)
- /opt/glite/sbin/glite-urcollector.pl (includes changes into the writeGianduiottoFile function)
- The
/etc/grid-securitydirectory store the following important files: - SPEC Benchmark
- /opt/glite/etc/dgas_gianduia.conf to be registered for its own resources in the Home Location Register
- Register the user into the DGAS database - send the email with DN into the accounting@rvs.uni-hannover.de
- copy the initial DGAS scripts into the
/etc/init.dand configure the activation withchkconfig
administrator's script: configure.sh
#!/bin/sh# configure the accounting client without glite CE# mount /var/spool/torque/server_priv/accounting from batch server# Note: the batch server should export the directory with NFSTORQUE_SERVER=dgiref-batch.fzk.demkdir -p /var/spool/torque/server_priv/accounting
mount -a
#cat /opt/glite/etc/dgas_ce_pushd.conf
#cat /opt/glite/etc/dgas_gianduia.conf
#cat /opt/glite/sbin/glite-urcollector.pl
#cat /opt/glite/etc/dgas_gianduia.conf
# copy to the /etc/init.dcp /opt/glite/sbin/glite-dgas-urcollector /etc/init.d
cp /opt/glite/sbin/glite-dgas-pushd /etc/init.d
# configure chkconfigchkconfig glite-dgas-urcollector on
chkconfig glite-dgas-pushd on