Gábor Gyimesi created MINIFICPP-1784:
----------------------------------------

             Summary: Restart agent after C2 property update
                 Key: MINIFICPP-1784
                 URL: https://issues.apache.org/jira/browse/MINIFICPP-1784
             Project: Apache NiFi MiNiFi C++
          Issue Type: New Feature
            Reporter: Gábor Gyimesi


Some properties are only applied after the MiNiFi agent is restarted, so to be 
more straightforward it's better to restart the agent after every C2 property 
update.

To be compliant with the kubernetes use case, we should also add a script in 
the docker image to start the agent and restart it when it stops due to 
property update. For this there should be a special exit code to indicate the 
shutdown happened due to property update. In native Windows and Linux 
environments this should be taken care of by the windows service and systemd.

This change should also pay attention to batch C2 commands, as multiple C2 
commands with multiple updates could happen in a single heartbeat response. If 
there is a property update in a heartbeat response with multiple C2 commands, 
the shutdown should only happen after all C2 commands are processed.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to