I loaded the balancing of 2 web servers connected to 1 Mysql server. One of the functionality of the php application on servers allows users to upload images that should be accessible from any web server. What would be the best solution for this?
Thanks for your advice.
Rsync, , , wordpress, rsync, , , rsync , , ls . , .
ls
nfs-, , .
"" Amazon S3, URL .
- db.
GlusterFS, , Amazon S3 .
I would recommend downloading to a folder in the file system. Then, run the cron job rsync between folders between the two servers periodically. You can also run the rsync run with the image loaded. Storing images in a database can be complicated and can damage your database.