Managed Service for Apache Spark 价格

Compute Engine 上的 Managed Service for Apache Spark 价格

Compute Engine 上的 Managed Service for Apache Spark 的价格取决于 Managed Service for Apache Spark 集群的大小和运行时间。集群的大小由整个集群中的虚拟 CPU (vCPU) 总数(包括主节点和工作器节点)决定。集群的运行时长是指集群从创建到停止或删除之间的时间跨度。

Dataproc 价格公式为:$0.010 * # of vCPUs * hourly duration

尽管价格公式以每小时费率表示,但 Managed Service for Apache Spark 以秒为单位计费,所有 Managed Service for Apache Spark 集群都以时钟上的一秒为增量来计费,最低计费时间为 1 分钟。用量在结算时会折算为小时数(例如,30 分钟折算为 0.5 小时),以便对按秒计算的用量应用小时定价。

对于每台虚拟机而言,其价格是 Managed Service for Apache Spark 价格与 Compute Engine 单实例价格之和(请参阅使用其他 Google Cloud 资源)。

累计费用

以下 Managed Service for Apache Spark 操作和场景会产生费用:

  • 扩缩自动扩缩:虚拟机添加到集群中时,只要虚拟机处于活跃状态,就会产生费用。这些累积费用会一直产生,直到虚拟机被移除。

  • 处于错误状态的集群:当 Managed Service for Apache Spark 集群处于错误状态时,集群虚拟机仍处于活跃状态,并且会继续产生费用。 这些累计费用会一直产生,直到集群被删除。

价格示例

例如,假设某个集群(具有主节点和工作器节点)采用以下配置:

计费项 机器类型 虚拟 CPU 数 挂接的永久性磁盘 在集群中的数量
主节点 n1-standard-4 4 500 GB 1
工作器节点 n1-standard-4 4 500 GB 5

此 Managed Service for Apache Spark 集群有 24 个虚拟 CPU,其中 4 个用于主节点,20 个分散在工作器节点上。在计费时,Managed Service for Apache Spark 会根据这 24 个虚拟 CPU 以及此集群运行的时长来确定此集群的价格(假设没有节点被缩减或被抢占)。如果集群运行了 2 个小时,则 Managed Service for Apache Spark 价格将通过以下公式计算:

Managed Service for Apache Spark charge = # of vCPUs * hours * Managed Service for Apache Spark price = 24 * 2 * $0.01 = $0.48

在此示例中,除了 Managed Service for Apache Spark 费用外,该集群还将产生 Compute Engine 费用和标准永久性磁盘预配空间费用(请参阅使用其他 Google Cloud 资源)。 您可以使用账单计算器来确定单独的 Google Cloud 资源费用。

使用其他 Google Cloud 资源

Managed Service for Apache Spark 是一款托管式集成解决方案,以其他 Google Cloud 技术为基础构建而成。Managed Service for Apache Spark 集群会使用以下资源,每项资源均按各自的价格收费:

Managed Service for Apache Spark 集群可以选择使用以下资源(均按各自的价格收费),包括但不限于:

GKE 上的 Managed Service for Apache Spark 价格

本部分介绍仅适用于在用户管理的 GKE 上运行的虚拟 Managed Service for Apache Spark 集群的费用。请参阅 GKE 价格,了解适用于用户管理的 GKE 集群的额外费用。

GKE 上的 Managed Service for Apache Spark 的价格计算公式 $0.010 * # of vCPUs * hourly durationCompute Engine 上的 Managed Service for Apache Spark 的价格计算公式相同,适用于集群中由 Managed Service for Apache Spark 创建的节点池内虚拟机实例中运行的虚拟 CPU 总数。虚拟机实例的持续时间是指从创建到删除的时间长度。与 Compute Engine 上的 Managed Service for Apache Spark 一样,GKE 上的 Managed Service for Apache Spark 也按秒计费,但每个虚拟机实例的最低计费时间为 1 分钟。除了 Managed Service for Apache Spark 费用外,还会收取其他 Google Cloud 费用

Managed Service for Apache Spark 创建的节点池在删除 Managed Service for Apache Spark 集群后仍会存在,因为它们可能会被多个集群共享。如果您删除节点池将节点池缩减到零个实例,则不会继续产生 Managed Service for Apache Spark 费用。在您删除剩余节点池虚拟机之前,这些虚拟机将继续产生费用。

Managed Service for Apache Spark 价格

请参阅 Managed Service for Apache Spark 价格

后续步骤

申请定制报价

Google Cloud 采用随用随付的价格模式,您只需为实际使用的服务付费。请与我们的销售团队联系,获取为贵组织量身定制的报价。
联系销售团队