ankaios
ankaios copied to clipboard
Restarting the Ankaios Server while Ankaios Agents are running results in restarting workloads by agents
Reported by @krucod3:
Current Behavior
If you start an Agent and a Server and restart the Server, the Agent receives again the initial workload list. If inside it are workloads that the Agent recognizes as running it tries to update them in order to account for a changed start config. The update currently leads to a restart of the workload.
This restart can be avoided if the AgentManager or the WorkloadFacade can recognize that the new and the old WorkloadExecutionInstanceName are the same.
Expected Behavior
It has to be clarified if this is a desired behavior. Restarting the Server is not a use case in the scope of Ankaios. If we don't restart the workloads on update, we cannot restart at all ...
Maybe we just need to document the behaviour
Steps to Reproduce
See above