vC Ops Density Ratios Percentage Calculations

Improving-Workplace-Efficiency-One-Lean-Step-at-a-TimeOne out of many vC Ops qualities is its ability to tell how efficient is the virtual environment. Using Super-Metrics I will perform some density ratios percentage based calculations.

Looking at the Efficiency column in vC Ops at the cluster (and also at the World/VC/Datacenter/Host/VM/Datastore) level you will get data on reclaimable compute and storage resources (waste), you will also get data on density ratios (not on the VM/Datastore level) which I will be focusing on in this post.

The use case

One of my customers is using vC Ops to manage its vCloud resources clusters (Alen Renouf wroth a useful post on how to install the vC Ops vCloud Adapter in vC Ops) and wanted me to show him how can he manage the environment in a more efficient manner. As expected, because of the high over-provisioning ratios come in a cloud environment his resources clusters were not efficient at all.

vC Ops Efficiency badge score was 20, a lot of waste and density ratios were far from optimal – you get the point, not a very good cluster resource management.

Ratios are nice and important but I want to take it one step further and show density ratios numbers in percentage based. This way one can say for example “My cluster VM to Host ratio is 40% efficient”.

Ratios

In order to create the percentage Super-Metrics I will use the combination of selecting vC Ops Resources which will be a Cluster on the left column and the appropriate Attribute Kind selected in the right column.

The Super Metrics

To get all the data we need we will create 3 Super-Metrics while leveraging the Density|Ratio and Density|Ratio Optimal Cluster Attribute Kinds.

Cluster VM-To-Host Density Optimization in %

(sum($This Resource:Density|Ratio|VM to Host)/sum($This Resource:Density|Ratio Optimal|VM to Host))*100
Density|Ratio|VM to Host = Resources > Cluster Compute Resource > Attribute Kinds: Density > Ratio > VM to Host
Density|Ratio Optimal|VM to Host = Resources > Cluster Compute Resource > Attribute Kinds: Density > Ratio Optimal > VM to Host

VM-To-Host SM - Copy

Clusters vCPU-To-pCPU Density Optimization in %

(sum($This Resource:Density|Ratio|vCPU to pCPU)/sum($This Resource:Density|Ratio Optimal|vCPU to pCPU))*100
Density|Ratio|vCPU to pCPU = Resources > Cluster Compute Resource > Attribute Kinds: Density > Ratio > vCPU to pCPU
Density|Ratio Optimal|vCPU to pCPU = Resources > Cluster Compute Resource > Attribute Kinds: Density > Ratio Optimal > vCPU to pCPU

vCPU-To-pCPU SM

Clusters vMem-To-pMem Density Optimization in %

(sum($This Resource:Density|Ratio|vMemory to pMemory)/sum($This Resource:Density|Ratio Optimal|vMemory to pMemory))*100
Density|Ratio|vMemory to pMemory = Resources > Cluster Compute Resource > Attribute Kinds: Density > Ratio > vMemory to pMemory
Density|Ratio Optimal|vMemory to pMemory = Resources > Cluster Compute Resource > Attribute Kinds: Density > Ratio Optimal > vMemory to pMemory

vMEM-to-pMEM SM

So now after creating the Super-Metrics you can use them in your custom dashboards. If you want to know how to work with widgets XML interactions you can check out my “1-Click Capacity Planning vCOps Dashboard – Part 2” post or my good friend Sunny Due from vXpress which started blog post series around the subject as well.

In order to show the result, I’ve chosen to use the “Generic Scoreboard” widget.

Scoreboard

2 Comments

  1. Hi,
    Great post – thank you!
    Would you mind explaining what the difference between choosing Resources vs Resource Kind?

Leave a Reply