Yea, the "cleanup" functionality was originally added for cases where someone willingly want to not reconnect to running containers (for backwards compatibility reasons) during upgrades. To be honest, I don't think anyone ever uses that in production; most just delete the `latest` symlink as suggested by the log message. This is mainly because changing the `recover` flag value to `cleanup` and reverting it back to `reconnect` is PITA.
On Mon, Nov 6, 2017 at 3:17 AM, Benno Evers <bev...@mesosphere.com> wrote: > Hi, > > I was just reading through the agent source code, and was wondering about > the purpose of the "--recover=cleanup" flag. The description mentions > "incompatible agent upgrades", but I was wondering if anyone actually uses > it for that? If so, would you mind sharing some details, e.g. do you run > the command manually or is it part of a script? > > --recover=VALUE > Whether to recover status updates and reconnect with old executors. > Valid values for `recover` are > reconnect: Reconnect with any old live executors. > cleanup : Kill any old live executors and exit. > Use this option when doing an incompatible agent > or executor upgrade!). (default: reconnect) > > > Best regards, > -- > Benno Evers > Software Engineer, Mesosphere >