MapReduce Based 運算計價方式
此公式適用於MapReduce、Hive、Pig、Mahout等以MapReduce做為運算引擎之程式
MapReduce工作的Total-CPU-Core-Hour為加總所有map與reduce task的cpu-core-hour。
SU={i∈reduce∑(MapDurationi×1core)+j∈map∑(ReduceDurationj×1core)}×1.95
A計畫購買了1000個SU;某次使用MapReduce運算,此運算產生3個 tasks,包含2個Map Task,分別執行0.5hr、1hr,還有一個 reduce task,執行1.5hr,則還剩多少 SU?
SU=(0.5h×1core+1h×1core+1.5h×1core)×1.95=5.85SU
,故還剩 1000 – 5.85 = 994.15 SU