'Restart Express APP with HA Proxy without Breaking Older request
Objective: I want to create an env with HA proxy and express such that no process stops in between its task in express (100 % availability is not a priority)
So I am thinking to deploy my express server on 2 PORT( server1 3000 && server2 3001)
Now I want to tell the HA proxy to reverse proxy on one server that I want(the server which started latest with new changes)
My Approach:
Current scenario:
server1 3000 last reload on T1 & serve2 3001 last reload on T2. T2 < T1 (server1 is the last one to restart) && HA proxy is serving through server1
MY script Idea It will restart server2 and reload HA proxy and tell Him now reverse proxy on server 2 (may create 2 conf files for HA proxy and reload with one of the conf files as a requirement)
how to load balance for the above criteria
OR any other approach to my problem that is better.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
