cloud-pipeline
cloud-pipeline copied to clipboard
Autoscaled cluster costs
Background
At the moment, Cloud Pipeline allow to view a price estimation for the single instance jobs and static clusters.
But the auto-scaled clusters do not provide such information. Users see a price only for a master node.
This feature shall be added, as the auto-scaled clusters are used at most.
Approach
- Compute the estimated price for all the cluster (including static and auto-scaled) in the backend
- Price is computed based on all the
RUNNINGinstances, which are children of the particular master. Plus the mater's price (note: worker nodes can be of different instance size than a master) - This information shall be stored in the master
run - Estimated price shall be updated on a scheduled basis (default: 30 seconds)
- GUI shall use this new
run's attribute to display estimated cost for the cluster (for thestaticas well)
@rodichenko a new field workersPrice added to pipeline run output object. This value indicates the total price for all cluster workers.
@sidoruka @mzueva @ekazachkova GUI part implemented (#2212)
@sidoruka @mzueva backported to release/0.16 (79dfa1535c2c51263d805e18205ab2254172a35e)
Docs were added via #3228 and located here.