Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8437223
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T07:22:25+00:00 2026-06-10T07:22:25+00:00

I have a small- to medium-sized Django project where the client has been forced

  • 0

I have a small- to medium-sized Django project where the client has been forced to change hosts. The new host convinced them they definitely needed a couple of web servers behind a load balancer (and to break the database off to a third server). I have everything ported over to the new setup, but I can’t make it live yet as I’m not sure what’s the best way to handle file uploads on the site as they will only get pushed up to the server the user is currently connected to. Given the three servers (counting the db which could double as a static file server if I had to), what’s the cleanest and easiest way to handle this situation?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T07:22:26+00:00Added an answer on June 10, 2026 at 7:22 am

    Simple solution which has some latency though and is not scalable beyond several servers – use rsync between hosts. Simply add it to cron to do upload dir sync both ways, also sticky session would help here – so that uploader would see their file as available immediately, and other visitors will be able to get the file after the next rsync completes.

    This way you also get a free backup.

    /usr/bin/rsync -url --size-only -e "ssh -i servers_ssh.key" user@server2:/dir /dir
    

    (you’ll have to have this in cron on both servers)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a small to medium sized project to work on and I wanted
I have a small- to medium-size project that I am doing for my software
For a small/medium sized project I'm trying to figure out what is the 'ideal'
First, I only have experience building small-medium sized websites with php so forgive me
I'm starting a small/medium-sized python project, likely in Test Driven Development. My backgrounds are
I have a web app that I provide to small to medium-sized businesses as
I have small test app: Socket socket = new Socket(jeck.ru, 80); PrintWriter pw =
I'm currently maintaining a small-medium sized java web application (using only plain JSPs/Servlets) that
In my shop we currently develop what I would consider small to medium sized
Generally, my development has only covered small to medium size companies and e commerce

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.