Download presentation
Presentation is loading. Please wait.
1
Architecture of Large-Scale Websites
Yu Feng 06/08/2008
2
Static Content Image Servers Database Cache Mirror Load Balance
Agenda Static Content Image Servers Database Cache Mirror Load Balance
3
Static Content Use CMS (Content Management System)
Can be managed easily (add/remove/modify) Channels
4
Static Content (cont’d)
Make it static as much as possible Dynamic pages are always much slower Static pages are more cache-friendly The ways that high traffic sites do Netease, Sina, Mop Convert dynamic pages to static ones (BBS)
5
Image Servers Use separate image servers Images
Small size Large amount Reduce the stress of the main server Can be optimized nginx lighttpd
6
Improve the design of your database Tables Tuning Your application
7
Database (cont’d) Use database clusters Oracle MySQL
MySQL Replication Master/Slave) MySQL-Proxy
8
Why caching is important?
Cache Why caching is important?
9
Apache Squid Ncache Memcached …
Cache (cont’d) Apache Squid Ncache Memcached …
10
Mirror Different entrance
11
Load Balance DNS What is a L4/L7 switch?
12
Load Balance (cont’d) Hardware F5, Aleton
13
Load Balance (cont’d) LVS HAProxy
14
The End Thanks
Similar presentations
© 2025 SlidePlayer.com Inc.
All rights reserved.