Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
自作ロードバランサ開発 / JANOG40 SP6LB
Search
yunazuno
July 28, 2017
Technology
0
160
自作ロードバランサ開発 / JANOG40 SP6LB
JANOG40 ショートプログラム 「自作ロードバランサ開発」
https://www.janog.gr.jp/meeting/janog40/program/sp6lb
yunazuno
July 28, 2017
Tweet
Share
More Decks by yunazuno
See All by yunazuno
eXpress Data Path (XDP) の概要とLINEにおける利活用 / Brief summary of XDP and use-case at LINE
yunazuno
10
2.8k
Norikraを非リアルタイムなデータ集計に使う試み
yunazuno
1
6.6k
Other Decks in Technology
See All in Technology
マルチモーダル / AI Agent / LLMOps 3つの技術トレンドで理解するLLMの今後の展望
hirosatogamo
37
12k
The Role of Developer Relations in AI Product Success.
giftojabu1
0
140
Why App Signing Matters for Your Android Apps - Android Bangkok Conference 2024
akexorcist
0
130
AIチャットボット開発への生成AI活用
ryomrt
0
170
RubyのWebアプリケーションを50倍速くする方法 / How to Make a Ruby Web Application 50 Times Faster
hogelog
3
950
Storybook との上手な向き合い方を考える
re_taro
1
180
データプロダクトの定義からはじめる、データコントラクト駆動なデータ基盤
chanyou0311
2
330
20241120_JAWS_東京_ランチタイムLT#17_AWS認定全冠の先へ
tsumita
2
300
飲食店データの分析事例とそれを支えるデータ基盤
kimujun
0
180
テストコード品質を高めるためにMutation Testingライブラリ・Strykerを実戦導入してみた話
ysknsid25
7
2.7k
ノーコードデータ分析ツールで体験する時系列データ分析超入門
negi111111
0
420
OTelCol_TailSampling_and_SpanMetrics
gumamon
1
220
Featured
See All Featured
GraphQLの誤解/rethinking-graphql
sonatard
67
10k
Keith and Marios Guide to Fast Websites
keithpitt
409
22k
Fashionably flexible responsive web design (full day workshop)
malarkey
405
65k
How GitHub (no longer) Works
holman
310
140k
Reflections from 52 weeks, 52 projects
jeffersonlam
346
20k
Speed Design
sergeychernyshev
25
620
What's in a price? How to price your products and services
michaelherold
243
12k
Java REST API Framework Comparison - PWX 2021
mraible
PRO
28
8.2k
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
31
2.7k
ReactJS: Keep Simple. Everything can be a component!
pedronauck
665
120k
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
47
2.1k
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
232
17k
Transcript
ࣗ࡞ϩʔυόϥϯα։ൃ :PIFJ ,BOFNBSV -*/&$PSQPSBUJPO ZPIFJLBOFNBSV BUMJOFDPSQDPN !ZVOB[VOP
͜ΜͳιϑτΣΞ-#Λ։ൃ͍ͯ͠·͢ • -*/&ͷαʔϏεʹඞཁͳػೳΛඋ͍͑ͯΔ • ී௨ͷY-JOVYαʔό্Ͱಈ࡞͢Δ • ߴ͍εέʔϥϏϦςΟ͕͋Δ 2017-07-28 JANOG 40
Meeting 2 ৄ͍͠എܠ +"/0(ൃදࢿྉ ొஃϨϙʔτʹͯ [1] LINE (JANOG39 ) https://www.janog.gr.jp/meeting/janog39/program/line.html [2] JANOG39 LINE https://engineering.linecorp.com/ja/blog/detail/135
ϩʔυόϥϯαͷΞʔΩςΫνϟ͍Ζ͍Ζ $FOUSBMJ[FE-PBE#BMBODFST .JDSPTPGU"OBOUB 'BDFCPPLTIJW (PPHMF.BHMFW %FDFOUSBMJ[FE-PBE#BMBODFST ($1*OUFSOBM-#
$MPVEGMBSF 1P1T 2017-07-28 JANOG 40 Meeting Ωʔϫʔυ/ .VMUJ5JFS MS Ananta FB shiv Google Maglev [1] Microsoft Ananta https://doi.org/10.1145/2534169.2486026 [2] Facebook Shiv: https://www.usenix.org/conference/srecon15/program/presentation/shuff [3] Google Maglev https://research.google.com/pubs/pub44824.html 3
ߏ͔Β / .VMUJUJFSߏ 2017-07-28 JANOG 40 Meeting
4 / .VMUJUJFS Client L4 LB APP : In service : Not in service L4 LB APP L7 LB L3 Switch Client L3DSR TCP/HTTP(S) termination L3DSR ECMP ࠓճ͝հ͢Δͷ ͜ͷ෦
ஈ #(1 &$.1 1FSGMPX&$.1ʹΑΓɺ--#͓͓ΑͦۉʹτϥϑΟοΫΛࢄ 2017-07-28 JANOG 40 Meeting 5
Equal Cost Multi Path (ECMP) VIP: 192.0.2.1/32 L4LB-1 Hash(5-tuple) -> L4LB-[1-3] L3 Switch VIP: 192.0.2.1/32 L4LB-2 VIP: 192.0.2.1/32 L4LB-3 eBGP peer Flow X Flow Y
ஈ 4UBUFMFTT --# $POTJTUFOU)BTIͰࢄઌ--#Λܾఆ͠ɺ-%43Ͱύέοτసૹ 2017-07-28 JANOG 40 Meeting 6
L3 Switch L4LB-1 L7LB-1 L7LB-2 L4LB-2 L7LB-3 L7LB-4 ConsistentHash(Hash(5-tuple)) -> L7LB-[1-4] Flow X Flow Y
--# F9QSFTT %BUB 1BUI 9%1 Λ׆༻ -JOVYLFSOFMͰಈ࡞͢ΔɺF#1'Λ༻͍ͨߴύέοτॲཧج൫ 2017-07-28 JANOG
40 Meeting eBPF Map VIP-Backend table Statistics table C eBPF C code (Data Plane) Clang/LLVM eBPF Bytecode Python Management Plane eBPF JIT eBPF VM API VIP->Backend lookup Statistics Kernel User eBPF Verifier 7 BGP daemon XDP Program From L3 Switch To L7LB Kernel NIC Advertise VIP Compiler -PPLVQ7*1 )BTI UVQMF .PEJGZ*1IFBEFS Maintain map
--# ϊʔυ୯ମύϑΥʔϚϯε 2017-07-28 JANOG 40 Meeting 8 )BSEXBSFY*OUFM9FPO&W DPSFT
(%%3.FMMBOPY$POOFDU9-Y&/(C& 4PGUXBSF-JOVY,FSOFMSD EDCG #1'+*5FOBCMFE &OWJSPONFOU 19.1 15.0 10.8 5.8 2.9 2.0 0% 20% 40% 60% 80% 100% 0 4 8 12 16 20 64 128 256 512 1024 1518 Link Utilization [%] Throughput [Mpps] Frame size [byte] Throughput [Mpps] Link Utilization (/25GbE) [%] 25GbE wire-rate
࣮ࡍͷͱ͜ΖͲΜͳঢ়گ ॳͷૂ͍͓͓ΉͶୡͰ͖ͦ͏ खݩͷίʔυͱಉҰͷͷ͕࣮ωοτϫʔΫͰͦͷ··ಈ࡞͢Δ ςετ͕͍͢͠ɾಈ࡞͕ݟ͍͑͢ / ߏ͕ʹͳΔέʔε͋Δ .VMUJQBUI5$1 *1'SBHNFOU Ұ෦ͷಛघҊ݅
2017-07-28 JANOG 40 Meeting 9
ࠓޙͷల ຊ֨తʹϓϩμΫγϣϯڥͷೖΛ։࢝ ػೳՃߏͷΞοϓσʔτ %P4 %%P4ޚ εςʔτϑϧηογϣϯΩϟογϡ -36DBDIF ͷซ༻ #(1VOOVNCFSFE 3'$
%$OFUXPSLͷ-Խ ϋʔυΣΞدΓͷΞϓϩʔνΛௐࠪɾݕ౼ 9%1 F#1' IBSEXBSFPGGMPBE 1SPHSBNNBCMF"4*$ 1 2017-07-28 JANOG 40 Meeting 10