-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Generic systemd service plugin is required #13
Comments
@lkocman: Is this something for the GSOC project you were talking about today? |
I agree that this could be useful. A plugin could check the To also be able to stop these services, they would need to be part of a slice. However the default behavior of the health-checker is to either reboot or isolate the emergency target anyway. |
The problem is that I'm not aware of any API which provides the |
Is not using the dbus a requirement? A lot of current plugins rely on systemctl already. But I was planning on experimenting with a plugin that simply checks if the system has degraded before health-checker was invoked:
An automatic update could cause invalid configurations or missing dependencies or similar issues. In these cases a database or webserver would outright quit, and a rollback could restore it. One should wonder however if using health-checker for this is desirable. A rollback could restore complete functionality to the system, but the default behavior of isolating to |
I think that systemd is a system manager and it is final source of information of what is working and what is not. You are correct that the some services are malfunctioning while the process is formally alive, but I think that this services should be enhanced to use sd_notify protocol for more fine-granted status exchange with the system manager. |
I guess this should be disabled for microos installations. Booting into the |
Only theoretical correct. Best example: kubernetes. kubernetes applications are working fine, but not together. So you need to check if the node could e.g. join the cluster or not.
MicroOS will go into the |
Plugins already have the stop functionality. So for your example, if you could write a check to check for the nodes healthiness, you could stop it and prevent it joining a cluster. In this example I think stopping the node via a plugin would be better then isolating to The problem with isolating to In any case like you said, having a generic systemd service wouldn't suffice for k8s applications anyway. So I am not sure if it is relevant to the discussion. I think a generic systemd service can bring a lot of value. But likely only when the behavior of isolating to Could you give an example scenario where The stopping functionality with the current default plugins is only configured for systemd-logind and rebootmgr (those services are stopped). But I don't think this does anything because the system changes target or reboots anyway. |
Hello,
I am exploring microOS. I think that health-checker is little complicated currently. As far as I understand I am forced to write a plugin (bash script) which just make
systemd status myservice.service
in my case.What if we could have some generic plugin to check that required services are up and running? From user point of view, I would expect to make my critical services as
WantedBy
some systemd target, and then the health-checker plugin would check this target.The text was updated successfully, but these errors were encountered: