cloud-pipeline icon indicating copy to clipboard operation
cloud-pipeline copied to clipboard

Include Lustre costs into run price info

Open ekazachkova opened this issue 8 months ago • 0 comments

Background At the moment, Cloud Pipeline does not respect Lustre costs for run price calculations and it would be nice to support it.

Approach Currently, run object provides the following information about prices:

  • computePricePerHour - virtual machine price per hour
  • diskPricePerHour - instance disk gigabyte price per hour
  • pricePerHour - overall run price per hour: computePricePerHour + <disk size GB> * diskPricePerHour

To support run filesystem costs a new run field shall be added:

  • fsPricePerHour - filesystem price per hour taking into account its current capacity. This value shall be updated as per as the file system capacity is updated.

This price shall be included into pricePerHour value. This way, a new total run price per hour shall be re-calculated as:

computePricePerHour + <disk size GB> * diskPricePerHour + fsPricePerHour

fsPricePerHour shall also be updated as per as the run's file system capacity is updated.

ekazachkova avatar Feb 07 '25 13:02 ekazachkova