1 、开通负载均衡产品
2 、ALB / NLB / CLB
ALB: 应用型负载均衡 , 给定对应服务域名与当前实例DNS绑定之后即可使用
支持: HTTP/HTTPS/QUIC等应用层流量协议
NLB: 网络型负载均衡
支持: TCP / UDP / TCPSSL
CLB:传统型负载均衡
支持: HTTPS / HTTP / TCP
以NLB为例(只用到TCP业务的负载):
创建实例:

点击创建监听:

选择服务器组:
这里重点说明一下 , 创建服务器组时要把相同端口的归为一个组 , 否则出错

点击编辑后端服务器,不同服务器相同端口,且要负载的归为一组:

设置域名解析

负责DNS名称 , 在域名解析中找到负载的域名或者添加负载域名
将记录类型: 选择为txt即可
