-
Notifications
You must be signed in to change notification settings - Fork 33
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
[WIP] Modernize start method #135
base: main
Are you sure you want to change the base?
Conversation
Continuing discussion started in #134:
Discussion regarding integration of the components was controversal as well suggesting tight integration of sbd into corosync. |
exit_status = inquisitor(); | ||
} else { | ||
sbd_detach(); | ||
inquisitor_child(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If I follow correctly, with "forking", the parent doesn't exit until it gets SIG_LIVENESS. Do we need to go all the way to "sd_notify" to keep the behavior similar?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As to my knowledge I'm afraid yes.
Unless of course we totally rely on the daemons talking to each other.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The comment in inquisitor_decouple btw. is a lie - I'll remove/correct it in the course of this PR - the inquisitor decouples once cluster-servant is online - meaning it has received it's own membership.
@@ -9,11 +9,16 @@ RefuseManualStop=true | |||
RefuseManualStart=true | |||
|
|||
[Service] | |||
Type=forking | |||
PIDFile=@localstatedir@/run/sbd.pid | |||
Type=simple |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we make the unit file changes a configure option defaulting to forking (for now at least), then we have backward compatibility with older pacemaker
"exec" seems more useful than "simple" if we don't want to go all the way to "sd_notify"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well, slightly as it needs the initial fork & exec to succeed but I guess not to an extent that it is really useful for us here.
Although we now have startup synchronization between sbd and pacemaker, but if to switch to
|
|
74b3aa3
to
7881bbb
Compare
Yes, it'd for sure make sense to have a build detection/option.
Good point. |
7881bbb
to
940ced8
Compare
As the name says focus is bringing sbd from a forking model to either 'simple' or 'notice' start-model in systemd.
Discussion started off in #134.
PR atm still contains changes from #134 - will be rebased once #134 is merged.