Aurora Endpoints
Aurora里面有四种endpoint:
- Cluster endpoint(writer endpoint) : 连接到数据库的主实例,是唯一能进行写操作的endpoint,它的URL形式:
mydbcluster.cluster-123456789012.us-east-1.rds.amazonaws.com:3306
- Reader endpoint: 减少主实例的查询压力。如果集群中有多个Replica,它会做负载均衡。它的URL类似:
mydbcluster.cluster-ro-123456789012.us-east-1.rds.amazonaws.com:3306
- Custom endpoint:用户自己选择特定的实例,然后请求会被负载均衡到这些实例上面。默认是没有Custom endpoint的,需要进行创建。例如可以将ad-hoc查询转到集群的小机型上,将生产业务流量转到大机型上。它的URL长这样:
myendpoint.cluster-custom-123456789012.us-east-1.rds.amazonaws.com:3306
- Instance endpoint:每个实例都有一个endpoint,类似于
mydbinstance.123456789012.us-east-1.rds.amazonaws.com:3306