Check accounting periodic procedures

Periodically, the accounting system runs these procedures.

  • UpdateAccounting processes the data in the accounting master tables to consolidate the resource usage in the accounting_event_detail table.

  • DeleteOldRegisteredEvents deletes data in the accounting master tables older than the DeleteRegEventsDeleteHours accounting parameter (by default, 26280 hours, which is 3 years)

These procedures are configured in the /etc/cron.d/abiquo-accounting cron job.

To view the cron job configuration for the accounting procedures, run the command:

cat /etc/cron.d/abiquo-accounting

Here is a sample output from the command

# Runs every hour 0 * * * * root mysql -uroot -hlocalhost -e "CALL kinton.UpdateAccounting();" # Runs every Sunday at 12:00 and deletes records older than a week. 0 12 * * 0 root mysql -uroot -hlocalhost -e "CALL kinton.DeleteOldRegisteredEvents(168);"

DeleteOldRegisteredEvents does not use its legacy parameter to set the maximum record age by default.

Copyright © 2006-2024, Abiquo Holdings SL. All rights reserved