Managing Queues

Multiple queues can be added to an elastic resource pool. For details about how to add a queue, see Adding a Queue. You can configure the number of CUs you want based on the compute resources used by DLI queues during peaks and troughs and set priorities for the scaling policies to ensure stable running of jobs.

Precautions

Managing Queues

  1. In the navigation pane on the left, choose Resources > Resource Pool.
  2. Locate the target elastic resource pool and click Queue MGMT in the Operation column. The Queue Management page is displayed.
  3. View the queues added to the elastic resource pool.

    Table 3 Queue parameters

    Parameter

    Description

    Name

    Queue name

    Type

    Queue type

    • For SQL
    • For general purpose

    Period

    The start and end time of the queue scaling policy. This time range includes the start time but not the end time, that is, [start time, end time).

    Min CUs

    Minimum number of CUs allowed by the scaling policy.

    Max CUs

    Maximum number of CUs allowed by the scaling policy.

    Priority

    Priority of the scaling policy for a queue in the elastic resource pool. The priority ranges from 1 to 100. A smaller value indicates a lower priority.

    Engine

    For a queue running SQL jobs, the engine is Spark.

    For a queue for general purpose, the engine can be Spark or Flink, but it is displayed by -- in this page.

    Created

    Time when a queue is added to the elastic resource pool

    Enterprise Project

    Enterprise project the queue belongs to.

    Queues under different enterprise projects can be added to an elastic resource pool.

    Owner

    User who added this queue

    Operation

    • Edit: Modify or add a scaling policy.
    • Delete: Delete the queue.

  4. Locate the target queue and click Edit in the Operation column.
  5. In the displayed Queue Management pane, perform the following operations as needed:

    • Add: Click Create to add a scaling policy. Set Priority, Period, Min CU, and Max CU, and click OK.
    • Modify: Modify parameters of an existing scaling policy and click OK.
    • Delete: Locate the row that contains the scaling policy you want, click Delete and click OK.

      The Priority and Period parameters must meet the following requirements:

      • Priority: The default value is 1. The value ranges from 1 to 100. A bigger value indicates a higher priority.
      • Period:
        • You can only set the period to hours in [start time,end time) format.
        • For example, if the Period to 01 and 17, the scaling policy takes effect at 01:00 a.m. till 05:00 p.m.
        • The periods of scaling policies with different priorities cannot overlap.
      • Max CUs and Min CUs:
        • In any time segment of a day, the total minimum CUs of all queues in an elastic resource pool cannot be more than the minimum CUs of the pool.
        • In any time segment of a day, the maximum CUs of any queue in an elastic resource pool cannot be more than the maximum CUs of the pool.

  6. After you finish the settings, click statistics icon in the upper right corner of the queue list to view all scaling policies of all queue in the elastic resource pool.

  7. View the scaling task generated when the scaling starts. Go to Job Management > SQL Jobs and view the jobs of the SCALE_QUEUE type.