Ubic::Watchdog - watchdog code
use Ubic::Watchdog;
Ubic::Watchdog->run(...);
This module contains most of the code needed by ubic-watchdog script.
This is considered to be a non-public class. Its interface is subject to change
without notice.
- run($options)
- Run watchdog.
Options:
- glob_filter
- Arrayref with shell-style glob filters.
If this option is given and non-empty, only services matching
these filters will be checked.
- compile_timeout
- Compilation timeout for every service (see load_services() method
for details).
- verbose
- Enable verbose logging.
- match($name, $filter)
- Check if service name matches name filter.
- load_services($multiservice)
- Load subservices of given multiservice, using safe compilation timeouts.
(relatively safe, since it doesn't do fork, only sets
alarm).
- check_all(@services)
- Check all services in the list.
It will traverse to subservices if any of given services are
multiservices.
It will fork on every service and check them in parallel
fashion.
- check($service)
- Check one service.
ubic-watchdog - main watchdog script.
Vyacheslav Matyukhin <mmcleric@yandex-team.ru>
This software is copyright (c) 2015 by Yandex LLC.
This is free software; you can redistribute it and/or modify it
under the same terms as the Perl 5 programming language system itself.