POST cluster

This web method can send a shutdown command to all FTL servers in the cluster.

Input Data

Supply the command in JSON format.

Commands

Syntax Description
{"cmd":"shutdown"} Shut down the FTL server cluster.
{"cmd": "activate_dr"} Activate a DR site.
{"cmd": "enable_dr", "args": [{"drto": "my_urls"}]} Enable DR at a primary site, or point a primary site to a different DR site.

Example Requests

Simple shutdown:

curl -X POST http://<host>:<port>/api/v1/cluster/ -d '{"cmd":"shutdown"}'

Save persistence state to disk, then shut down:

curl -X POST http://<host>:<port>/api/v1/cluster/ -d '{"cmd":"shutdown", "args":[{"savestate": true}]}'
Note: The savestate option is not needed if disk persistence is enabled.

You can also shut down all FTL servers with POST ftlservers/<server_name>.