Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
ruhighload.com
https://blog.selectel.ru/balansirovka-nagruzki-osn...
I wouldn't use AMP at all, from LAMP! Would use nginzx/redis/python/java/go/mongodb/elasticsearch/go/scala everywhere else.
And of course, it all depends on the hands!
First of all, change Apache to Nginx
If you can still squeeze some performance out of php and mysql, then a priori it won’t work out of apache
After you can already think about changing the database to postgresql/mongodb/rethinkdb/elasticsearch (depending on the data model)
Well, at the same time and the execution platform can be changed to a faster one.
The performance of 1 such server with direct hands will be on a par with a cluster of 10 LAMPs, if this is not enough, then the questions "how to make a cluster" will in theory not arise
how would you make a failover LAMP cluster for highly loaded WEB applications?
First level. DynDNS + a couple of Frontend servers + a couple of Backend servers.
If the main Front server fails, we redirect all traffic to the second one. In case of failure of one Backend, we redirect all traffic ...
Well, here you need to understand that these should be different physical servers and the frontend + backend bundle should not be in the same room, with a different bundle. In order to avoid the risk of flooding chtoli :)
There is a similar option, but with virtualization. During an accident on the main link, a container with a backup is automatically launched.
As you understand, everything should be automated, even switching ip addresses to DynDNS in this case, you do not have to break at 4 o'clock in the morning and understand the cause of the accident.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question