K
K
Kirill Firsov2011-12-04 18:39:09
Clustering
Kirill Firsov, 2011-12-04 18:39:09

Server clustering

Hello.
There are 3 servers:
1 - The site on which the images are uploaded, 2 and 3 are the servers where the images should be uploaded.
Website developed in PHP.
Interested in the question: how to upload files from the site to the other 2 servers.
Sending a POST file with a CURL request comes to mind, but maybe there are some other more convenient ways to solve it?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Andrey Burov, 2011-12-04
@BuriK666

If the channels between the servers are good, then NFS, GlusterFS, Luster, etc. will suit you.

P
Puma Thailand, 2011-12-04
@opium

ngs.ru lays out pictures on servers using webdav,
as an option to do it using csync, it uses inotifi to detect new files in the directory.

P
Perkov, 2011-12-05
@Perkov

Do you really need a cluster? Maybe just on servers 2 and 3 nginx ask to go for pictures on server 1? You can come up with a lot of perversions - starting from storing pictures in the database in blobs, ending with an external glass raid.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question