UlricE / pen

Pen
Other
250 stars 41 forks source link

UDP DNS DSR loadbalancing not working. #27

Open emanzx opened 8 years ago

emanzx commented 8 years ago

I try to configure pen to do DSR load balancing for DNS but It seem not working, bellow are my settings

Pen LB server em0 ip:119.81.66.18x em1 ip:192.168.0.20

Server dns1 em0 ip:119.81.66.18y em1 ip:192.168.0.30 lo1 ip:119.81.66.18x

Server dns2 em0 ip:119.81.66.18z em1 ip:192.168.0.40 lo1 ip:119.81.66.18x

I run pen with this argument

pen -df -U -O poll -O "dsr_if em1" -S 2 -r 119.81.66.18x:53 192.168.30 192.168.0.40

UlricE commented 8 years ago

You're not supposed to have an IP address on em1 of the load balancer server. Also, I wonder how everything is connected. Are all interfaces connected to the same network? If so, traffic to 119.81.66.18x will be delivered to em0.

emanzx commented 8 years ago

Hi, Thank for replying. I have manage to make it work by adding 1 more interface. but, if I dont configure IP to that interface pen seem to not work.. but once I configure IP.. it works ok. currently testing for DNS with DSR loadbalancing. using FreeBSD.. pen seem to crash at high QPS. it just crash.. I have to restart it. but for debian linux. it works like a charm.. just the performance does not seem to be able to keep up with the query direct to server.. I mean.. it does not add up the single server QPS, example server 1 can handle 1000 qps and server 2 can handle 1000qps.. if DSR roundrobin.. I should received around 2000 qps but I ony got around 1300-1500 qps.. and I found out. the aswer does not always round robin. anything I should tweak to increase the performance?