Efficient cache class with access to 1W pages per second The server can't carry it.

Source: Internet
Author: User
Tags delete cache
For efficient cache class, access 1W pages per second, each page is not the same, may be millions,, want to try the cache processing, the server can't carry Ah, find a cache class, seemingly did not solve the load problem.





 Cache_life) {unlink ($file); }}}//callback function Auto_cache Ob_start (' Auto_cache ');}    else{//is not a GET request to delete the cache file. if (file_exists ($cache _file)) unlink ($cache _file);}? >




Great God, help me see!!!!!!.


Reply to discussion (solution)

With this high throughput, file caching is not possible.

How do you cache it?

With this high throughput, file caching is not possible.
Then what?????

Of course, the server is changed, your volume is over the portal station.

Aren't there memory-based cache software and databases?
You can choose a model based on your hardware configuration and operating system.

Aren't there memory-based cache software and databases?
You can choose a model based on your hardware configuration and operating system.

Hehe actually I said exaggerated some,,, did not visit so much, is to find that the access is much later opened very slowly,,
and CPU occupied a lot,, delete cache, looks better,,, please master to see if it is my cache write some problems.

Aren't there memory-based cache software and databases?
You can choose a model based on your hardware configuration and operating system.

About the peak, visit 20 times per second, a total of 30 sites, so there are 60 times

First optimize the code and SQL Bar, and then the file separation, caching, the basic can solve most of the high concurrency, if not yet explain your amount is not the general technical can solve, see Yahoo, Google how to do it.

About the peak, visit 20 times per second, a total of 30 sites, so there are 60 times

There are many factors that affect the speed of website access, such as database pressure, server pressure, bandwidth pressure, and so on, if you are the title of the Million times per second PV, then I said before any one of the server can withstand, you have to do server cluster. If you say 20 times per second, in my experience the database and the server are stress-free, and only bandwidth can cause bottlenecks under this traffic. You count your page. The total size of all resources multiplied by 20 exceeds your bandwidth.

There are many factors that affect the speed of website access, such as database pressure, server pressure, bandwidth pressure, and so on, if you are the title of the Million times per second PV, then I said before any one of the server can withstand, you have to do server cluster. If you say 20 times per second, in my experience the database and the server are stress-free, and only bandwidth can cause bottlenecks under this traffic. You count your page. The total size of all resources multiplied by 20 exceeds your bandwidth.

The current discovery is that the number of cache files is too large, resulting in each access call to cache files, occupy resources,

Hope Master answer, heavy Kimsangxia!!


There are many factors that affect the speed of website access, such as database pressure, server pressure, bandwidth pressure, and so on, if you are the title of the Million times per second PV, then I said before any one of the server can withstand, you have to do server cluster. If you say 20 times per second, in my experience the database and the server are stress-free, and only bandwidth can cause bottlenecks under this traffic. You count your page. The total size of all resources multiplied by 20 exceeds your bandwidth.

The current discovery is that the number of cache files is too large, resulting in each access call to cache files, occupy resources,

Hope Master answer, heavy Kimsangxia!!
Freemaker into a static web page

  • 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.