In the platform, the approach for allocating the costs of containerized tasks is as follows:
-
The underlying hardware resources that make up your containerized environment are considered as shared assets.
-
The costs of the shared assets are allocated to the containerized tasks that consume them, with the allocation being proportional to consumption.
To allocate cluster costs, create a distribution rule as follows:
-
In the CloudHealth platform, from the left menu, select Setup > Containers > Cost Distribution. Then click New Ruleset.
-
Name and describe the ruleset.
-
Expand the From Perspective dropdown and select the source Perspective from which you want to reallocate costs.
-
In the Rules section, click Add Rule. Select a destination group to which you want to reallocate the source costs.
-
Specify how you want the reallocation to occur. There are three options:
-
CPU utilization: Costs are distributed based on the relative percentage of virtual CPU requested in the destination Group. Use this option for CPU-intensive containers.
-
Memory utilization: Costs are distributed based on the relative percentage of memory requested in the destination Group. Use this option for memory-intensive containers.
-
Custom distribution: Specify the weight of CPU and Memory to use for computing the cost distribution. For example, if you specify CPU as 30 and Memory as 70, for every dollar of cluster cost, $0.30 is distributed by CPU requested and $0.70 is distributed by memory requested.
-
Add more rules and click Save Distribution Ruleset.