iqiyi / dpvs

DPVS is a high performance Layer-4 load balancer based on DPDK.
Other
3.04k stars 730 forks source link

configure DPVS via dr mode #28

Closed wjgme1971 closed 7 years ago

wjgme1971 commented 7 years ago

Can dpvs do supports DR mode? how to configured /etc/keepalived/keepalived.conf ,here interface use dpdk0 or dpd0.kni ? I set as it, but it cannot work ! no keepalived package sendout!

beacer commented 7 years ago

Keepalived should be run on kni device. And the addr/route should also be config correctly on KNI device. Can you show the output of dpip addr show, dpip route show , ip addr show and ip rout show ?


beacer_chen@hotmail.com

From: wjgme1971mailto:notifications@github.com Date: 2017-10-27 13:11 To: iqiyi/dpvsmailto:dpvs@noreply.github.com CC: Subscribedmailto:subscribed@noreply.github.com Subject: [iqiyi/dpvs] configure DPVS via dr mode (#28)

Can dpvs do supports DR mode? how to configured /etc/keepalived/keepalived.conf ,here interface use dpdk0 or dpd0.kni ? I set as it, but it cannot work ! no keepalived package sendout!

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/iqiyi/dpvs/issues/28, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ANGzMT6WWQxmyb3SiWIYfClpRFyJ23xnks5swWYMgaJpZM4QIjev.

wjgme1971 commented 7 years ago

thanks,dpip addr/route show only VIP and LIP, ip addr/route show can see dpdk0.kni. use 'ipvsadm -a -t ' can set RIP ,but sometimes RealServer device cannot receive packet,dpip can see ipackets stats, VIP normally set on lo:0. and some other para set according to lvs.

beacer commented 7 years ago

We will add some documents for FullNAT, DR, SNAT mode configuration, with and without ospfd, keepalived. Currentlly, it's really need a lot of background knowlage about LVS/FNAT and DPDK/kni to config DPVS.

wjgme1971 commented 7 years ago

thanks, now DPVS use 'dpip addr add LIP dev dpdk0' , so it can work properly, the RS device can received LIP'arprequest and RS can send arpack to DPVS, the client use curl to request http OK. Another problem is 'keepalived via DR mode can't work properly ,maybe keepalived on DPVS not supported? Can you give me some example for configuration keepalived on DPVS? thanks.

beacer commented 7 years ago

Glad to know you got DR mode works. DPVS support keepalived and ospfd, actually we're using them on our IDC. Both keepalived and ospfd need kni interface and some networking configs. And we're writing the config examples, will upload the example config to GIT soon.

wjgme1971 commented 7 years ago

OK,I am very eager to get the idea. thanks greatly.

beacer commented 7 years ago

@wjgme1971 pls check doc/tutorial.md, if you still have problem not covered by the tutorial, you can reopen this issue.