Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UDP DNS DSR loadbalancing not working. #27

Open
emanzx opened this issue May 18, 2016 · 2 comments
Open

UDP DNS DSR loadbalancing not working. #27

emanzx opened this issue May 18, 2016 · 2 comments

Comments

@emanzx
Copy link

emanzx commented May 18, 2016

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
Copy link
Owner

UlricE commented May 19, 2016

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
Copy link
Author

emanzx commented May 23, 2016

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants