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
Most Powerful High Availability / Load Balancin...
Search
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
riywo
September 30, 2012
Programming
3
3.8k
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
410
ServerSchemaCoreAPI
riywo
0
1.5k
Ops Tool made by Perl Beginner #yapcasia 2012
riywo
5
29k
Other Decks in Programming
See All in Programming
Amazon Bedrockを活用したRAGの品質管理パイプライン構築
tosuri13
4
250
メルカリのリーダビリティチームが取り組む、AI時代のスケーラブルな品質文化
cloverrose
2
510
LLM Observabilityによる 対話型音声AIアプリケーションの安定運用
gekko0114
2
420
AI Schema Enrichment for your Oracle AI Database
thatjeffsmith
0
250
Unicodeどうしてる? PHPから見たUnicode対応と他言語での対応についてのお伺い
youkidearitai
PRO
1
1.1k
Apache Iceberg V3 and migration to V3
tomtanaka
0
150
Implementation Patterns
denyspoltorak
0
280
組織で育むオブザーバビリティ
ryota_hnk
0
170
CSC307 Lecture 04
javiergs
PRO
0
660
Fluid Templating in TYPO3 14
s2b
0
130
AI時代のキャリアプラン「技術の引力」からの脱出と「問い」へのいざない / tech-gravity
minodriven
20
6.8k
AIと一緒にレガシーに向き合ってみた
nyafunta9858
0
170
Featured
See All Featured
Visualization
eitanlees
150
17k
YesSQL, Process and Tooling at Scale
rocio
174
15k
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
37
6.3k
Google's AI Overviews - The New Search
badams
0
900
Joys of Absence: A Defence of Solitary Play
codingconduct
1
290
The Organizational Zoo: Understanding Human Behavior Agility Through Metaphoric Constructive Conversations (based on the works of Arthur Shelley, Ph.D)
kimpetersen
PRO
0
230
Evolving SEO for Evolving Search Engines
ryanjones
0
120
The State of eCommerce SEO: How to Win in Today's Products SERPs - #SEOweek
aleyda
2
9.5k
GitHub's CSS Performance
jonrohan
1032
470k
Effective software design: The role of men in debugging patriarchy in IT @ Voxxed Days AMS
baasie
0
220
Leo the Paperboy
mayatellez
4
1.4k
Chasing Engaging Ingredients in Design
codingconduct
0
110
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