N
N
nezzard2016-07-15 15:51:51
linux
nezzard, 2016-07-15 15:51:51

Is it possible to automate vps reboot?

Good afternoon, the essence of the question is whether it is possible to automatically reboot the server if it freezes, for example, due to a lack of RAM?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
D
Danil Biryukov-Romanov, 2016-07-15
@urtow

Can.
The technical implementation depends on:
- Is it a VPS on your server or are you renting a VPS
- What VPS technology (KVM, OpenVZ, LCX)

S
sim3x, 2016-07-15
@sim3x

You don't need to do this. You need
to set up memory limits for the application in lxc

L
Lindon_cano, 2016-07-15
@Lindon_cano

Linux stuck with lack of RAM?
Tales in the next section.
OOM will come and kill all unnecessary ones, and there will be no server hangup.
And so you can automate reboots, even if you want to reboot by crown.
You can also enable reboots in case of panics and oops, read man on sysctl.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question