The overall architecture of large-scale network project discussion of the ring _php tutorial

Source: Internet
Author: User
Project background

Enter the ring:

There are many aspects to the performance of a site. A project is more often specific and needs to be analyzed realistically. Just take an example.

Customer Case:

Case background:
A customer is the main content of the site:
1. Information Portal System
2. Video Search engine Center, Videos Publishing system
3. User SNS Network
4. User Single sign-on SSO center
5. Project Management bug, Customer tracking system, Web calls system
6. Community system: Community with IM, letters and other common systems
7. Separate comment system, for publishing system calls
8. Advertising, hot spot information bidding system, to be linked to all group systems
9. There are related Web calls system, system related data and C/s system in enterprise. ArchitectureCRM/ERP system has data synchronous transmission requirements ...

10. Additional functional systems at any time based on business development
The above system requires the user Experience program response should not exceed 2 seconds, the number of users registered nearly 100 million people, visit the amount of PV nearly 200 million PV, daily independent IP 3.004 billion IP, peak time maximum of 50000
The number of active users is almost 5 million (two weeks at least one site user)




Number of server devices

Three F5 or LVS.
20 Mainframe Machines
500 around 06 Advanced Server configuration
300 around 08 Advanced Server configuration
There is also a resource, is a distributed computing server with nearly 1000~5000 low-end Linux around the world

Operating system mainly uses Linux, part of the old C/s ArchitectureApplication software with Windows 2003+sql layout
PHP 5.2.6
Apache/lighttp/nginxOr your own custom Web server.
MySQL ndb+mysql m/s
MogileFSImage Distributed Storage
MemcachedObject Distribution Store SOLRFull-Text search engine
.....


Bandwidth available for selection distribution (reference):




Other servers are distributed in Level two, three-node deployment squid or varnish CDN network.


Project load Balancing architecture principles


Software: Lvs,linux Virtual Server or F5 device Varnish

    • High Scalability: Hight Scalability

    • High Availability: Hight availability

    • Manageability : Manageability

    • Efficiency and affordability:


The main technical blocks involved in load balancing processing are:

1. Payload Scheduler: Load Balancer:
Take user requests to the server node closest to the user according to Geodns and Ipvs

2. Connection pool:Server pool:
Take the user to the request resource server based on the user's request

3. Shared storage: Share Storage:

Resource database, attachment, picture resource requested by user


two. Application layer Architecture

Group Framework Overall Core ArchitecturePhp+mysql

Framework PHP Directory:

framework of framework//Group master Development


Portal//Group Portals model framework

Update in ....

Three. Back-End Database processing module (C,perl,shell)

Update in ....

Four. Database Architecture

1.Hash Sub-table algorithm
2.MySQL Master/slave Master-Slave Architecture
3.MySQL NDB Cluster
4. Data sheet design for each major business layer

Update in ....
Http://bbs.phpchina.com/viewthread.php?tid=25864&highlight=%BC%DC%B9%B9

http://www.bkjia.com/PHPjc/735143.html www.bkjia.com true http://www.bkjia.com/PHPjc/735143.html techarticle project background into the ring: the performance of the site is determined in many ways. More often than not, a project is more specific and needs to be analyzed realistically. Just take an example. Customer Stories ...

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.