基于DPDK的功能负载均衡器的实现
合集下载
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
Y
bw
l
X
0x000E
Y
QHPF
OP
n TO TU VVUW n QTO SSGV LOLU n K ROTQ K KT n TK OL SI RO TI
Y PFIBN
n . NPB=PFIBN &
4>4 + %,
p NKT 0 e %S f p % %%%%%%) ,
%
U T
n
FIBN
p 7G N NKKR OSKW p VKW RIUWKeMRUHGR p u iK VOWK p
n
BTP b
n 6 )%6 %%6 n WGLLOI 3UT WUR n WGLLOI AGSVRK n bb
FO
LB
KQN BA
https://github.com/iqiyi/dpvs KRIUSK U PNU! WKVUW FOOQBO GT HSO LQHH NBMQBOPO
s
• / N V. • . N V. • /F QT .BN BH • DHBR N V • HF? ? / 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 TG
g
n
n n
&
NB KP F D
k 3>Cv
)K PA
n
KHHF D
8T KWW V 2RRUI 5WKK
n IBILKKH )
GVV !
n
PBBNF D
LWUS KT GVV U KT TU UV G QKWTKR a
n n ,QDB
S NB BOO DB
n
BNK )KLU F D
n ( P
Master/Worker /CPU
• HRO O
P N V . MO N H IUS PROPOGT( R
P +HKS
(FD F PQNB
n :UIQRK ! GR IGINK n 2TU NKW G
.t
-) OMHF OU . (K AF D /
h i
vr u
mX
% NKTU o o UT MUOTM UT MUOTM
Y
bw
X
Y
bw
X
n 5RU n n
4OWKI UWg - ( KT WOK ! f 8> 548 f AA
GHRK VKWLUWSGTIK :UIGR 8> e e p
CPU
p
x
HH F
n n
B
BRBNOB NKTU
/FPB -
P
n BN ) H KNB n /K HBOO n Q H) B
- ) +NFB AHU
n (K AF D n / n . -
B QNFPU
K
PBBNF D
-) MQBQB )
LBN )
)
O
IUTT WU K
/FPB -
P
n y p n KQPB >KW 3>C n
l4>4
raychen@qiyi.com
c d
n n w n n s
n n n
_m
_ d
l3O IUc f
oet
3> 8>
nak
n / 4>4 :DA n j :DA 1 n 1 n 4>DA n l n n e K b
.
/
n n NG O / NG O 1 1
g/
Z
n KWTKR 1 n _h n PKNI n A GIQ
n OV GHRK TK LOR KW n ?UA 3 n bb
g
nቤተ መጻሕፍቲ ባይዱ. n VV
&
n .BN BH (UL OO n AR P DB
n / PB U n BNCKNI B n BR B?QD
n
n
FO AR
P DB
PFK H! KKHO! V
P ?HB! +Q
Google Maglev
n
OB ) OBO
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)
n n n n n
DPVS: fnat, tcp, rr Client: wrk, irq_affinity RS: nginx, irq_affinity k fy f
! BTP V
n · r· VKW 3>Cg x g
n : 8>eS 3>e=4> =5>eROH OTK n L GIQe KG GWeb