Redshift 从快照恢复——集群状态对集群的真正意义是什么?

Redshift restoring from snapshot - what the cluster status really means about the cluster?

为了省钱,我的团队每天晚上都会关闭公司的 redshift 集群。

我们创建该集群的快照,以便在下一个工作日恢复它。 当我们恢复集群时,从 creating 状态移动到 available, restoring 状态需要一些时间,但是 available, restoring 到底是什么意思?当我的集群静止不动时,我可以在我的集群上执行什么样的查询从快照恢复

我问这个是因为我们有一些查询要在集群创建后立即执行,我们正在 available, restoring 状态下执行它们。我应该等到 restoring 结束吗?

来自Amazon Redshift Snapshots

When you restore from a snapshot, Amazon Redshift creates a new cluster and makes the new cluster available before all of the data is loaded, so you can begin querying the new cluster immediately. The cluster streams data on demand from the snapshot in response to active queries, then loads the remaining data in the background.

这真的很巧妙,因为这意味着您可以在数据完全加载之前开始查询数据,Redshift 将优先加载该数据来完成您的查询!

因此,似乎是:

  • Creating表示正在创建集群
  • 正在恢复表示正在恢复快照
  • Available表示恢复完成,集群运行