...
In all versions, Abiquo metrics usage system: abiquo-metrics-usage-system /wiki/spaces/SUP/pages/509804549
Abiquo 6.2
TODO
Abiquo 6.1
...
With new Abiquo billing running in production
Periodic process | Server | How is it |
---|
configured? | Default schedule | Default run |
---|
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 |
|
Cron expression to run the periodic checks of price factor bill type and products.
property |
|
abiquo.tagging.synccheckcron
Cron expression to run the periodic tag synchronization by enterprise. If the cron expression is not compatible with Quartz, the platform will use the default.
0 0 */4 ? * *
Abiquo accounting
...
Accounting process | DB |
|
| Every hour |
Accounting 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).
...
file |
| Every Sunday at | ||
Tags | API |
|
| |
Reporting cleanup | DB |
|
|
When new billing and old billing are both running to test new billing
Periodic process | Server | How is it configured? | Default schedule | Default run |
---|---|---|---|---|
On-premise billing | API |
|
| Nightly |
Public cloud billing | API |
|
| Nightly |
Pricing check | API |
|
| |
Accounting process | DB |
|
...
Old Abiquo billing integration
...
|
| Hourly |
Accounting cleanup | 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
...
|
| Sundays at | ||
Tags | API |
|
| |
Reporting cleanup | DB |
|
| Hourly |
Old billing | Reporting |
|
| Hourly |
Old billing enterprise mapping | DB |
|
| Nightly at |
After upgrade to 6.1.x and before you activate new 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 |
---|---|---|---|---|
On-premise billing | API |
|
| Nightly |
Public cloud billing | API |
|
| Nightly |
Price factor check | API |
|
| |
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 |
|
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 |
---|---|---|---|---|
Public cloud billing | API |
|
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.
property |
| 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 |
|