【问题标题】:How to calculate the cost of a Google dataflow?如何计算 Google 数据流的成本?
【发布时间】:2016-04-19 20:04:19
【问题描述】:

我的公司正在评估我们是否可以使用 Google Dataflow。

我在 Google Cloud Platform 上运行了一个数据流。控制台在右侧的“Reserved CPU Time”字段中显示 5 小时 25 分钟。

工作器配置:n1-standard-4

启动 8 个工人...

如何计算数据流的成本?根据this page 价格是每 GCEU 每小时 0.01 美元,我如何找到我的数据流消耗的 GCEU 数量以及小时数?

【问题讨论】:

    标签: google-compute-engine google-cloud-dataflow


    【解决方案1】:

    您可以在此处找到每台机器的 GCEU 数量:https://cloud.google.com/compute/docs/machine-types。例如,n1-standard-4s 是 11 个 GCEU。

    然后,批处理 Dataflow 作业的成本(除了 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 每台机器 -小时。

    【讨论】:

    • 谢谢,您能否扩展您的方程式并包括计算虚拟机的原始成本以产生总成本?我需要数据流的总成本。
    • 自 2018 年 5 月 3 日起,Dataflow 采用了新的定价模式。请参阅下面的帖子。
    【解决方案2】:

    自 2018 年 5 月 3 日起有new pricing model for Dataflow

    现在你应该使用以下公式:

    (vcpu_hours * vcpu_hourly_price) +
    (mem_hours  * mem_hourly_price) +
    (disk_hours * disk_hourly_price)
    

    随机播放可能会产生额外费用。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2018-12-08
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多