我们用权重路由方法(以前的循环模式)构建了一个流量管理器,并配置了两个具有相同权重值的端点。
我们预计流量将平均分配到两个端点。但实际上我们看到一个端点比另一个端点获得更多的流量。
然后我们检查了门户上流量管理器的“自动化脚本”,发现:
{
"name": "test1",
"type": "Microsoft.Network/trafficManagerProfiles/externalEndpoints",
"properties": {
"endpointStatus": "Enabled",
"target": "www.abc.com",
"weight": 1,
"priority": 1,
"endpointLocation": null
}
},
{
"name": "test2",
"type": "Microsoft.Network/trafficManagerProfiles/externalEndpoints",
"properties": {
"endpointStatus": "Enabled",
"target": "www.xyz.com",
"weight": 1,
"priority": 2,
"endpointLocation": null
}
}
上面的模板中有“优先级”,在权重路由模式下优先级是什么意思?此设置会影响流量路由吗?