488 | | |
489 | | = Configuring BAT accounting cron job = |
490 | | **TODO** |
| 488 | = Configuring BAT Updater = |
| 489 | == Installation == |
| 490 | * install BAT from RPM |
| 491 | {{{ |
| 492 | yum install qcg-bat-updater |
| 493 | }}} |
| 494 | == Configuration == |
| 495 | |
| 496 | == Further info == |
| 497 | Usage records are sent to the main BAT server (BAT Broker) every hour by the QCG BAT Updater (acting as BAT agent). The QCG BAT Updater is started every hour via a cron job (installed in `/etc/cron.hourly/qcg-bat-updater.cron`). The QCG BAT Updater is a Java batch application that on every run: |
| 498 | * reads jobs accounting information from the QCG-Computing database |
| 499 | * converts it to proper XML format |
| 500 | * sends it over ActiveMQ channel to BAT-Broker |
| 501 | * stores id of the last record sent to file `/opt/plgrid/var/run/qcg-bat-updater/last.id`. |
| 502 | The Updater logs can be found in `/opt/plgrid/var/log/qcg-bat-updater/qcg-bat-updater.log`. |
| 503 | |
| 504 | |