Updated on 2024-04-11 GMT+08:00

Scenario 2: Using Resource Plans Alone

Background

A real-time processing service sees a sharp increase in data volume from 7:00 to 13:00 on Monday, Tuesday, and Saturday. Assume that an MRS streaming cluster is used to process the service data. Five task nodes are required from 7:00 to 13:00 on Monday, Tuesday, and Saturday, while only two are required at other time.

Procedure

  1. Go to the Auto Scaling page to configure a resource plan.
  2. For example, the Default Range of node quantity is set to 2-2, indicating that the number of task nodes is fixed to 2 except the time range specified in the resource plan.
  3. Click Configure Node Range for Specific Time Range under Default Range or Add Resource Plan.
  4. Configure Effective On, Time Range, and Node Range.

    For example, set Effective On to Monday, Tuesday, and Saturday, Time Range to 07:00-13:00, and Node Range to 5-5. This indicates that the number of task nodes is fixed at 5 from 07:00 to 13:00.

    You can click Configure Node Range for Specific Time Range to configure multiple resource plans.

    • Effective On is set to Daily by default. You can also select one or multiple days from Monday to Sunday.
    • If you do not set Node Range, its default value will be used.
    • If you set both Node Range and Time Range, the node range you set will be used during the time range you set, and the default node range will be used beyond the time range you set. If the time is not within the configured time range, the default range is used.