9
stream
{
upstream hkbalance
{
server hk01.xxx.xxx:443 weight=10;
server hk02.xxx.xxx:443 weight=20;
check interval=3000 rise=2 fall=5 timeout=2000 type=tcp;
}
server
{
listen 60000; #
proxy_pass hkbalance;
}
}
配置如上 希望达到的目的是用stream进行TCP负载均衡+状态检测 但是提示 "check" directive is not allowed here