A
A
Alex-KED2020-09-14 23:30:36
Nginx
Alex-KED, 2020-09-14 23:30:36

Distribution of files loads the server. Decision?

There are VDS: 4 cores, 4 RAM, nginx.
There are files for 100-200 mb.
With active downloading, the server goes down. Bandwidth sags, MySQL crashes.
5f5fcf7e7d221339063853.png

The obvious solution is to increase the performance of the server. And remove the direct link from the server...

But how to reduce the load on the server?
Limit download speed . I don't know a server level solution, advised this:

location /download {
    limit_rate 1000000;
    limit_rate_after 50000000;}

Yes, it limits the speed, but at the same time, the site becomes inaccessible for this user. And the speed is not fixed, it can sag significantly. On the chart, this is the penultimate plateau.

Installed a download manager for Wordpress . It also limits the speed, but the load on server resources has skyrocketed again (this is the last peak on the graphs).

Who will suggest an idea to solve this problem?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
ky0, 2020-09-14
@Alex-KED

The obvious solution is to not serve files from the DB server. And in general, move it, if possible, to a separate infrastructure, not necessarily your own.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question