This is a service for revival of interruptible compute instances in Yandex Cloud Service
- Get Oauth token. How to.
- Paste it in file
systemd/env
YANDEX_OAUTH_TOKEN=<tour_token>
CONFIG_PATH=/etc/yacloud_revival/config.yaml
-
Get desired
instance_id
list and place it inconfigs/config.yaml
. -
Run
sudo chmod +x setup.sh && ./setup.sh
-
To check everything is ok You can run
sudo systemctl status yacloud_revival.service
In file configs/config.yaml
You can configure how often the Instance Revival should ping your desired hosts. You can set general value check_health_period
and override it for each instance.
If something went wrong you can view logs in file /etc/yacloud_revival/general.log
. This file is erased once a day by log_eraser.service
on log_eraser.timer
.