Cluster Pricing Engine

Purpose

Provides a price for a given configuration.

Function

This service exposes an API that takes parameters selected by the user and processes them to generate a price. If mandatory parameters are missing or invalid, it does not return any value to the callback URL. A default pricing formula is provided, which can be modified by updating the configuration file or replaced entirely for custom pricing.

The pricing service also calls the infrastructure management service to check if the existing infrastructure can handle the new incoming request. If it can, the service continues with the pricing logic; if not, it returns false. By default, the generated pricing is pushed to a central repository with important information obfuscated. Users can opt out of sharing their pricing information.

Alternate Approaches

The pricing engine can be deployed for each Kubernetes cluster to allow clusters to manage their own pricing, making pricing automatically available when a new cluster is added, eliminating the need for a central pricing engine.

Provider

Kandola Committee (source code available in the public domain).

Type

Docker image

Configuration

  • Pricing parameters

  • Pricing formula

  • Cluster API to get config eligibility

Dependencies

  • Docker

  • Docker Compose

  • Infra Manager Service

Last updated