Table of Contents |
---|
In all versions, Abiquo metrics usage system: abiquo-metrics-usage-system
Info |
---|
Borrador - confluence page is broken |
All versions
This page describes the standard cron jobs that run on Abiquo servers |
Abiquo 6.
...
1.x
This section describes three scenarios for the introduction of new Abiquo billing.
With new on-premise billing running in production
Periodic process | Server | How is it |
---|
configured? | Default |
---|
schedule | Default run | |||
---|---|---|---|---|
Metrics usage system | API |
|
| Mondays and Fridays at |
On-premise billing | API |
|
| Every night |
Public cloud billing | API |
|
Cron expression to run the consolidation of usage and cost from private cloud and public cloud providers.
If the cron expression is not compatible with Quartz, the platform will use the default.
property |
| Every night | ||
Pricing check | API |
|
| At |
Accounting process | DB |
|
| Every hour |
Accounting cleanup | DB |
|
| Sundays at |
Tags | API |
|
| Every four hours from |
Reporting cleanup | DB |
|
| Hourly |
When new billing and old billing are both running to test new billing
...
Periodic process | Server | How is it configured? | Default schedule | Default run |
---|---|---|---|---|
Metrics usage system | API |
|
| Mondays and Fridays at |
On-premise billing | API |
|
| Nightly |
Public cloud billing | API |
|
| Nightly |
Pricing check | API |
|
Cron expression to run the periodic checks of price factor bill type and products.
0 0 0 1 * *
abiquo.tagging.synccheckcron
property |
| At 0:00 on 1st day of month | ||
Accounting process | DB |
|
| Hourly |
Accounting cleanup | DB |
|
| Sundays at |
Tags | API |
|
|
Abiquo accounting
Every four hours from | ||
Reporting cleanup | DB |
|
...
Code Block |
---|
# Runs every hour
0 * * * * root mysql -uADMUSER -pADMPASS -hlocalhost -e "CALL kinton.UpdateAccounting();"
# Runs every Sunday at 12:00 and deletes records older than a week.
0 12 * * 0 root mysql -uADMUSER -pADMPASS -hlocalhost -e "CALL kinton.DeleteOldRegisteredEvents(168);" |
Old push Abiquo private billing data for dashboard
For old billing (before the entry of new billing in 6.1 or before the activation of new billing).
...
|
| Hourly | ||
Old billing | Reporting |
|
| Hourly |
Old billing enterprise mapping | DB |
|
| Nightly at |
After upgrade to 6.1.x and before you activate new on-premise billing
In Abiquo 6.1, we introduced the new on-premise billing, which uses the same property as public cloud billing to configure its cron job. We also introduced the new price factors, which have a cron check.
Info |
---|
If you are using old billing, you should disable new billing in Configuration view as part of the upgrade process. |
Periodic process | Server | How is it configured? | Default schedule | Default run |
---|---|---|---|---|
Metrics usage system | API |
|
...
Old Abiquo billing integration
...
|
| Mondays and Fridays at | ||
On-premise billing | API |
|
| Nightly |
Public cloud billing | API |
|
| Nightly |
Price factor check | API |
|
| At 0:00 on 1st day of month |
Accounting process | DB |
|
...
Code Block |
---|
0 1 * * * root cd /opt/abiquo-billing; /bin/bash /opt/abiquo-billing/billing.sh 2>&1 | tee --append /var/log/billing.log |
Note that there is also a cron command to update the enterprise mapping, which maybe in teh file: abiquo-billing-mapping
. File content is:
10 0 * * * root mysql --host specifythedbhost --user root --password yourpass --execute "INSERT IGNORE INTO kinton.billing_account_mapping (idAbiquo, idMappingType, billingAttributeName, billingAttributeValue) (SELECT idEnterprise, 1, 'ENTERPRISE', e.name FROM kinton.enterprise e);"
Notes from the billing comparison page
Before you enable on-premise billing, stop the
abiquo-private-billing
cron jobTo configure the cron job that runs on-premise billing use the Abiquo property.
When you transition to on-premise billing, you can stop the old
abiquo-billing
cron job
Abiquo reporting
To periodically remove temporary tables from the DB, add the following cron job on the reporting or database server.
Code Block |
---|
0 1 * * * root mysql -ureporter -preporter -e "CALL kinton_reporting.TruncateRLSTables ();" |
Abiquo 6.0
Properties
In Abiquo 6.0, this
abiquo.billing.task.cron
Cron expression to run the consolidation of usage and cost from public cloud providers.
If the cron expression is not compatible with Quartz, the platform will use the default.
To generate valid expressions, you can use this tool: https://www.freeformatter.com/cron-expression-generator-quartz.html . Some other commonly used tools may generate invalid expressions.
|
| Hourly | ||
Accounting cleanup | DB |
|
| Sundays at |
Tags | API |
|
| Every four hours from |
Reporting cleanup | DB |
|
| Hourly |
Old billing | Reporting |
|
| Hourly |
Old billing enterprise mapping | DB |
|
| Nightly at |
Private billing dashboard | Reporting |
| Nightly |
Abiquo 6.0.x
Abiquo 6.0.x uses the old billing processes and has an optional process to push private billing to the dashboard.
Periodic process | Server | How is it configured? | Default schedule | Default run |
---|---|---|---|---|
Metrics usage system | API |
|
| Mondays and Fridays at |
Public cloud billing | API |
|
| Nightly |
Accounting process | DB |
|
| Hourly |
Accounting cleanup | DB |
|
| Sundays at |
Tags | API |
|
| |
Reporting cleanup | DB |
|
| Hourly |
Old billing | Reporting |
|
| Hourly |
Old billing enterprise mapping | DB |
|
| Nightly at |
Private billing dashboard | Reporting |
| Nightly |