基于 DPDK 的高性能负载均衡器的实现

Cartel

2017/10/18 发布于 技术 分类

基于 DPDK 的高性能负载均衡器的实现

QCon  QCon2017 

文字内容
1. l4>4 raychen@qiyi.com
6. c d n n w n n s n n n _m _ l3O IUc f 3> 8> oet d
7. nak n / 4>4 :DA n j :DA 1 n 1 n 4>DA n l n n e K b
8. . / n n NG O / NG O 1 1
9. g/ Z n KWTKR 1 n _h n PKNI n A GIQ n OV GHRK TK LOR KW n ?UA 3 n bb
10. g & n .BN BH (UL OO n . n VV AR n P DB n / PB U n BNCKNI B n BR B?QD FO AR n n n P DB P ?HB! +Q OB ) OBO PFK H! KKHO! V Google Maglev
11. g & NB n n n KP F D n k ) LWUS KT GVV U KT TU UV G QKWTKR a n BNK )KLU n ( P F D KHHF D 8T KWW V n IBILKKH 3>Cv PBBNF D n )K PA GVV ! 2RRUI 5WKK n S NB BOO n ,QDB DB
12. Master/Worker /CPU CPU
13. p x HH F n n /FPB - B BRBNOB NKTU P n BN ) H KNB n /K HBOO n Q H) B - ) +NFB AHU n (K AF D n / n . - B QNFPU K
14. PBBNF D ) -) MQBQB ) LBN ) IUTT WU K O
15. /FPB - P n y p n KQPB >KW 3>C n n :UIQRK ! GR IGINK n 2TU NKW G
16. .t -) OMHF OU . (K AF D /
17. h i vr u mX % NKTU o o UT MUOTM UT MUOTM
18. Y bw X
19. Y n 5RU n n bw 4OWKI UWg - ( KT WOK ! f 8> 548 f AA X GHRK VKWLUWSGTIK :UIGR 8> e e p
20. Y bw 0x000E l X
21. Y QHPF OP n TO TU VVUW n QTO SSGV LOLU n K ROTQ K KT n TK OL SI RO TI
22. Y PFIBN n . NPB=PFIBN & 4>4 p NKT 0 e %S f p % %%%%%%) , n FIBN p 7G N NKKR OSKW p VKW RIUWKeMRUHGR p u iK VOWK p % + %, U T
23. Y efq rte_malloc/free -> rte_mempool Not use slow API: gettimeofday, random compile option per-lcore statistics/depress logs Enable HW offloading if possible unlikely and inline Cache line align/prefetch Review Codes (kni, timer, msg handling)
24. n n n n n DPVS: fnat, tcp, rr Client: wrk, irq_affinity RS: nginx, irq_affinity k fy f
25. ! BTP V n · r· VKW 3>Cg x n : 8>eS 3>e=4> =5>eROH OTK n L GIQe KG GWeb n BTP b n 6 )%6 %%6 n WGLLOI 3UT WUR n WGLLOI AGSVRK n bb g
26. FO LB KQN BA https://github.com/iqiyi/dpvs KRIUSK U PNU! WKVUW FOOQBO GT HSO LQHH NBMQBOPO
27. s • / N V. • . N V. • /F QT .BN BH • DHBR N V • HF? ? / • HRO O ROT OW GR KW KW UWM V Q UWM N V . QKWTKR UWM . WK KGWIN MUUMRK IUS V H V H))- ) N SR N V . MO N H IUS GROHGHG :DA P N V . MO N H IUS PROPOGT( R TG
29. P +HKS
30. (FD F PQNB