Answer the question
In order to leave comments, you need to log in
How to properly deploy an application to multiple servers?
Could you tell me, please, how to properly organize the laying out of releases on several servers?
It is planned to scale the project: put 3 servers instead of one and a balancer, such as HAProxy or Nginx, which will distribute requests between them.
Now I have the following deployment process:
1. on the PC git push
2. on the server git pull
3. on the server npm run build
If the number of servers increases, you need to somehow synchronize the data between them. I haven't studied CI/CD tools yet, maybe this is what I need. But until I looked at them, I have a question, why not set up the servers so that one of them is the "master", and the other two simply pull all changes from it via rsync?
Answer the question
In order to leave comments, you need to log in
why not set up the servers so that one of them is the "master", and the other two just pull all the changes from it via rsync?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question