如何正确configurationHAproxy与Windowsterminal服务器

我目前正在使用Haproxy来负载平衡由5个Windows 2003服务器组成的terminal服务器场。

问题是,它似乎没有正确的平衡服务器,因为我有一个服务器过度人口和一个人口不足。 有人可以看看我的haproxyconfiguration文件,并告诉我,如果需要可以做什么增强? 谢谢。

<<Config>> # this config needs haproxy-1.1.28 or haproxy-1.2.1 global log 127.0.0.1 local0 log 127.0.0.1 local1 notice #log loghost local0 info maxconn 4096 #chroot /usr/share/haproxy user haproxy group haproxy daemon #debug #quiet stats socket /tmp/haproxy defaults log global mode http option httplog option dontlognull retries 3 option redispatch maxconn 2000 contimeout 1h clitimeout 1h srvtimeout 1h listen rdp :3389 mode tcp balance source option tcpka server aura 192.168.100.233 check port 3389 server castor 192.168.100.253 check port 3389 server pollux 192.168.100.254 check port 3389 server artemis 192.168.100.249 check port 3389 server athena 192.168.100.251 check port 3389 

如果你没有足够的客户,我很确定“平衡源”是你的问题。 Haproxy 1.4支持其他负载均衡algorithm,可以与基于Cookie的RDP持久性(“persist rdp-cookie”)结合使用。 我通常build议在使用rdp-cookie时使用“balance leastn”。