ArangoDB Starter Removal Procedure

Do not apply this procedure to machines that have an agent on it.

This procedure is intended to remove a machine from a clusterthat was started with the ArangoDB Starter.

It is possible to run this procedure while the machine is still runningor when it has already been removed.

It is not possible to remove machines that have an agent on it!The Agency needs to remain functional for the cluster to operate.Use the recovery procedure if you havea failed machine with an agent on it.

Note that it is highly recommended to remove a machine while it is still running.

To remove a machine from a cluster, run the following command:

  1. arangodb remove starter --starter.endpoint=<endpoint> [--starter.id=<id>] [--force]

Where <endpoint> is the endpoint of the starter that you want to remove,or the endpoint of one of the remaining starters. E.g. http://localhost:8528.

If you want to remove a machine that is no longer running, use the —starter.idoption. Set it to the ID of the ArangoDB Starter on the machine that you want to remove.

You can find this ID in a setup.json file in the data directory of one ofthe remaining ArangoDB Starters.

E.g.

  1. {
  2. ...
  3. "peers": {
  4. "Peers": [
  5. {
  6. "ID": "21e42415",
  7. "Address": "10.21.56.123",
  8. "Port": 8528,
  9. "PortOffset": 0,
  10. "DataDir": "/mydata/server1",
  11. "HasAgent": true,
  12. "IsSecure": false
  13. },
  14. ...
  15. }

If the machine you want to remove has address 10.21.56.123 and was listeningon port 8528, use ID 21e42415.

The remove starter command will attempt the cleanout all data from the serversof the machine that you want to remove. This can take a long of time.If the cleanout fails, the remove starter command will fail.

If you want to remove the machine even when the cleanout has failed, usethe —force option. Note that this may lead to data loss!