Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

agg_bytes = current_bytes + net_bytes

...

Only Isolated network usage is tracked by VR

Usage metering for direct network is done using "Traffic Sentinel"

 Usage metering for Direct Network

Volume

VOLUME.CREATE and VOLUME.DELETE events are tracked here. Every time a VM is created a ROOT volume gets created along with any additional DATA volumes with the selected disk offering. VOLUME.CREATE event is logged when either a volume is created separately or during the process of VM creation. 
 
+----------------------------------------------------------------------------------------------------------------------+
| id | type          | account_id | created             | zone_id | resource_id | resource_name | offering_id | template_id | size       | processed |
+----------------------------------------------------------------------------------------------------------------------+
| 10 | VOLUME.CREATE |          2 | 2011-02-09 11:15:27 |       1 |           5 | ROOT-5        |        NULL |           2 | 8589934592 |         0 |
| 18 | VOLUME.DELETE |          2 | 2011-02-09 12:00:25 |       1 |           5 | ROOT-5        |        NULL |        NULL |       NULL |         0 |
+----------------------------------------------------------------------------------------------------------------------+
 
 

...