update all the nodes with same data on a single update

Posted on

update all the nodes with same data on a single update – Managing your servers can streamline the performance of your team by allowing them to complete complex tasks faster. Plus, it can enable them to detect problems early on before they get out of hand and compromise your business. As a result, the risk of experiencing operational setbacks is drastically lower.

But the only way to make the most of your server management is to perform it correctly. And to help you do so, this article will share nine tips on improving your server management and fix some problem about apache-2.2, php, load-balancing, , .

Basically i owns 3 systems where one act as a Balancer Node , and the data for the websites resides over the other two.

The Problem is :

i want to update all the 2 nodes with the same data (means .php files , which my website is designed) when i update either one of them . note: .php source files have to be updated

what can i do?

Doubt :
i have also one doubt to ask can i basically call the group (balancer system and the nodes ) as a cloud ?

Solution :

You can try using a git repo…
basically what we do is we create a GIT repo and push our code to it, and on the webserver, we clone that repository on deployment path e.g. /var/www/html/xyz
and evry time a developer commits to the repo, there is a custom script that is triggered to pull new files from git to target webservers…

Leave a Reply

Your email address will not be published.