Uploaded image for project: 'Cost Management'
  1. Cost Management
  2. COST-576

Calculating charges with a minimum step

XMLWordPrintable

    • False
    • False
    • COST-16 - Cost model enhancements: support rates based on tags and overall improvements
    • COST-16Cost model enhancements: support rates based on tags and overall improvements
    • subs-cost
    • Undefined

      Goal

      A solution to provide steps in price lists so the calculations are discreet and not continuous

      User stories

      • As a admin, I want to be able to define a minimum step in time and or measurements for the cost model, so that the price becomes discreet.

      Problem

      Many cost models are discreet in nature and a multiple of the measurement unit. For instance, a customer pays an amount for a service by hour, or by KB, not by millisecond or byte.

      Traditionally, cost models in red hat are charged by CPU or socket, not millicores or equivalent, but OCP provides information about CPU usage in millicores. If we want to replicate the price lists for OpenShift online, price lists, we need to be ready to be able to define a minimum step in rates.

      Why is this important

      It allows admins to manage their price models to be closely following real use case examples, without being overly complicated. Without this use case, the customer would not be able to assign prices that make sense in many ways.

      Examples

      Example 1.

      A user define a price per hour per GB of data. Due to the constraints of the storage the minimum data stored is actually 1GB, so a customer using 1B is still consuming 1GB of storage. The price can be defined as $1/GB/hour with a minimum step of 1GB and 1 h.

      A customer then consumes 1450 KB of data during 1 hour and 15 minutes. He is charged 2GB * 2h * $1 /GB /h = $4.

       

       

      Example 2.

      A node is charged $100 per CPU and month per maintenance. A customer has a cluster that is reporting 5.8 CPU. He is charged $600 /month in maintenance.

       

      Example 3.

      A license is granted by node per pair of sockets and per month $100/ pair of sockets/month. The customer creates a cluster with 4 nodes, each one with one socket. The price is $400 /month

       

      Example 4.

      A license is granted by noder per pair of sokects and annually $1000/ pair of sockets / year. The customer creates a cluster with 4 nodes, each one with one socket. The price is $4000

       

      The license is next year assigned  to a cluster of 4 nodes, with two sockets each. The price is still $4000 billed annually

              Unassigned Unassigned
              pgarciaq@redhat.com Pau Garcia Quiles
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

                Created:
                Updated:
                Resolved: