POST
/
tenants
/
{tenantName}
/
rebalance
Rebalances all the tables that are part of the tenant
curl --request POST \
  --url https://dev.startree.ai/tenants/{tenantName}/rebalance \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: */*' \
  --data '{
  "degreeOfParallelism": 1,
  "verboseResult": true,
  "parallelWhitelist": [
    "<string>"
  ],
  "parallelBlacklist": [
    "<string>"
  ],
  "tenantName": "<string>",
  "minAvailableReplicas": 1,
  "heartbeatIntervalInMs": 300000,
  "heartbeatTimeoutInMs": 3600000,
  "retryInitialDelayInMs": 300000,
  "externalViewStabilizationTimeoutInMs": 3600000,
  "reassignInstances": false,
  "includeConsuming": false,
  "lowDiskMode": false,
  "bestEfforts": false,
  "updateTargetTier": false,
  "maxAttempts": 3,
  "externalViewCheckIntervalInMs": 1000,
  "dryRun": false,
  "preChecks": false,
  "bootstrap": false,
  "downtime": false
}'
{
  "rebalanceTableResults": {},
  "jobId": "<string>"
}

Authorizations

Authorization
string
header
required

The format of the key is "Basic <token>" or "Bearer <token>"

Path Parameters

tenantName
string
required

Name of the tenant whose table are to be rebalanced

Body

*/*
degreeOfParallelism
integer
Example:

1

verboseResult
boolean
parallelWhitelist
string[]
parallelBlacklist
string[]
tenantName
string
minAvailableReplicas
integer
Example:

1

heartbeatIntervalInMs
integer
Example:

300000

heartbeatTimeoutInMs
integer
Example:

3600000

retryInitialDelayInMs
integer
Example:

300000

externalViewStabilizationTimeoutInMs
integer
Example:

3600000

reassignInstances
boolean
Example:

false

includeConsuming
boolean
Example:

false

lowDiskMode
boolean
Example:

false

bestEfforts
boolean
Example:

false

updateTargetTier
boolean
Example:

false

maxAttempts
integer
Example:

3

externalViewCheckIntervalInMs
integer
Example:

1000

dryRun
boolean
Example:

false

preChecks
boolean
Example:

false

bootstrap
boolean
Example:

false

downtime
boolean
Example:

false

Response

200 - application/json

successful operation

rebalanceTableResults
object
jobId
string