Configuring Scaling Policies for Queues

Scenario

A company has multiple departments that perform data analysis in different periods during a day.

In the preceding scenario, you can add two queues to an elastic resource pool: queue test_a for department A, and queue test_b for department B. You can add scaling policies for 00:00-09:00 and 10:00-23:00 respectively to the test_a and test_b queues. For jobs in other periods, you can modify the default scaling policy.

Table 1 Scaling policy

Queue

Period

Priority

CUs

Default Period

Default Priority

Default CUs

Remarks

test_a

[00:00, 09:00)

20

Minimum CU: 64

Maximum CU: 128

The time segments beyond [00:00, 09:00)

5

Minimum CU: 16

Maximum CU: 32

Jobs of department A

test_b

[10:00, 23:00)

20

Minimum CU: 64

Maximum CU: 128

The time segments beyond [10:00, 23:00)

5

Minimum CU: 32

Maximum CU: 64

Jobs of department B

Precautions

Setting a Scaling Policy

  1. Log in to the DLI management console and create an elastic resource pool. Set the minimum and maximum number of CUs of the pool to 128 and 256 respectively. For details, see Creating an Elastic Resource Pool.
  2. Choose Resources > Resource Pool. Locate the row that contains the created elastic resource pool, and click Queue MGMT in the Operation column.
  3. Refer to Adding a Queue to create the test_a queue and set the scaling policy.

    1. Set the priority of the default scaling policy to 5, Min CU to 16, and Max CU to 32.
    2. Click create to add a scaling policy. Set the priority to 20, Period to 00--09, Min CU to 64, and Max CU to 128.

  4. View the scaling policy on the Queue Management page of the specific elastic resource pool.

    Click to view graphical statistics of priorities and CU settings for all time segments.

  5. Refer to Adding a Queue to create the test_b queue and set the scaling policy.

    1. Set the priority of the default scaling policy to 5, Min CU to 32, and Max CU to 64.
    2. Click create to add a scaling policy. Set the priority to 20, Period to 10--23, Min CU to 64, and Max CU to 128.

  6. View the scaling policy on the Queue Management page of the specific elastic resource pool.

    Click to view graphical statistics on priorities and CU settings of the two queues for all time segments.