Removing an Agent

Removing an Agent

To shut down and safely remove an agent node follow these steps.

  1. SSH to the agent node that you want to remove.
  2. Run this command to explicitly de-register and cleanly shut down tasks:

    $ systemctl kill -s SIGUSR1 dcos-mesos-slave
    

If an agent is already shut down, go to the Mesos /machine/down endpoint and instruct Mesos that it is dead and not just gone because of a network partition.