1. Initially
650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M02/76/54/wKiom1ZPLtvASa1lAACDxmrY_3c548.jpg "title=" 36020151120223138363.jpg "width=" height= "345" border= "0" hspace= "0" vspace= "0" style= "width:700px;height:345px;" alt= "Wkiom1zpltvasa1laacdxmry_3c548.jpg"/>
Data: Structure----Database
Unstructured---file systems
Semi-structured---file system or relational database
2. When it does not run
650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M01/76/53/wKioL1ZPNCDDu7VVAADXJcWtuJo040.jpg "title=" 36020151120225241547.jpg "width=" height= "border=" 0 "hspace=" 0 "vspace=" 0 "style=" width:700px;height:270px; " alt= "Wkiol1zpncddu7vvaadxjcwtujo040.jpg"/>
MySQL Listener: TCP: Two servers, resource-not-contention, network latency.
UNIC sock: The same host, to achieve shared memory, contention resources.
3.APP too large, static and dynamic separation
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/76/54/wKiom1ZPNnKTlbV8AAA8WB_8PVk823.jpg "title=" 36020151120230401990.jpg "width=" height= "229" border= "0" hspace= "0" vspace= "0" style= "WIDTH:700PX;HEIGHT:229PX;" alt= "Wkiom1zpnnktlbv8aaa8wb_8pvk823.jpg"/>
Overview: Nginx processing static pages, app processing dynamic pages, such as php,jsp
static 80%; dynamic 20%
Dynamic: 20% data; 80% Self-logic processing
3. Increase the cache
650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M00/76/54/wKioL1ZPOr7RgPV9AABp8X0jJ-k655.jpg "title=" 36020151120232025341.jpg "width=" height= "343" border= "0" hspace= "0" vspace= "0" style= "WIDTH:700PX;HEIGHT:343PX;" alt= "Wkiol1zpor7rgpv9aabp8x0jj-k655.jpg"/>
4. Add App
650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M01/76/55/wKiom1ZPO-7g1gpPAAC3-FYdMTI173.jpg "title=" 36020151120232727625.jpg "width=" height= "324" border= "0" hspace= "0" vspace= "0" style= "WIDTH:700PX;HEIGHT:324PX;" alt= "Wkiom1zpo-7g1gppaac3-fydmti173.jpg"/>
5. Increase the cache server
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/76/54/wKioL1ZPPKTTHh1jAACU0yRCGDQ172.jpg "title=" 36020151120232845609.jpg "width=" height= "547" border= "0" hspace= "0" vspace= "0" style= "WIDTH:700PX;HEIGHT:547PX;" alt= "Wkiol1zppktthh1jaacu0yrcgdq172.jpg"/>
Easy to add Memcache server with consistent hash
Note: It is possible to increase the Memcache server may be an entire app,mysql outage.
6. Increase the Load balancer
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/76/55/wKiom1ZPPpHCi8gWAAB2SzPVuss954.jpg "title=" 36020151120233810739.jpg "width=" height= "border=" 0 "hspace=" 0 "vspace=" 0 "style=" width:700px;height:440px; " alt= "Wkiom1zppphci8gwaab2szpvuss954.jpg"/>
6. Increased processing of static page servers
650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M02/76/55/wKiom1ZPP7Tx-d5EAAF_is3wunA944.jpg "title=" 36020151120234300119.jpg "width=" height= "422" border= "0" hspace= "0" vspace= "0" style= "width:700px;height:422px;" alt= "Wkiom1zpp7tx-d5eaaf_is3wuna944.jpg"/>
7. Using CDN to solve
650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M02/76/54/wKioL1ZPQXrh3UjHAACZevW8XF4926.jpg "title=" 36020151120234915273.jpg "width=" height= "422" border= "0" hspace= "0" vspace= "0" style= "width:700px;height:422px;" alt= "Wkiol1zpqxrh3ujhaaczevw8xf4926.jpg"/>
8. Follow this prototype and split it.
Note: application is the best;
2-3-Year Forecast
Technology does not solve all problems; technology only addresses the business and solves current problems.
Classic chart
650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M00/76/54/wKioL1ZPRTDjZiMnAAEbjfDzMaY839.jpg "title=" 36020151121000507703.jpg "width=" height= "354" border= "0" hspace= "0" vspace= "0" style= "WIDTH:700PX;HEIGHT:354PX;" alt= "Wkiol1zprtdjzimnaaebjfdzmay839.jpg"/>
Server architecture Diagram