AWS:在指定多个子网时,是否会将多个 IP 地址和 ENI 附加到 RDS?
AWS: will multiple IP addressed and ENI be attached to RDS when specifying multiple subnets?
如果我这样创建RDS,新创建的RDS是否有两个IP地址和两个弹性网络接口(ENI)?
- 创建一个包含两个子网的子网组
- 使用这个新创建的子网组创建一个 RDS。
没有没有。多个子网用于 故障转移 设置。因此,您的 RDS 实例将仅在具有一个 IP 地址的一个子网中创建。如果您启用了 multi-AZ,第二个子网将用于备用实例。
AWS 文档:Create a DB subnet group
When you create a DB instance in a VPC, make sure to choose a DB subnet group. Amazon RDS chooses a subnet
and an IP address
within that subnet to associate with your DB instance. Amazon RDS creates and associates an Elastic Network Interface to your DB instance with that IP address. The DB instance uses the Availability Zone that contains the subnet. For Multi-AZ deployments, defining a subnet for two or more Availability Zones in an AWS Region allows Amazon RDS to create a new standby in another Availability Zone should the need arise. You need to do this even for Single-AZ deployments, just in case you want to convert them to Multi-AZ deployments at some point.
如果我这样创建RDS,新创建的RDS是否有两个IP地址和两个弹性网络接口(ENI)?
- 创建一个包含两个子网的子网组
- 使用这个新创建的子网组创建一个 RDS。
没有没有。多个子网用于 故障转移 设置。因此,您的 RDS 实例将仅在具有一个 IP 地址的一个子网中创建。如果您启用了 multi-AZ,第二个子网将用于备用实例。
AWS 文档:Create a DB subnet group
When you create a DB instance in a VPC, make sure to choose a DB subnet group. Amazon RDS chooses
a subnet
andan IP address
within that subnet to associate with your DB instance. Amazon RDS creates and associates an Elastic Network Interface to your DB instance with that IP address. The DB instance uses the Availability Zone that contains the subnet. For Multi-AZ deployments, defining a subnet for two or more Availability Zones in an AWS Region allows Amazon RDS to create a new standby in another Availability Zone should the need arise. You need to do this even for Single-AZ deployments, just in case you want to convert them to Multi-AZ deployments at some point.