Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Speaker Deck
PRO
Sign in
Sign up for free
Most Powerful High Availability / Load Balancing #yapcasia 2012
riywo
September 30, 2012
Programming
3
3.2k
Most Powerful High Availability / Load Balancing #yapcasia 2012
riywo
September 30, 2012
Tweet
Share
More Decks by riywo
See All by riywo
Monitoring Casual #2
riywo
1
370
ServerSchemaCoreAPI
riywo
0
1.5k
Ops Tool made by Perl Beginner #yapcasia 2012
riywo
5
28k
Other Decks in Programming
See All in Programming
Refactor with using `available` and `deprecated`
417_72ki
3
370
dbtでアトリビューション分析
hiro_koba_jp
0
140
Zynq MP SoC で楽しむエッジコンピューティング ~RTLプログラミングのススメ~
ryuz88
0
160
コンピュータビジョンセミナー2 / computer_vision_seminar_libSGM
fixstars
0
310
Findy - エンジニア向け会社紹介 / Findy Letter for Engineers
findyinc
2
42k
低レイヤーから始める GUI
fadis
18
9.2k
様々なWebアプリをAzureにデプロイする
tomokusaba
0
110
Use KMM to call the API of the National Tax Agency
akkeylab
0
290
Excelの助けを借りて楽にシナリオを作ろう
rpa_niiyama
0
180
Hasura の Relationship と権限管理
karszawa
0
130
TokyoR#103_DataProcessing
kilometer
0
350
AWSとCPUのムフフな関係
cmdemura
0
430
Featured
See All Featured
Java REST API Framework Comparison - PWX 2021
mraible
PRO
13
5.4k
Keith and Marios Guide to Fast Websites
keithpitt
407
21k
It's Worth the Effort
3n
177
26k
Fireside Chat
paigeccino
16
1.8k
The Illustrated Children's Guide to Kubernetes
chrisshort
22
42k
Rails Girls Zürich Keynote
gr2m
87
12k
The Power of CSS Pseudo Elements
geoffreycrofte
52
4.3k
Code Review Best Practice
trishagee
50
11k
BBQ
matthewcrist
75
8.1k
A better future with KSS
kneath
230
16k
Visualization
eitanlees
128
12k
Designing the Hi-DPI Web
ddemaree
273
32k
Transcript
Most Powerful High Availability Load Balancing Sep, 29, 2012 YAPC::Asia
2012 @riywo
@riywo
http://www.publicdomainpictures.net/view-image.php?image=4314&picture=t-shirt-image
None
None
Talk about.... * Why is this good? * Why is
this bad?
HALB
What?
LB Server Server Server Server
HA Server Server Server Server ✗ Health Check
Same!
Where?
HA LB Web Web Web Web User
HA LB DB DB DB DB Web
HA LB API API API API Web
Anywhere!
How?
BIG-IP ServerIron
LVS
HAProxy
mod_proxy
nginx
ELB
MyDNS
Pros/Cons
Pros Cons H/W Inline (DSR) Powerful Difficult Expensive Proxy Inline
(DSR) Easy to use Performance DNS No proxy Performance Difficult
Pros Cons H/W Inline (DSR) Powerful Difficult Expensive Proxy Inline
(DSR) Easy to use Performance DNS No proxy Performance Difficult
DNS
No Proxy
DNS DB DB DB DB Web 1 2 Weighted-DNS RoundRobin
HA LB
Cache
DNS DB DB DB DB Web 2 Cache 1 3
Cache is Difficult
DNS DB DB DB DB Web Cache ✗ Health Check
DNS DB DB DB DB Web Cache ✗ Health Check
Inconsistent
Solution
Client DNS
DNS DB DB DB DB Web ✗ Health Check
Too many Health Check
DB DB DB DB DNS Web ✗ Health Check DNS
Web DNS Web Health CheckHealth Check
Solution
Eventual Consistent
DB DB DB DB DNS Web ✗ DNS Web DNS
Web Health Check DNS 2 Async 1
How?
DB DB DB DB ✗ MyDNS Web Health Check MyDNS
1 2 Replication MyDNS Web MyDNS Web
Good Points
* Clients know all info * Eventual Consistent * Any
Application:)
Bad Points
* Too much... * Async difficult
Join us! * Perl Mongers * Operation Engineers
Join us! * Perl Mongers * Operation Engineers * Baseball
Players :)
Thanks!
@riywo blog.riywo.com weblog.riywo.com