S
S
Syomka Gavrilenko2019-10-27 04:29:05
System administration
Syomka Gavrilenko, 2019-10-27 04:29:05

Does it make sense to use Docker?

Good afternoon!
At the moment I have a vps server on debian, characteristics: 1 core 2.4 GHz, 1 GB of RAM, 30 GB of disk.
The php application is running on this server. ISPmanager is used to manage the server.
Because of ISPmanager, I have restrictions on using the software. There is also a problem with memory leaks, which makes it necessary to restart php-fpm every few hours
. The task that I set for Docker is:
1) Fine-tuning each service.
2) raising the load balancer, running several versions of the php backand and checking their work. reboot on crash or memory leak.
Those who are in the subject, tell me how it is justified (docker-compose is already built and ready to go)?
What is the best way to orchestrate docker-compose, how to update the application without downtime, how to calculate the necessary resources for containers?
PS do not offer to fix the error in the application :)

Answer the question

In order to leave comments, you need to log in

4 answer(s)
I
index0h, 2019-10-27
@index0h

The resource impact from docker is quite low, but for such a short server it can be noticeable.
It will not provide fine tuning, but it will add difficulties.
It's funny about the load balancer. What's the point of bothering with load distribution on a calculator?
As for the leak, it's worth fixing. As for crash recovery, look in the direction of supervisord, as for killing a gorged process, oom killer.
For dev purposes - justified, for orchestration within the same machine - justified.
Yes, as if docker-compose itself orchestrates quite well on one machine.
It's a matter of the development process. The application itself must be designed in such a way that at least two release versions can exist at the time of release.
But, you have php-fpm rebuilt by leak, don't worry.
Based on average and peak load.
https://www.youtube.com/watch?v=lHpVxk9TPA8

M
Maxim Barulin, 2019-10-27
@Slavenin999

State? Docker on a micro VM? What is there to balance? And yes, why balance something inside one VM? It is necessary to balance between several. In this case, you can wrap puffy applications in a docker, install nginx without a docker on a separate vm and configure proxying.
IMHO, on such a VM, the docker looks like an overhead

V
Vitaly Karasik, 2019-10-27
@vitaly_il1

The php application is running on this server. ISPmanager is used to manage the server.
Because of ISPmanager, I have restrictions on using the software. There is also a problem with a memory leak causing php-fpm to be reloaded every few hours.

Start by managing the server through the CLI, this will solve some of the problems.
You don't need docker to reboot either.

D
Dmitry Denisov, 2019-10-28
@denisov_root

Aaaaaah, just tweak php-fpm
pm.max_requests = 300 or 500
PS Just tweaking the software will solve the problem. No need to shoot yourself in the foot trying to transfer everything to containers)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question