SpaceApi / validator

A micro-service to validate SpaceAPI endpoints.
Apache License 2.0
2 stars 2 forks source link

Add monitoring for the service #22

Closed dns2utf8 closed 7 years ago

dns2utf8 commented 7 years ago

So we catch it the next time it goes down.

dbrgn commented 7 years ago

Not necessary anymore, I added the auto-restart option to the Systemd unit file. Next time it goes down it should be restarted automatically.

alexdor commented 7 years ago

@dbrgn validator seems to be down

dbrgn commented 7 years ago

@alexdor thanks for letting me know, should be fixed now. restart config wasn't strict enough πŸ˜”

alexdor commented 7 years ago

That was fast, thanks for restoring it : )

dbrgn commented 7 years ago

Great to hear that there are actually people using it πŸ˜†

alexdor commented 7 years ago

We are writing our new API over at LambdaSpace, so I'm currently writing tests to validate that our response is compatible with the spec.

Please let us know if we can help with the main project as well : )

dbrgn commented 7 years ago

Cool!

Please let us know if we can help with the main project as well : )

We're still trying to sort things out with the original maintainer. Hoping to make the community around the SpaceAPI more active :)

alexdor commented 6 years ago

Hi @dbrgn, sorry for bugging you again but validator seems to be down

dbrgn commented 6 years ago

Hm, that is strange. The system service is enabled and restart policy is set to always. I'll have to investigate this further.

alexdor commented 6 years ago

Would it help if I dockerize the validator? I had great success keeping services up using Docker’s restart policies On Sun, 14 Jan 2018 at 12:55 Danilo Bargen notifications@github.com wrote:

Hm, that is strange. The system service is enabled and restart policy is set to always. I'll have to investigate this further.

β€” You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/spacedirectory/validator/issues/22#issuecomment-357503447, or mute the thread https://github.com/notifications/unsubscribe-auth/AICthwVZbBis46vXny8M1BpC1ctOvyL8ks5tKd01gaJpZM4ORPfG .

dbrgn commented 6 years ago

It's back up, and the problem should be fixed now.

The service is started through systemd. I think I just forgot the [Install] section in the service file πŸ˜„

rnestler commented 6 years ago

@dbrgn Maybe you could test it? If you just kill the process manually systemd should try to restart it no?

dbrgn commented 6 years ago

Yes, that works. The problem was that it wasn't started on boot in the first place, because there was no dependency on it from any boot stage. But now /etc/systemd/system/multi-user.target.wants/spacedirectory-validator.service exists (which it didn't before), so everything should be fine πŸ™‚