Answer the question
In order to leave comments, you need to log in
Sharing the load on the servers, presumably at the DNS level?
Guys, I need the simplest solution for the problem.
Given: two (three, four, five) web servers.
Both have completely identical script code, and duplication of file storage.
For example, there is a test.jpg file, respectively, it is available at two addresses
server1.domain.com/test.jpg
server2.domain.com/test.jpg
How to distribute the load on two servers?
To make the file available at domain.com/test.jpg
It is not a problem to implement this with scripts, but I want a solution that does not depend on one “master server” that can fall.
In which direction is this? Route53? I would not want to use amazon products and services to be honest.
Answer the question
In order to leave comments, you need to log in
If you are planning to scale, then it is better, IMHO, to use the balancer right away. For example, haproxy
Route53 is a very suitable product, by the way, a good option (if you need it simply and quickly (although simple and quick solutions are not always optimal)
I also support 3vi1_0n3, haproxy is completely suitable for the task, nginx is also suitable for this purpose.
Balancing on Round robin is not the best solution, requests spread across servers, of course, everything can be given, but imagine the picture, one server is out of order and it is unavailable, clients will still be sent there. Thus there will be problems, as far as I know with rr problems with sessions.
You can use csync,DRBD for synchronization.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question