Answer the question
In order to leave comments, you need to log in
Rapid deployment of copies of web servers - is it real?
I am a developer, administration is still difficult, so a lot of questions.
A web backend is being built for the desktop client of the application. On the backend, a balancer with nginx sticks out, followed by identical application servers (with the same data set and software set) that receive, process requests and return responses (text and files). I want to quickly add application servers.
Is it realistic to automate the process to such an extent that adding a server will come down to raising the OS on the machine and running a script that would independently do the following:
- setting up a swap file or swap partition
- installing the nginx / mysql / php stack and related packages from the repositories
- copying data (files and mysql databases) from the specified location, including config files for software and deploying server php code
- adding cronjobs
- starting daemons
Is this all real? If necessary, I would like to quickly buy additional machines (vps) and get a machine ready for launch, and then add it to the balancer list. I suspect that there may be ready-made practices and solutions, but I did not find it. They are?
Answer the question
In order to leave comments, you need to log in
Absolutely real and so many do. At one time, I had such an "all-mogun" script weighing under 1 mb :) (8 roles, any virtualization, and so on and so forth - the most complex system of 12 servers was deployed by running the script)
There are various tools for this, starting with Chef, Puppet, and other configuration management systems, and ending with shell scripts written for your specific task.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question