MapReduce Based 運算計價方式

此公式適用於MapReduce、Hive、Pig、Mahout等以MapReduce做為運算引擎之程式

MapReduce工作的Total-CPU-Core-Hour為加總所有map與reduce task的cpu-core-hour。

SU={ireduce(MapDurationi×1core)+jmap(ReduceDurationj×1core)}×1.95 SU = \Bigg\{\sum_{i \in reduce}{(MapDuration_i \times 1core)} + \sum_{j\in map}{(ReduceDuration_j \times 1core)}\Bigg\} \times 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 SU = ( 0.5h \times 1core + 1h \times 1core+ 1.5h \times 1core ) \times 1.95 = 5.85 SU ,故還剩 1000 – 5.85 = 994.15 SU

results matching ""

    No results matching ""