Buenas

8 views
Skip to first unread message

jyanez...@gmail.com

unread,
Apr 16, 2018, 11:28:31 AM4/16/18
to Ansible Project
Soy nuevo en el grupo y en el mundo de ansible, necesito chequear el consumo de memoria de cualquier proceso para determinar si este esta por encima de un umbral, y de ser asi, reiniciarlo.

I am new to the group and in the ansible world, I need to check the memory consumption of any process to determine if it is above a threshold, and if so, restart it

Osqui

unread,
Apr 16, 2018, 12:15:54 PM4/16/18
to Ansible Project
I'd use MemoryMax= Systemd directive (https://www.freedesktop.org/software/systemd/man/systemd.resource-control.html) or, if not, LimitAS= one (https://www.freedesktop.org/software/systemd/man/systemd.exec.html). You should establish them in your desired .service/.slice file with a regular Ansible module to manage text file content
Reply all
Reply to author
Forward
0 new messages