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

  • Home
  • SEARCH
  • 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 871413
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T10:38:14+00:00 2026-05-15T10:38:14+00:00

SO i am in the process of setting up a load balanced configuration for

  • 0

SO i am in the process of setting up a load balanced configuration for our web application with nginx. I would most probably go with sticky sessions to avoid session issues on the load balanced setup or maybe even go with a database session handler.

However there are 2 concerns that i have right now:

1 : When deploying from SVN ( we use beanstalk ), it would ofcourse deploy to one machine, how to go about deploying across all web servers?

2 : I am using S3 to store user files, however i do keep a local copy incase S3 goes down (like it did a few days ago), what would be the best approach to sync these user files across all web server?

Any pointers would be appreciated.

  • 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-05-15T10:38:15+00:00Added an answer on May 15, 2026 at 10:38 am

    SO i am in the process of setting up a load balanced configuration for our web application with nginx

    OK

    I would most probably go with sticky sessions to avoid session issues on the load balanced setup

    So you’re not going with load balancing, you’re looking at load splitting?

    Don’t.

    Done properly, load balancing means that your chances of a loss of service are reduced exponentially by the number of nodes. Say the probaility of an individual node is 0.05 (i.e. 95% uptime), then the probability of losing both nodes is 0.05 x 0.05 = 0.0025 (99.75% uptime). OTOH if you split the load as you suggest, then you lose 1/N of your availability whenever a node fails, and the probability of losing a node is N*0.05, so you’re only getting 96.75% availability with 2 nodes.

    Regarding deployments across multiple nodes, the way I used to do it was to:
    1) take a node, call it node1, offline
    2) apply release to node1
    3) verify that the deployment was successful
    4) bring node1 back online
    5) take node2 offline
    6) rsync from node1 to node2
    7) run rsync again to check it had completed
    8) bring node 2 back online
    then repeat 5-8 for each additional node

    what would be the best approach to sync these user files across all web server?

    The method above is for deployments – for user submitted data you need to distribute the content at the time it is submitted. I use custom scripts for this. In the event that a node is offline when the update occurs, it can be resynched (steps 6+7) before making it available again.

    The scripts I used sent a request to a node requesting that it copy from the originator of the request – so it could run with short timeouts and guaranteed that the source content was available.

    In terms of implementing the load balancing – although you can spend lots of money buying sophisticated hardware, I’ve yet to see anything which works better than round-robin for lots of reasons – not least that the failover is implemented transparently at the client.

    HTH

    C.

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

Sidebar

Related Questions

I'm in the process of setting up a new website which would greatly benefit
I'm a little stumped. We have a load balancer in front of our web
We're in the process of setting up a new framework and way of doing
I am in the process of setting up CruiseControl.NET. The problem I am having
I'm in the process of setting up a php project, but am not very
I'm currently in the process of setting up a continuous integration environment at work.
We're currently in the process of setting up a source control/build/and more-server for .NET
I'm setting up my team's source control + build/integration process from scratch. We were
I'm printing a document by creating a System.Diagnostics.Process object and then setting the StartInfo
There is a conversion process that is needed when migrating Visual Studio 2005 web

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.