S
S
Stepan2012-11-22 10:57:42
Nginx
Stepan, 2012-11-22 10:57:42

Load balancing?

Hello.
It is necessary to implement load balancing on file servers.
A few months ago, most of the files were transferred to one server with a gigabit channel. Now the entire load has rested on the speed of the channel ...
There are several more servers in stock on which the channel is idle.
The option to expand the channel on a loaded server is not profitable in terms of money.
It is also not possible to make a full mirror of the server.
It is possible to take the most downloaded files from server 1 and scatter them over other servers.
Can someone suggest how to organize this?

Answer the question

In order to leave comments, you need to log in

5 answer(s)
P
Puma Thailand, 2012-11-22
@opium

Usually servers have two networks, connect two servers via the second networks and make a ball between them, you will have, as it were, a copy of all content on the second server.
That is, expand the channel to 2 gigabits

V
Vlad Zhivotnev, 2012-11-22
@inkvizitor68sl

The simplest and dumbest are static1.something.tld, static2.something.tld and the corresponding links in the application.

P
Puma Thailand, 2012-11-22
@opium

In general, they give everything themselves.
You take download statistics, choose the top one, copy it to other servers and distribute the most popular content from them.

M
Mike_Bazhenov, 2012-11-23
@Mike_Bazhenov

Make two servers, and cram the links to the servers into an array. Randomly choose the 1st or the second server, it's not that difficult and the computational load is 0.

S
script88, 2012-11-23
@script88

you can also use nginx (upstream)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question