mardi 1 décembre 2015

Any way to make remote file MD5 generation faster?

We store our files across two servers and have our main site on a small SSD server, we're using a NFS mount to enable viewing of the files on the main site. We also display the MD5 on the file's download page.

Problem being, with large files the SSD server has to download the file before it MD5's it. This process can take awhile, making some pages take upto 10 seconds to load. We cant store the files locally as space is an issue.

Testing confirms that it's an issue with the download times causing the hangs.


root@SSD:/path/ md5sum file.zip a5044a42e53c6537165c6547a18da284 

This server had had to grab the file remotely from the NFS mount location, all in all this took 11 seconds before we get the MD5.


root@eu:/path/ md5sum file.zip a5044a42e53c6537165c6547a18da284 

This server, where the file is stored on the server without a mount MD5'ing takes a mere 1 second.


Any suggestions would be great, thanks.



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/1PsBLX6
via IFTTT

Aucun commentaire:

Enregistrer un commentaire