项目暂停
Supabase 会暂停在 7 天内活动较少的免费计划项目,以节省服务器资源。本指南解释了暂停是如何工作的、如何恢复已暂停的项目,以及如何完全避免被暂停。
🌐 Supabase pauses Free Plan projects that show low activity over a 7-day period to save server resources. This guide explains how pausing works, how to restore a paused project, and how to avoid pausing altogether.
付费计划下的项目无法暂停,也不会因不活跃而自动暂停。要暂停当前在付费计划下的项目,首先需要将项目转移到免费的组织中。
🌐 Projects under a paid plan cannot be paused and are not subject to automatic pausing for inactivity. To pause a project currently under a paid plan, first transfer the project to an organization on the Free plan.
自动暂停是如何工作的 #
🌐 How automatic pausing works
如果一个免费计划项目在过去一周没有足够的用户数据库活动,它就会被认为是不活跃的。在这段时间内查询用户太少的项目,是最明显需要暂停的候选。虽然你可能在积极使用这个项目,但使用量可能不足以避免它被自动暂停。通常,在前一周每天向数据库发出几次用户请求就足以让项目继续运行而不被暂停。
🌐 A Free plan project is considered inactive if it does not receive sufficient user database activity over the past week. Projects with too few user queries during that window are the clearest candidates for pausing. While you may be actively using the project, it's possible that usage is not enough to exclude it from automatic pausing. Typically a few user requests to the database each day over the previous week is enough to keep the project from being paused.
Supabase 会向项目所有者发送两封关于项目暂停的邮件:
🌐 Supabase sends two emails to the project owner regarding project pausing:
- 在暂停生效前大约一周发出的提醒邮件。
- 项目暂停后的一封确认邮件。
在收到初次邮件警告后,可以通过以下其中一步来避免暂停:
🌐 After receiving an initial email warning, the pause can be prevented by taking one of the following steps:
- 从 Supabase 控制面板 访问项目以生成活动。
- 通过向你的项目发起 API 调用或通过已连接的应用发送请求来生成足够的活动。
恢复暂停的项目 #
🌐 Restoring a paused project
你可以在项目暂停后的一年内恢复暂停的项目:
🌐 You can restore a paused project for up to 1 year after it was paused:
- 打开 Supabase 控制面板
- 先选择组织,然后选择已暂停的项目
- 点击 恢复项目 并确认
这个项目将恢复到之前的状态,包括数据和配置。
🌐 The project will return to its previous state, including data and configurations.
恢复窗口 #
🌐 Restore window [#90-day-window-to-restore]
一旦项目被暂停,就有一年的时间可以通过 Supabase Studio 在平台上恢复项目。这个时间限制存在是因为备份只会保留有限时间,而且平台的变化可能不向旧备份兼容。与活跃项目不同,静态备份无法更新以适应这些变化。
🌐 Once the project is paused, there is a 1-year window to restore the project on the platform from within Supabase Studio. The time limit exists because backups are only retained for a limited period, and platform changes may not be backward compatible with older backups. Unlike active projects, static backups can't be updated to accommodate such changes.
防止自动暂停项目 #
🌐 Preventing automatic project pausing
为了防止将来自动暂停,请从账单设置升级到专业版计划。付费项目无法暂停,也不会因不活跃而被暂停。
🌐 To prevent future automatic pausing, upgrade to the Pro Plan from Billing Settings. Paid projects cannot be paused and are not subject to pausing for inactivity.