summaryrefslogtreecommitdiffstats
path: root/bin/stack
diff options
context:
space:
mode:
authorAnthony Young <sleepsonthefloor@gmail.com>2011-08-22 14:08:03 -0700
committerAnthony Young <sleepsonthefloor@gmail.com>2011-08-22 14:08:03 -0700
commit7726b3d763a136347f2324e630f0a3cdc60a045b (patch)
tree000dd66ef63d1dcacd03a7cfa8c734dc8fd71740 /bin/stack
parent7924fb7899b02d3cb7420c916e035094d5c90194 (diff)
downloadnova-7726b3d763a136347f2324e630f0a3cdc60a045b.tar.gz
nova-7726b3d763a136347f2324e630f0a3cdc60a045b.tar.xz
nova-7726b3d763a136347f2324e630f0a3cdc60a045b.zip
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.
Diffstat (limited to 'bin/stack')
0 files changed, 0 insertions, 0 deletions