AWS placement group ,ENI ,EIP学习笔记

Placement Groups(Single Availability Zone)

a logical grouping of instances within a single Availability Zone. Using placement groups enables applications to participate in a low-latency , 10 Gbps network.

A placement group can't span multiple Availability Zones.

ENI (需选择subnet)

包含一个primary private ip;一个或者多个 secondary private ip address;一个EIP/per private ip address; 一个public ip address(will be auto-assigned to the ENI for eth0).


图中:eth0 是primary interface,因为在instance状态为stopped or running 下 , primary interface 是不支持deattach。所以将EIP attach 到eth1中,在instance 意外fail之后,可迅速将其所使用eth1 attach到standby instance上。

To ensure failover capabilities, consider using a secondary private IP for incoming traffic on a network interface. In the event of an instance failure, you can move the interface and/orsecondary private IP address to a standby instance(manually).

实际操作中: default vpc下建的instance,它default primary interface, private ip addr 已经对应了一个 public ip。如果需要再attach EIP 需要再加sendary private ip,这之后才能进行相应操作。

实际应用场景:

you can use an ENI as your primary or secondary network interface to a critical service such as a database instance or a NA T instance.比如RDS primary down了,将其使用的ENI attach 到standbby,可以通过手动或者代码的方式(代码的方式还有待研究),reattach 期间会损失一些用户请求,但是极大的保证了系统的available.

EIP

An Elastic IP address(EIP) is a static IP address designed for dynamic cloud computing. With an EIP , you can mask the failure of an instance or software by rapidly remapping the address to another instance in your account. ENI 很好的体现了一个思想 design for failure.

一种情况: 当你disassociate an EIP address from an instance launched in default VPC, the instance 在几分钟之内会自动assign一个public ip,但是如果你attach了一个eth1,就不会assign一个新的public ip。  (不明白为什么)

EIP属于稀缺资源,AWS建议use an EIP primarily f or load balancing use cases, and use DNS hostnames for all other inter-node communication.

  • 1
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值