A
A
Arman2015-02-24 09:32:19
Nginx
Arman, 2015-02-24 09:32:19

Are there ready-made solutions for distributing statics from several machines?

I look at the prices of my hoster and understand that it’s cheaper and more attractive, albeit more expensive, to get a couple of VPS at the lowest price, while getting:
- more space for the same money
- a separate channel (?)
- you don’t have to pay extra traffic after 1 TB, in total there will already be 1TB * number of machines
- if one falls, then we will give at least something from others
- distribution from several domains is faster
- backups are separate, make and raise faster
In general, I think it's a well-known practice.
I began to decide how to organize everything:
Since we are just distributing static, ideally, apart from a well-configured nginx, nothing is needed; He will look in one folder, from all this we make a template and raise new servers already from the template, on the main we only add IP addresses.
But how to upload files to such a server?
Options:
- use the ngx_http_dav_module and manage files on the server through the PUT methods and so on
- - what are the disadvantages? never worked this way. You need to add code, etc.
- mount a folder via SSH to the main server and work as with a local folder through the same php, the application will not understand the difference at all, only the speed will be different.
- - if there are several file servers, is it worth keeping them mounted all the time? What other disadvantages can there be?
Or maybe there is already something ready to organize it all faster? Or what practice that to do so it is not necessary?
thanks in advance.

5$ / 512Mb / 1Core / 20 Gb HDD / 1Tb
5$ / 512Mb / 1Core / 20 Gb HDD / 1Tb
5$ / 512Mb / 1Core / 20 Gb HDD / 1Tb
5$ / 512Mb / 1Core / 20 Gb HDD / 1Tb
!=
20$ / 2Gb / 2Core / 50 Gb HDD / 3Tb

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Salavat Sharapov, 2015-02-24
@desperadik

I also asked something like this: How to send MEDIA_ROOT to another host?

A
Alexey Huseynov, 2015-02-24
@kibergus

I correctly understood that you want to have a complete set of files on each machine and think, how would it be easier to maintain the same version on all machines, so as not to pour your hands on each separately? Allocate one machine as master, and synchronize the rest via rsync.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question