I
I
icyken2013-08-01 13:32:35
Load balancing
icyken, 2013-08-01 13:32:35

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

5 answer(s)
3
3vi1_0n3, 2013-08-01
@3vi1_0n3

If you are planning to scale, then it is better, IMHO, to use the balancer right away. For example, haproxy

K
Koroed, 2013-08-01
@Koroed

for example , Round robin , or put a balancer

T
tgz, 2013-08-01
@tgz

anycast won't work?

V
Vasily, 2013-08-01
@VasiliyIsaichkin

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)

K
kenny_opennix, 2013-08-01
@kenny_opennix

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 question

Ask a Question

731 491 924 answers to any question