3

I am using Django 1.7, Gunicorn and Nginx for my app. It is hosted on GCE VM instance.

I want to store all my user uploaded content in Google Cloud Storage, so that it is easily accessible in case the traffic increases and I have to use multiple VM instances behind a HTTP/Network load balancer.

Given that Google does not allow attaching a storage disk to multiple VM instances in write mode, Google Cloud Storage looks like the only option. I want to use Google Cloud Storage as a file system or something similar to that.

Please let me know if there are any other options.

Misha Brukman
  • 12,938
  • 4
  • 61
  • 78
Mahammad Adil Azeem
  • 9,112
  • 13
  • 57
  • 84

1 Answers1

2

Sounds like you want to use the Google Cloud Storage Python Client Library from your Django app to access GCS.

See my other answer for a list of alternatives (the original question was about persistent disk, so GCS is one of the options, as you have already discovered):

If you want to share data between them, you need to use something other than Persistent Disk, e.g., Google's Cloud Datastore, Cloud Storage, or Cloud SQL, or you can run your own database (whether SQL or NoSQL), a distributed filesystem (Ceph, Gluster), or a file server (NFS, SAMBA), among other options.

Community
  • 1
  • 1
Misha Brukman
  • 12,938
  • 4
  • 61
  • 78