ENT-14434: Move reactor-pluigin logic into cf-reactor daemon loop - #6335
ENT-14434: Move reactor-pluigin logic into cf-reactor daemon loop#6335victormlg wants to merge 1 commit into
Conversation
2e7ed0e to
dfd91c6
Compare
larsewi
left a comment
There was a problem hiding this comment.
Please add some more context. E.g., explain why chose to make cf-reactor plugin its own process. Also I expected cf-reactor in nova to already fork out and make it a daemon, but I have not seen this code removed.
larsewi
left a comment
There was a problem hiding this comment.
There one major issue here. If the nova fork dies, then core will continue running and no one will restart the nova reactor again. With this architecture, core must be responsible for restarting the nova fork if it dies.
553a07c to
aa6d538
Compare
7228cb8 to
be91f14
Compare
larsewi
left a comment
There was a problem hiding this comment.
Please write a test where you kill the nova cf-reactor and see that it comes back. Maybe also test reaching that limit that you set.
be91f14 to
a7fd033
Compare
|
I updated the context of this PR to match what it currently contains |
a7fd033 to
5d32781
Compare
5d32781 to
9effa41
Compare
9effa41 to
03575f1
Compare
The code for the reactor-plugin was split up into different functions to be integrated inside the new cf-reactor daemon in core. The implementation was tweaked to use select(2) instead of poll(2), to support cf-reactor on different platforms. However, the reactor-plugin remains linux only. Ticket: ENT-14434 Signed-off-by: Victor Moene <victor.moene@northern.tech>
03575f1 to
1b638a6
Compare
Context
So originally, we wanted to have two daemons: one for cf-reactor and one for the agent driven cfengine code. Then it has been decided to merge these two binaries into a single one. In this PR, we move the cf-reactor daemon to core, split the reactor-plugin in different functions, and integrate them inside the daemon loop of cf-reactor
Merge together: https://github.com/cfengine/enterprise/pull/996 https://github.com/cfengine/nova/pull/2696