我的公司正在评估我们是否可以使用Google数据流。
我在Google Cloud Platform上运行了数据流。控制台在右侧的“预留CPU时间”字段中显示5小时25分钟。
工作人员配置:n1-standard-4
开始8名工人......
如何计算数据流的成本?根据{{3}} 价格是每小时每GCEU 0.01美元,我怎样才能找到我的数据流消耗的GCEU数量和小时数?
答案 0 :(得分:11)
您可以在此处找到每台机器的GCEU数量:https://cloud.google.com/compute/docs/machine-types。例如,n1-standard-4s是11个GCEU。
批量数据流作业的成本(除了VM的原始成本之外)是
(Reserved CPU time in hours) / (Cores per machine) * (GCEUs) * $.01
然后,工作的总成本是
(machine hours) * ((GCEUs) * $.01 + (machine cost per hour) + (PD cost per hour for attached disks))
例如,对于带有250GB磁盘的n1-standard-4,这可以达到(11 * $ .01 + $ .152 +($ .04 * 250/30 / 24))=每台机器$ .276-小时。
答案 1 :(得分:0)
自2018-05-03以来有new pricing model for Dataflow。
现在你应该使用以下公式:
(vcpu_hours * vcpu_hourly_price) +
(mem_hours * mem_hourly_price) +
(disk_hours * disk_hourly_price)
Shuffle的额外费用可能适用。