Project background
Enter the ring:
There are many aspects that determine the performance of a website. A project often has particularities and needs to be analyzed based on the actual situation. Let’s take an example
Customer case:
Case background:
Customer A’s website content mainly includes:
1. Information portal system
2. Video publishing system->Video search engine center
3. User SNS network
4. User single-point login SSO center
5. Project management bug, customer tracking system, Web Calls system
6. Community system: The community has common systems such as IM and letters
7. Separate comment system, used for publishing system and other calls
8. Advertising and hot information bidding system, which must be linked to all systems of the group
9. Enterprise There are related web calls system, system related information and the C/S system
structure of the enterpriseCRM/ERP system has data synchronization transmission requirements...
10. Other functional systems that can be added at any time according to business development
The above system requires that the response rate of the user experience program should not exceed 2 seconds. The number of user registrations is nearly 100 million, and the number of daily visits is nearly 200 million PV. , about 3-4 million independent IPs per day, the maximum peak time is 50,000
The number of active users is almost 5 million (users who visit the website at least once in two weeks)
Number of server equipment
Three F5 or LVS
20 mainframes
About 500 mid-to-high-end server configuration in 2006
About 300 mid-to-high-level server configuration in 08 There is another resource, there are nearly 1,000~5,000 low-end Linux distributed computing servers around the world
The operating system mainly uses Linux, and some old C/S architecture application software uses windows 2003+sql layout
PHP 5.2.6
Apache /Lighttp/Nginx Or your own customized web server
MySQL NDB +MySQL M/S
MogileFS Image distributed storage
Memcached Object distributed storageSolr Full text search engine....
Bandwidth available distribution (reference):
Other servers are distributed in the second level, and the third level nodes deploy Squid or Varnish CDN network.
Project load balancing ArchitecturePrinciplesSoftware: LVS, Linux Virtual Server or F5EquipmentVarnish
High scalability:Hight Scalability
High availability:Hight Availability
-
Manageability:Manageability
Efficiency and low cost:
Load balancing processing mainly involves Technical blocks:
1. Load Balancer:
According to GeoDNS With IPVS, the user request is brought to the server node closest to the user
2. Connection pooler: Server Pool:
According to the user’s request, take the user to the requested resource server
3. Share Storage:
Resource database, attachments, image resources requested by users
2. Application layer Architecture
The overall core of the group frameworkArchitecturephp+mysql
Framework PHP directory:
Framework //Group main development framework
Portal //Group portal model framework
Updating....
3. Back-end database processing module (C,PERL,SHELL)
Updating....
4. DatabaseArchitecture
1.Hash Table splitting algorithm
2. MySQL Master/Slave master-slave architecture
3. MySQL NDB cluster
4. Data table design of each main business layer
Updating....
http://bbs.phpchina.com/viewthread .php?tid=25864&highlight=%BC%DC%B9%B9
http://www.bkjia.com/PHPjc/735143.htmlwww.bkjia.comtruehttp: //www.bkjia.com/PHPjc/735143.htmlTechArticleProject background enters the arena: There are many aspects that determine the performance of a website. A project often has particularities and needs to be targeted Actual analysis of real-life situations. Let’s take an example. Let’s take a customer case...