Configure Cluster
POST {{HDB_ENDPOINT}}
Bulk create/remove subscriptions for any number of remote nodes. Resets and replaces any existing clustering setup. Learn more about HarperDB clustering here: https://harperdb.io/docs/clustering/.
Operation is restricted to super_user roles only
- operation (required) - must always be 'configure_cluster'
- connections (required) - must be an object array with each object containing node_name and subscriptions for that node
Request Body
{"operation"=>"configure_cluster", "connections"=>[{"node_name"=>"ec2-3-137-184-8", "subscriptions"=>[{"schema"=>"dev", "table"=>"dog", "subscribe"=>true, "publish"=>false}]}, {"node_name"=>"ec2-18-223-239-195", "subscriptions"=>[{"schema"=>"dev", "table"=>"dog", "subscribe"=>true, "publish"=>true}]}]}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string |
RESPONSES
status: OK
{"message":"Cluster successfully configured."}