On this page

    Create a Queue

    Note:
    Enterprise Edition only

    This API creates a new queue.

    Syntax

    POST /api/v3/wlm/queue
    

    Request Input

    {
      "name": "New Queue",
      "maxQueryMemoryPerNodeBytes": value,
      "maxMemoryPerNodeBytes": value,
      "cpuTier": "LOW | MEDIUM | HIGH | BACKGROUND | CRITICAL ",
      "maxAllowedRunningJobs": value,
      "maxStartTimeoutMs": value,
      "maxRunTimeoutMs": value
    }
    
    

    Response Output

    {
      "id": "ID",
      "tag": "0",
      "name": "New Queue",
      "maxQueryMemoryPerNodeBytes": value,
      "maxMemoryPerNodeBytes": value,
      "cpuTier": "LOW | MEDIUM | HIGH | BACKGROUND | CRITICAL ",
      "maxAllowedRunningJobs": value,
      "maxStartTimeoutMs": value,
      "maxRunTimeoutMs": value
    }
    

    Response Codes

    400 - Invalid body.
    403 - User does not have permission to create this queue.
    409 - Conflict, queue with specified name already exists.

    Request Example

    CURL

    curl --request POST \
      --url http://localhost:9047/api/v3/wlm/queue \
      --header 'authorization: _dremioha5lrg03obu07o4fkaev5e4r8n' \
      --header 'content-type: application/json' \
      --data '{
      "name": "New Queue",
      "maxQueryMemoryPerNodeBytes": 167772160,
      "maxMemoryPerNodeBytes": 300000000,
      "cpuTier": "HIGH",
      "maxAllowedRunningJobs": 2,
      "maxStartTimeoutMs": 60000,
      "maxRunTimeoutMs": 600000
    }'
    
    

    Response

    {
      "id": "5992f098-15d4-40b3-b158-08ea8f1f5067",
      "tag": "0",
      "name": "New Queue",
      "maxMemoryPerNodeBytes": 300000000,
      "maxQueryMemoryPerNodeBytes": 300000000,
      "cpuTier": "HIGH",
      "maxAllowedRunningJobs": 2,
      "maxStartTimeoutMs": 60000,
      "maxRunTimeoutMs": 600000
    }