Jump to: navigation, search

Operation

After Provisioning the location and tenant, you must schedule the Billing Data Server (BDS) execution for configuring BDS for deployment.

Scheduling

You can either schedule BDS execution through cron or start BDS from this command line on the docker host:

$ ./cloudbilling-prem.sh process

Enabling / disabling processing

You can control processing at multiple levels:

  • Tenant: Disabling the tenant completely disables all processing for this tenant. Enabling the tenant allows processing for any enabled regions.
  • Region: Disabling the region (for the tenant) disables all processing for this region. Enabling the region allows processing for any enabled locations.
  • Location: Enabling / disabling the location (for the tenant) controls processing for this location.
  • Metric: Enabling / disabling a metric (for the tenant) controls processing for this metric across all locations.

The following examples show actions that can be run after launching BDS in config mode ($./cloudbilling-prem.sh config).

Enable a tenant:

brsctl.py tenant -t tenant_name -on

Disable a region:

brsctl.py region -t tenant_name -off region_name

Enable a location for all tenants:

brsctl.py location -ta -on location_name

Disable a metric for all tenants:

brsctl.py metric -ta -m metric_name -off

Enable all metrics for a tenant:

brsctl.py metric -t tenant_name -ma -on

Reprocessing earlier data

You can reprocess earlier data, starting from a specified date. This is controlled by the three watermark dates.

To see the current values of the watermark dates:

brsctl.py tenant -t tenant_name -ed -td -ld

To complete the entire reprocessing cycle for a given tenant, reset the extract watermark:

brsctl.py tenant -t tenant_name -ed 2015-09-02

Important
If the source data for the specified date is no longer available, processing will terminate with an error.

To retransform the previously extracted data and upload the results, reset the transform watermark:

brsctl.py tenant -t tenant_name -td 2015-09-02

Important
If the transform watermark is set to a date later than the extract watermark, processing will terminate with an error.

After completing provisioning and operation, you can Launch BDS.

Feedback

Comment on this article:

blog comments powered by Disqus
This page was last modified on 27 June 2018, at 13:16.