开发者

Working on a django site and wondering would it be wise to store my media on an nfs mounted partition?

First, I only have experience building small-medium sized websites with php so forgive me if this question seems asinine. I want to know if it is a common /accepted/wise practice to store media (user uploaded p开发者_JAVA百科hotos,videos,etc) in a mounted nfs share? I was just going to put all media in a /media folder like I always have done in php, but on a huge site, having 1 million+ images in one directory would seem... not the scalable way to proceed.

Am I at least on the right track with my NFS train of thought?

Cheers!


I think you are probably getting ahead of yourself. You can always migrate the media to a separate server later. I don't think NFS would necessarily be the way to go anyways. Better to just serve the media from another box directly. If you want to design this to be scalable in advance, think about using GridFS, perhaps. It's easy to work with from Python, and you could even use it as a storage backend for Django.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜