Django clustering - How to manage Image uploading

28 views
Skip to first unread message

Gabriele Morgante

unread,
Sep 9, 2015, 7:54:46 AM9/9/15
to Django users
Hi,

I developed a Django 1.8.4 webapp and now I've to deploy it in production environment. The app allows users to upload images on the server. My problem is that in a production environment I've many servers with django deployed and a load balancer. Than, how can I manage Image uploading in a clustered production environment? Is there a best practice?

Thanks.

Andreas Kuhne

unread,
Sep 9, 2015, 8:03:22 AM9/9/15
to django...@googlegroups.com
I would use something like Amazon S3 to store the images. I think that's the easiest way to do it. If you use the django-storages plugin, you can configure your servers to talk to S3 just like they were using local storage. You will never have any problems with diskspace and all of your servers will be able to get the information regardless of which server has uploaded it.

Regards,

Andréas

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/815dbc40-8251-41f2-8039-fd921164a682%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Robin Lery

unread,
Sep 9, 2015, 8:04:36 AM9/9/15
to django...@googlegroups.com

You upload all your images into s3.

--

nsbk

unread,
Sep 9, 2015, 9:29:56 AM9/9/15
to Django users
Or set up an NFS share if you don't want to rely on third party services

Reply all
Reply to author
Forward
0 new messages