---
title: "Web Service 区域、套餐升级、自动扩缩容与计费指南"
description: "了解 Darwa Web Service 的主区域、区域分片、套餐升级按比例计费、自动扩缩容、自动部署及付款失败恢复流程。"
canonical: "https://darwa-front.darwa.co/blog/zh/web-service-quyu-kuorong-jifei-zhinan"
language: "zh-Hans"
category: "平台指南"
tags: ["web service", "多区域", "自动扩缩容", "云计费"]
author: "Darwa Engineering"
published: "2026-08-31T08:58:00Z"
updated: "2026-09-04T12:41:19.400329Z"
reading_time_minutes: 1
translations:
  ar: "https://darwa-front.darwa.co/blog/ar/dalil-manatiq-web-service-tawassu-fawtara"
  de: "https://darwa-front.darwa.co/blog/de/web-service-regionen-autoscaling-abrechnung"
  en: "https://darwa-front.darwa.co/blog/en/web-service-regions-plan-upgrades-autoscaling-billing"
  es: "https://darwa-front.darwa.co/blog/es/regiones-web-escalado-facturacion-darwa"
  fr: "https://darwa-front.darwa.co/blog/fr/regions-web-service-autoscaling-facturation"
  hi: "https://darwa-front.darwa.co/blog/hi/web-service-region-autoscaling-billing-guide"
  ja: "https://darwa-front.darwa.co/blog/ja/web-service-region-autoscaling-billing-guide-ja"
  pt: "https://darwa-front.darwa.co/blog/pt/regioes-web-service-autoscaling-faturamento"
  ru: "https://darwa-front.darwa.co/blog/ru/regiony-web-service-avtomasshtabirovanie-oplata"
---
# Web Service 区域、套餐升级、自动扩缩容与计费指南

了解 Darwa 主区域、区域分片、Git 自动部署、按剩余周期计费的套餐升级、自动扩缩容和欠费恢复。

## 主区域只选择一次

创建 Darwa Web Service 时，需要从 Virginia、São Paulo、Frankfurt、Cape Town、Mumbai 和 Sydney 六个活动区域中选择一个主区域。创建后主区域会锁定，因为它关联服务身份、私有网络与数据位置假设。Settings 因此只读显示主区域，避免一次下拉选择造成不安全迁移。

## 需要新位置时添加区域分片

在 **Settings → Regional traffic** 中添加 shard，而不是移动主服务。区域分片是使用相同套餐与代码源的完整付费 runtime，并拥有独立 endpoint，可用于受控路由或故障切换。Darwa 不会暗中改变主 URL。持久磁盘不能跨区域共享，因此带磁盘的服务应先迁移到外部持久存储。

## 同一个 Git 版本部署到全部区域

连接仓库后自动部署默认开启，也可以在 Deploy 设置中关闭。向跟踪分支 push 时，主区域和所有已购买分片都会排队部署同一个 revision。每个区域独立通过 health check 后才显示为 live。需要人工审批时，请关闭 auto-deploy 并手动发布。

## 套餐升级只收剩余周期差价

Settings 只展示高于当前套餐的选项，并同时升级所有已连接区域。确认前会显示原月费、新月费、已使用小时、剩余小时和立即应付估算。已过去的时间会被扣除，Stripe 仅立即开具本周期剩余时间的差价账单；续费时才使用新的完整月费。

## 自动扩缩容、Autopilot 与欠费

水平自动扩缩容在最小与最大副本数之间调整实例，每个运行副本单独计费。Capacity Autopilot 只有在明确同意后，才会因持续压力临时提升套餐容量；压力下降即停止计费，并受 72 小时和消费上限约束。开启策略本身不收费。付款失败后有 7 天宽限期，随后暂停服务，再保留 14 天供付款恢复，之后才删除资源。
