C
C
ChemAli2013-12-18 11:25:59
System administration
ChemAli, 2013-12-18 11:25:59

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

6 answer(s)
V
Vasily, 2013-12-18
@VasiliyIsaichkin

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)

B
Boris Syomov, 2013-12-18
@kotomyava

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.

M
Melkij, 2013-12-18
@melkij

Chef and company.

N
Nikolai Vasilchuk, 2013-12-18
@Anonym

Clone the virtual machine and that's it.

I
Ilya Evseev, 2013-12-18
@IlyaEvseev

www.rexify.org

V
Vlad Zhivotnev, 2013-12-18
@inkvizitor68sl

compile the deb package and install it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question