Snowflake Postgres 只读副本

概述

Snowflake Postgres 支持创建 副本。副本是 主实例 的只读副本,会持续与主实例的变更保持同步。此同步是自动完成的,对用户透明。

副本对于读取扩展和卸载某些可能影响生产环境的工作负载(如报告工作负载)非常有用。副本必须具有与主实例相同的存储容量,但可以具有不同的计算能力规模。

副本预置在与其领导者实例相同的网络中,因此会继承其领导者实例的所有入口和出口网络规则。

Postgres 凭据以及副本上的所有其他数据都会被复制,并与领导者实例保持同步。

创建只读副本

  1. In the navigation menu, select Postgres.

  2. 选择要为其创建副本的实例,以加载其详细信息页面。

  3. In the Manage menu at the top right of the detail page, select the Create replica option.

  4. 为新副本的配置选项做出选择。

    Create a Snowflake Postgres Replica
  5. Select Save to create the replica.

The time needed to create a replica depends on the size of its origin instance. The replica will display its current state as it is building. See the list of instance states for details about the states the replica will pass through as it builds.

副本行为和限制

  • Only 10 replicas can stream changes from a leader instance by default. To allow additional replicas to stream, increase the Postgres max_wal_senders setting (see Snowflake Postgres Server Settings).
  • 拥有副本的主 Postgres 实例无法被删除。在删除主实例之前,必须先移除其所有副本。
  • 应用于主实例的 Postgres 服务器设置将复制到所有副本。