Showing posts with label fixed cost. Show all posts
Showing posts with label fixed cost. Show all posts

Wednesday, December 28, 2011

Chargeback 2.0: Cost Template and Fixed Cost

Cost Template serves 2 purposes:
  • Group multiple Fixed Costs so you can apply them as 1 instead of choosing them one by one.
  • Provides adjustment to Base Rate.
Based on the above, Cost Template is optional.

Below is the Fixed Cost screen. I have 3 Fixed Costs below.

Below is the Cost Template screen. I have 2 Cost Template here. The “ABC Corp” cost template has 2x multiplier for CPU and 0.5x multiplier (a discount basically) for Disk Write.

1 Fixed Cost can only be associated to 1 Cost Template. Once a Fixed Cost is assigned to a Cost Template, it will not be available to other Cost Template
Notice from the screenshot below: The only Fixed Cost available is “Fixed Cost: Admin Fee”. The other 2 Fixed Costs are not made available.

In vCenter Chargeback 2.0, there is no more concept of “local” and “global”.
You can also prorate the cost. I have not tested the non prorate to find out whether it charges in advance or in arrear.

You might notice in the Cost Template, I have “Disk Write” only. So where is “Disk Read” or even “Disk Read/Write”?

The answer is “Computing Resources”, under the “Settings” tab.
In this global settings, I have disable them. This is useful in situation where you are not doing complex chargeback, and do not want all these details get shown or accidentally used.

How Chargeback 2.0 calculates cost

I can’t find info on how Chargeback computes cost, so I setup a simple Fixed cost to answer these questions:
  • Does Chargeback prorate? I mean if I setup $24/day and $1/hour, is it the same thing?
    • Answer is Yes. And you can configure this by ticking the Prorate checkbox.
  • When it prorates, if I setup $300/month, does it differ between month with 31 day and month with 28 days?
    • Answer is Yes. Chargeback does not assume a simple 30 day average.
  • If I setup multiple Fixed Cost, does it provide breakdown in the report, since it does not provide breakdown at the Dashboard?
    • Answer is yes.
Part 1 is easy to test. Below is the test of Part 2 and 3.

I setup 2 Fixed Cost as shown below. One is $300/month, the other is $30/month.


I waited for 1+ day, then run a report that use it.
The report cut off is 23:59 hours.
Based on the actual report below, this particular report covers 1+ day. To be precise, it is 1 day 4 hours 38 minutes. This is 28:38 hours.
I ran the report in Dec, which has 31 days.
When I divide $300 / 31 days / 24 hours / 60 minutes, I get the per minute cost.
Multiplying the above per minute cost with 28:38 hours, I got $11.546.

If I use 30 days, I did not get $11.54.