Healthcheck
In service oriented architecture happens that you have a lot of services. They can crash sometimes on Heroku or else where you host them. This gem will help to quickly check their heart beat.
Installation
$ gem install soa_doctor
Usage
If you install the gem it'll give the executable: $ healthcheck --help
For example you have YAML file with your services listed:
services:
google: "http://google.com"
yahoo: "http://yahoo.com"
yandex: "http://yandex.com"
So you do
$ healthcheck -f you_yaml_file.yaml
You can always run
$ healthcheck --help
for more options or just to get a simple help.
The output would be a table or services and their statuses.
P.S: One more note, since soa_doctor uses escort it stores a ~/.healthcheck file at your home dir. It looks like this:
{
"global": {
"options": {
"file": null,
"config": null,
"verbosity": "WARN",
"error_output_format": "basic"
},
"commands": {
"escort": {
"options": {
"create_config": null,
"create_default_config": null,
"update_config": null,
"update_default_config": null
},
"commands": {
}
}
}
},
"user": {
}
}
You can modify the file dir so it'll pick it up as default. So you can run simply: $ healthcheck And get the desired output.
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request