0

I have multiple django server instances handled by a load balancer. When I need to scale up, I replicate a clone of the server machine and add the new server instance to the load balancer.

I also use the admin interface in order to upload configuration files, which are stored localy using FileFields. This raises a problem, because the server instances become stateful and don't all share the same files.

This is what I'm asking:

  • What would be the correct way for storing files that need to be accessed from multiple servers?
  • Is storing the files in the DB a good idea?
  • Perhaps upload to S3?
odedfos
  • 4,491
  • 3
  • 30
  • 42

1 Answers1

0

There are several options, the most widely used approach is to use one of the network file systems, such as:

If you want to use Amazon S3 to store your files, take a look at RioFS project, it allows you to mount remote S3 bucket as local folder on your servers.

Paul
  • 1,262
  • 8
  • 16