Best File Download Solution for Load Balanced Servers

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?

  • Upload images to the clouds?
  • Saving Images in a Database
  • Upload images to the MysQL server (and not to the database, file system).
  • ...?

Thanks for your advice.

+5
source share
3 answers

Rsync, , , wordpress, rsync, , , rsync , , ls . , .

nfs-, , .

"" Amazon S3, URL .

- db.

+2

GlusterFS, , Amazon S3 .

+1

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.

0
source

All Articles