[an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] Managing Charge Rates
Gold User's Guide
<<< Previous Next >>>

Managing Charge Rates

Charge Rates establish how much to charge for usage. There are nine main types of charge rates: Value Based Resources, Name Based Resources, Value Based Usage, Name Based Usage, Value Based Multipliers, Name Based Multipliers, Value Based Fees, Name Based Fees and Multi-dimensional Value Based Resources.

By default, job charges are calculated according to the following formula: For each Value Based Resource Charge Rate applicable to a given job, a value-based 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 Name Based Resource Charge Rate applicable to a given job, a name-based resource charge is calculated by multiplying the charge rate for that named resource by the amount of time it was used. For each Value Based Usage Charge Type applicable to a given job, a value-based usage charge is calculated by multiplying the amount of the usage by the charge rate for that usage. For each Name Based Usage Charge Type applicable to a given job, a name-based usage charge is given by the charge rate for that usage. For each Multi-dimensional Value Based Resource Charge Rate applicable to a given job, a value-based 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. These value-based, name-based and multi-dimensional value-based resource charges and the value-based and name-based usage charges are added together. Then, for each Value Based Multiplier Charge Rate applicable to the job, a value-based multiplier is calculated by multiplying the amount of the multiplier by the charge rate for that multipler. For each Name Based Multiplier Charge Rate applicable to the job, a name-based multiplier is given by charge rate for that multipler. The sum of the resource and usage charges is then multiplied by each of the applicable value-based and name-based multipliers. Next, for each Value Based Fee Charge Type applicable to a given job, a value-based fee charge is calculated by multiplying the amount of the fee by the charge rate for that fee. For each Name Based Fee Charge Type applicable to a given job, a name-based fee charge is given by the charge rate for that fee. Finally, these value-based and name-based fee charges are to the total job charge.

In short, the formula can be represented by (((((Σ(VBR*value)+Σ(NBR)+Σ(MVBR*value))*wall_duration)+(Σ(VBU*value)+Σ(NBU))) *Π(VBM*value)*Π(NBM))+(Σ(VBF*value)+Σ(NBF))).

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> [Instance=<Floating Point Multiplier>] Rate=<Floating Point Multiplier> [Description=<Description>] [ShowUsage:=True]

Example 1. Creating a couple of value-based resource charge rates

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

Successfully created 1 ChargeRate
$ goldsh ChargeRate Create Type=VBR Name=Processors Rate=0.001

Successfully created 1 ChargeRate

Example 2. Creating a name-based resource charge rate

$ goldsh ChargeRate Create Type=NBR Name=License Instance=Matlab Rate=5

Successfully created 1 ChargeRate

Example 3. Creating a couple of value-based usage charge rates

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

Successfully created 1 ChargeRate
$ goldsh ChargeRate Create Type=VBU Name=CpuTime Rate=1

Successfully created 1 ChargeRate

Example 4. Creating a name-based usage charge rate

$ goldsh ChargeRate Create Type=NBU Name=Feature Instance=GPU Rate=200

Successfully created 1 ChargeRate

Example 5. Creating a value-based multiplier charge rate

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

Successfully created 1 ChargeRate

Example 6. Creating a couple of name-based multiplier charge rates

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

Successfully created 1 ChargeRate
$ goldsh ChargeRate Create Type=NBM Name=QualityOfService Instance=BottomFeeder Rate=0.5

Successfully created 1 ChargeRate

Example 7. Creating a value-based fee charge rate

$ goldsh ChargeRate Create Type=VBF Name=Shipping Rate=25

Successfully created 1 ChargeRate

Example 8. Creating a name-based fee charge rate

$ goldsh ChargeRate Create Type=NBF Name=Zone Instance=Asia Rate=200

Successfully created 1 ChargeRate

Example 9. Creating a couple of multi-dimensional value-based resource charge rates

$ goldsh ChargeRate Create Type=Disk Name=User Instance=dave Rate=0.02

Successfully created 1 ChargeRate
$ goldsh ChargeRate Create Type=Disk Name=User Instance=michael Rate=0.05

Successfully created 1 ChargeRate

<<< Previous Home Next >>>
Issuing Job Refunds Querying ChargeRates
[an error occurred while processing this directive] [an error occurred while processing this directive]