You can build a cluster by promoting a SPS node to the role of the Central Management node, and then join other nodes to your cluster.
To promote a node to be the Central Management node, complete the following steps:
-
Open a transaction.
For more information, see Open a transaction.
-
Create the Central Management node.
POST an empty request to the https://<IP-address-of-node-to-become-Central-Management-node>/api/cluster/promote endpoint.
The following is a sample response received.
For more information on the meta object, see Message format.
{ "body": { "address": "<IP-address-of-Central-Management-node>", "roles": [ "central-management" ] }, "meta": { "href": "/api/cluster/nodes/b35c54da-b556-4f91-ade5-d26283d68277", "parent": "/api/cluster/nodes", "remaining_seconds": 28800 } }
Elements Type Description body Top-level element (JSON object) Contains the JSON object of the node. address string The IP address of the node. roles string The role of the node. -
Commit your changes.
For more information, see Commit a transaction.