Answer the question
In order to leave comments, you need to log in
Serving static content under heavy load
On one project, the authorities came up with the idea of giving partner sites a banner + a small JS file (when you click on the banner, the script receives the current coordinates of the user and transfers them to our site in the parameters). Banner + JS is a BN package. For each partner there may be different or only their own packages.
And the problem is that the first partner has 2.5 million uniques a week. And there are plans to find several more such partners, i.e. the load will grow immediately and by many.
And here's the problem, how to organize such a distribution in the best way?
The project itself is written in PHP.
As an option, we considered CDN, but we still have the logic to show only a certain number of times, the ability to pause the display, etc.
Searching the web, I found a good presentationwww.highload.ru/papers2009/12189.html
As a result, I came up with the following system. And I would like to hear the opinion of experienced habravchans, how correct this solution is, and perhaps there is something more elegant.
SS - Server of statics, stores and distributes statics
LB - Load balancer for starters, apparently software.
MS - (Main server) Server of the main project
CM - (Content manager server). SS control server, receives commands from MS and sends commands to SS.
Answer the question
In order to leave comments, you need to log in
You've got something.
If partners, unlike you, can easily withstand such a load, give them banners and a js file for storage.
You can save on LB by transferring the load to DNS or Routers.
Give from stats.
In general, I don’t see a problem with 2.5 million (although it’s not clear how many hits there will be) the average Dedik will withstand it without problems - it’s small banners that will directly give them from memory, the problem will be only in the OS settings and channel width.
If these are hits, then these are only 56 hits per second (for two files) - even Apache can handle it, I'm not talking about nginx.
You will rest only on the channel width and the performance of the OS and network card.
One dual-processor (2 Xeon 2.4Ghz, Pentium-4 times) Linux Debian 4.0 + SCSI on Nginx withstood 100 million static hits per day. Now processors are much faster, and SSD has appeared.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question