Engines
An engine represents a Dremio Cloud entity that manages compute resources. Each engine has one or more replicas that are created for executing queries. An engine replica is a logical group of executors defined by the engine size. This API allows you to list existing engines and add, modify, enable/disable, and delete engines.
Engines Object "id": "e1cb20ff-a234-46f1-9f97-550e2bb5310f",
"name": "firstEngine",
"size": "XX_SMALL_V1",
"activeReplicas": 0,
"minReplicas": 0,
"maxReplicas": 10,
"autoStopDelaySeconds": 300,
"queueTimeLimitSeconds": 300,
"runtimeLimitSeconds": 0,
"drainTimeLimitSeconds": 0,
"state": "ENABLED",
"cloudTags": [],
"queriedAt": "Thu Jan 01 00:00:00 UTC 2021",
"statusChangedAt": "Thu Aug 19 14:39:40 UTC 2021",
"description": "",
"maxConcurrency": 4,
"instanceFamily": "M5D",
"additionalEngineStateInfo": "NONE"
Engines Attributes
id String (UUID)
Unique identifier of an engine.
Example: e1cb20ff-a234-46f1-9f97-550e2bb5310f
name String
The user-defined name for an engine.
Example: firstEngine
size String
The size of the engine. Each engine replica that is created will be of this size.
Enum: XX_SMALL_V1, X_SMALL_V1, SMALL_V1, MEDIUM_V1, LARGE_V1, X_LARGE_V1, XX_LARGE_V1, XXX_LARGE_V1
Example: SMALL_V1
activeReplicas Integer
The number of engine replicas that are currently active.
Example: 0
minReplicas Integer
The minimum number of engine replicas that will be enabled at any given time.
Example: 0
maxReplicas Integer
The maximum number of engine replicas that will be enabled at any given time.
Example: 10
autoStopDelaySeconds Integer
The time (in seconds) that auto stop is delayed.
Example: 300
queueTimeLimitSeconds Integer
The maximum amount of time (in seconds) that a query will wait in the engine’s queue before it is canceled. The typical time to start a new replica is two minutes (120 seconds), so we recommend setting this to more than 120 seconds. Changing this setting does not affect queries that are either currently running or already in the queue.
Example: 300
runtimeLimitSeconds Integer
The maximum amount of time (in seconds) that a query can run before being terminated.
Example: 0
drainTimeLimitSeconds Integer
The maximum amount of time (in seconds) that an engine replica will continue to run after the engine is resized, disabled, or deleted before it is terminated and the running queries terminate.
Example: 0
state String
The current state of the engine.
Enum: DELETING, DISABLED, DISABLING, ENABLED, ENABLING, INVALID
Example: ENABLED
cloudTags Array of Object
Objects that list the keys and values for AWS or Azure tags.
Example: [{"key": "dremio", "value": "test"}]
queriedAt String
The date and time that the engine was last used to execute a query.
Example: Thu Jan 01 00:00:00 UTC 2021
statusChangedAt String
The date and time (in UTC time) that the state of the engine changed.
Example: Thu Aug 19 14:39:40 UTC 2021
description String
The description for the engine.
Example: engine for sales workloads
maxConcurrency Integer
The maximum number of concurrent queries that an engine replica can run.
Example: 4
instanceFamily String
Enum: M5D, M6ID, DDV4, DDV5
Example: M5D
M5D and M6ID are valid for engines on AWS clouds. DDV4 and DDV5 are valid for engines on Azure clouds.
additionalEngineStateInfo String
Not used. Has the value NONE
.
Attributes of Objects in the cloudTags
Array
key String
The key identifier for the tag.
Example: costCenter
value String
The value of the tag.
Example: dremio-team
Listing All Engines
Returns a list of all the engines in the specified project and the metadata for each engine.
Method and URLGET /v0/projects/{project-id}/engines
Parameters
project-id Path String (UUID)
Unique identifier of the project you want to list engines for.
Example: 02d36975-73eb-47ed-9bb5-de73060380f6
Example Requestcurl -X GET 'https://api.dremio.cloud/v0/projects/02d36975-73eb-47ed-9bb5-de73060380f6/engines' \
-H 'Authorization: Bearer <personal access token>' \
-H 'Content-Type: application/json'
[
{
"id": "e1cb20ff-a234-46f1-9f97-550e2bb5310f",
"name": "firstEngine",
"size": "XX_SMALL_V1",
"activeReplicas": 0,
"minReplicas": 0,
"maxReplicas": 10,
"autoStopDelaySeconds": 300,
"queueTimeLimitSeconds": 300,
"runtimeLimitSeconds": 0,
"drainTimeLimitSeconds": 0,
"state": "ENABLED",
"cloudTags": [],
"queriedAt": "Thu Jan 01 00:00:00 UTC 2021",
"statusChangedAt": "Thu Aug 19 14:39:40 UTC 2021",
"description": "",
"maxConcurrency": 4,
"instanceFamily": "M5D",
"additionalEngineStateInfo": "NONE"
},
{
"id": "a99eb46a-8121-4b79-b2ed-917e07f96092",
"name": "preview",
"size": "XX_SMALL_V1",
"activeReplicas": 0,
"minReplicas": 0,
"maxReplicas": 1,
"autoStopDelaySeconds": 180,
"queueTimeLimitSeconds": 300,
"runtimeLimitSeconds": 0,
"drainTimeLimitSeconds": 0,
"state": "ENABLED",
"cloudTags": [],
"queriedAt": "Thu Jan 01 00:00:00 UTC 2021",
"statusChangedAt": "Fri Aug 20 03:58:54 UTC 2021",
"description": "",
"maxConcurrency": 4,
"instanceFamily": "M5D",
"additionalEngineStateInfo": "NONE"
}
]