Chapter 13. Managing Charge Rates

Charge Rates establish how much it costs to use your resources. There are four main categories of charge rates: Consumable Resource Charge Rates, Usage Charge Rates, Name-Based Multiplier Rates and Value-Based Multiplier Rates.

By default, job charges are calculated according to the following formula: For each Consumable Resource Charge Type applicable to a given job, a resource charge is calculated by multiplying the amount of the resource used by the amount of time it was used, multiplied by the charge rate for that resource. For each Usage Charge Type applicable to a given job, a usage charge is calculated by multiplying the amount of the resource used by the charge rate for that resource. These resource charges and usage charges are added together. Then, for each Name-Based Charge Rate applicable to the job, a charge factor is looked-up based on the type and name of the charge rate. The sum of the resource charges is multiplied by each of the applicable name-based charge factors. Finally, for each Value-Based Charge Rate applicable to the job, a charge factor is determined by multiplying the multiplier value by its corresponding rate. These value-based charge rates are multiplied against the total job charge.

13.1. Creating ChargeRates

To create a new charge rate, use the command goldsh ChargeRate Create:

goldsh ChargeRate Create Type=<Charge Rate Type> Name=<Charge Rate Name> Rate=<Floating Point Multiplier> [Description=<Description>] [ShowUsage:=True]

Example 13-1. Creating a consumable resource charge rate

$ goldsh ChargeRate Create Type=Resource Name=Processors Rate=1

Successfully created 1 ChargeRate
        

Example 13-2. Creating another consumable resource charge rate

$ goldsh ChargeRate Create Type=Resource Name=Memory Rate=0.001

Successfully created 1 ChargeRate
        

Example 13-3. Creating a usage charge rate

$ goldsh ChargeRate Create Type=Usage Name=Power Rate=0.001

Successfully created 1 ChargeRate
        

Example 13-4. Creating another usage charge rate

$ goldsh ChargeRate Create Type=Usage Name=CpuTime Rate=1

Successfully created 1 ChargeRate
        

Example 13-5. Creating a name-based multiplier rate

$ goldsh ChargeRate Create Type=QualityOfService Name=BottomFeeder Rate=0.5

Successfully created 1 ChargeRate
        

Example 13-6. Creating another name-based multiplier rate

$ goldsh ChargeRate Create Type=QualityOfService Name=Premium Rate=2

Successfully created 1 ChargeRate
        

Example 13-7. Creating a value-based multiplier rate

$ goldsh ChargeRate Create Type=Multiplier Name=Discount Rate=1

Successfully created 1 ChargeRate