测试负载均衡
Hujiuxiang
・1 分钟阅读
测试负载均衡
curl --resolve subdomain.example.com:80:10.100.0.1 subdomain.example.com -I -s
如果负载均衡器后面有许多有不同IP地址的服务器,那么,当然,你可以循环执行:
for IP in 10.11.0.{1..10}; do curl --resolve subdomain.example.com:80:$IP subdomain.example.com -I -s; done