PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Wednesday, September 28, 2022

[FIXED] How to deploy to multiple servers on the load balancer?

 September 28, 2022     continuous-deployment, load-balancing, udeploy     No comments   

Issue

Let's say I have 8 servers connected to the same load balancer, currently with app v1.0. When version 1.1 comes in, what's the right process to do the deployment?

e.g. if I deploy to 4 servers at a time. So I take out 4 from the LB first, install the v1.1. Then what? Take out the other 4, (from here to next step is downtime?), get the first 4 in to LB, ...

I am using uDeploy to automate the deployment, don't know how this works extractly.


Solution

So without getting too specific... when dealing with load balancers, you want to direct traffic to your 4 non-updated servers while you update your other 4 soon to be updated servers. Once those are completed, redirect your new user traffic to the 4 updated sites. You can either wait for users to disconnect and reconnect to the new servers or force their disconnection. This can vary vastly depending on what type of application you have though.



Answered By - Preston Martin
Answer Checked By - Terry (PHPFixing Volunteer)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing