For websites with extremely high access traffic, tens of thousands or even hundreds of thousands of traffic a day, this puts a great burden on the website server. how can we achieve load balancing? Below are a few simple methods: First, check whether the server hardware is sufficient to support the current traffic. Server performance is very important. Common P4 servers generally support up to 0.1 million independent IP addresses per day. if the traffic volume is larger than this, you must first configure a dedicated server with higher performance to solve the problem, otherwise, it is impossible to completely solve the performance problem. Second, optimize database access to minimize CPU load An important reason for excessive server load is that the bottleneck can be effectively broken only when the CPU load is too high and the server's CPU load is reduced. However, static pages can minimize the CPU load. The front-end is fully static. of course, it is best to achieve it without having to access the database at all. However, for websites with frequent updates, static content often cannot meet certain functions. Third, prohibit external leeching to reduce server traffic pressure Image or file leeching on external websites often results in a lot of load pressure. Therefore, we should strictly limit external leeching on images or files. Fortunately, at present, we can simply use refer to control leeching, apache can disable leeching through configuration. IIS also has some third-party isapis to implement the same function. Fourth, control the download of large files Large file downloads consume a lot of traffic, and for non-SCSI hard disks, large file downloads consume CPU, reducing website response capabilities. Therefore, we recommend that you do not download large files larger than 2 MB. Currently, many free Web websites provide image sharing and file sharing functions. Therefore, you can upload images and files to these sharing websites as much as possible. Fifth, use different hosts to distribute major traffic, and use large-bandwidth servers to meet access needs. Put files on different hosts and provide different images for users to download. in this way, several types of traffic can be distributed to each server, reducing the pressure on the master server, in addition, the high access traffic is also a great test for server bandwidth and traffic. Therefore, large-traffic sites need to be selected as large as possible, with no limit to traffic. U.S. servers For ultra-large traffic sites, we recommend FDC data centers in the United States, the largest unlimited traffic data center in the United States. Each machine has a bandwidth of Mbit/s or Gbit/s, it is also suitable for large e-commerce websites and large-traffic websites. some customers are worried about the unsatisfactory speed of Mbit/s sharing, which can be assured that the FDC data center shares Mbit/s, the maximum bandwidth is 30-50 M, and the maximum bandwidth of the G port is-M. The minimum fee is 890 RMB! You can also choose from higher configurations and higher bandwidth! All servers in the FDC data center can apply for 60 free IP addresses and 5 independent IP addresses. adequate IP address resources play a good role in SEO optimization and website indexing, very popular with webmasters and SEO technicians! |