~0x44/nova/bug838466

  • Committer: Tarmac
  • Author(s): Vishvananda Ishaya, Anthony Young
  • Date: 2011-09-01 00:16:34 UTC
  • mfrom: (1468.3.13 os-simple-usage)
  • Revision ID: tarmac-20110901001634-bb3whyoipqxc60k5
Simple usage extension for nova.  Uses db to calculate tenant_usage for specified time periods.

Methods:
    * index: return a list of tenant_usages, with option of incuding detailed server_usage
    * show: returns a specific tenant_usage object

tenant_usage object:
    * tenant_usage.total_memory_mb_usage: sum of memory_mb * hours for all instances in tenant for this period
    * tenant_usage.total_local_gb_usage: sum of local_gb * hours for all instances in tenant for this period
    * tenant_usage.total_vcpus_usage: sum of vcpus * hours for all instances in tenant for this period
    * tenant_usage.total_hours: sum of all instance hours for this period
    * tenant_usage.server_usages: A detailed list of server_usages, which describe the usage of a specific server

For larger instances db tables, indexes on instance.launched_at and instance.terminated_at should significantly help performance.
Filename Latest Rev Last Changed Committer Comment Size
..
bin 1 14 years ago Jesse Andrews initial commit Diff
bzrplugins 254.1.1 14 years ago Soren Hansen Better log formatter for Nova. It's just like gnuc Diff
contrib 386.2.26 13 years ago Todd Willey Nova quickstart: move vish's novascript into contr Diff
doc 157.3.1 14 years ago Monty Taylor Updated sphinx layout to a two-dir layout like swi Diff
etc 469.7.1 13 years ago Todd Willey Use paste.deploy for running the api server. Diff
nova 1 14 years ago Jesse Andrews initial commit Diff
plugins 145.3.2 14 years ago Ewan Mellor Move the xenapi top level directory under plugins, Diff
po 645.3.1 13 years ago jaypipes at gmail Merge Distutils.Extra changes for automating trans Diff
smoketests 139 14 years ago Soren Hansen Merge with -core's diverged trunk. Diff
tools 139 14 years ago Soren Hansen Merge with -core's diverged trunk. Diff
.bzrignore 1168.8.19 13 years ago Lvov Maxim merge with trunk, resolve conflicts 218 bytes Diff Download File
.gitignore 182 14 years ago Tarmac Got the tree set for debian packaging. 125 bytes Diff Download File
.mailmap 1388.4.6 13 years ago Jake Dahn adding other emails to mailmap 2.6 KB Diff Download File
Authors 1279.3.44 13 years ago vladimir.p merged with rev.1499 4.3 KB Diff Download File
File builddeb.sh 139 14 years ago Soren Hansen Merge with -core's diverged trunk. 787 bytes Diff Download File
HACKING 1343.2.12 13 years ago Brian Waldon typo 4.5 KB Diff Download File
LICENSE 1 14 years ago Jesse Andrews initial commit 9.9 KB Diff Download File
MANIFEST.in 1401.1.1 13 years ago Thierry Carrez Include missing nova/api/openstack/schemas 1.4 KB Diff Download File
pylintrc 815.6.3 13 years ago Justin Santa Barbara Don't warn about C0111 (No docstrings) While docs 1.2 KB Diff Download File
README 468.2.2 13 years ago Anne Gentle Minor spellchecking fixes 837 bytes Diff Download File
run_tests.py 1443.3.40 13 years ago Brian Lamar Another attempt at fixing hanging test. 12.6 KB Diff Download File
File run_tests.sh 1499.3.1 13 years ago Ewan Mellor Bug #835952: pep8 failures do not cause the tests 4.2 KB Diff Download File
setup.cfg 1198.1.5 13 years ago Brian Lamar Cleanup of the cleanup. 372 bytes Diff Download File
setup.py 1413 13 years ago Tarmac These fixes are the result of trolling the pylint 4.5 KB Diff Download File