Cost optimization assistant

Updated at:

The Cost optimization assistant is suited to analyzing compute, storage, scheduling, and offline synchronization usage and, combined with the resource group status, locating the consumption objects that require further verification. This topic describes the capabilities, creation method, scenario workbench usage, preset scheduled tasks, and usage notes of the Cost optimization assistant.

Overview

The Cost optimization assistant is used to analyze compute, storage, scheduling, and offline synchronization usage and, combined with the resource group status, locate the consumption objects that require further verification, providing usage evidence and optimization clues.

The Cost optimization assistant provides usage evidence and optimization clues. Usage data is not equivalent to billed amounts. Exact savings must be calculated together with your bills, and you must manually adjust resource group plans.

Create a Cost optimization assistant

Before you create the assistant, confirm the following items:

  • The execution identity (access to DataWorks) is determined. For personal use, you can select the current logon user. If multiple users share one instance, you can create a RAM role as guided on the page and add the role to the corresponding workspaces.

  1. Log on to the DataWorks console, select the target region, and click AI Assistant Service in the left-side navigation pane to go to the AI Assistant Service page.

  2. In the Recommended scenarios area, click the Cost optimization assistant scenario card. In the Scenario description dialog, review the scenario description, preset Skills, preset expert suites, and preset scheduled tasks, and then click Use this scenario.

  3. In the Create from scenario window, enter the instance name and description, and select a resource group as required by the page.

  4. Select the execution identity (access to DataWorks). The data that the AI assistant can query is subject to the actual permissions of the execution identity.

  5. Review the preset Skills, preset expert suites, and preset scheduled tasks listed on the creation page. Scheduled tasks are enabled by default and run on schedule after the instance is created. After you confirm, click Create now.

After creation, the instance may take several minutes to initialize. After initialization is complete, click the instance in the instance list to enter the Scenario workbench.

Preset scheduled tasks

The cost optimization scenario includes the following preset scheduled tasks, which are enabled by default after the instance is created. Daily times are displayed in Beijing time of the current template.

Task

Execution time

Main content

Daily resource consumption ranking

Daily at 09:30 (Beijing time)

Compares project storage and compute consumption between yesterday and the day before yesterday.

Cost optimization suggestion report

Wednesdays at 10:00 (Beijing time)

Compares data between yesterday and seven days ago and organizes evidence-based optimization clues.

Hourly resource consumption inspection

Every hour

Rechecks the latest available data and notes the data update time.

Use the scenario workbench

The default workbench includes the following pages:

Page

Displayed content

Main purpose

Consumption overview

Compute consumption, storage volume, number of compute jobs, number of periodic scheduling instances, number of offline synchronization instances, and the compute consumption ranking.

Used to first review the types with higher usage and then go to the corresponding detail page.

Compute consumption

Compute consumption ranking, compute governance items, and hit assets.

Used to filter by task name, task ID, or owner, and select comparison dates to verify the rankings of two dates.

Storage consumption

Storage consumption ranking, storage governance items, and hit assets.

Used to search by table name or owner and compare the storage volume on specified dates.

Scheduling consumption

Scheduling resource details.

Used to locate objects with higher consumption by data date, task, instance, or owner.

Synchronization consumption

Offline synchronization details.

Used to find synchronization tasks and instances and verify the usage on the corresponding dates.

Resource group and elasticity

Resource group specifications and status, water level trends, and elasticity plans.

Used to first select a resource group, then view the usage trend, and ask the AI assistant to evaluate whether the elasticity plan needs adjustment.

Common operations

  1. After you enter the Scenario workbench of the instance, first select a workspace that you have permissions on and a Data date. The workbench queries by the data date shown on the page. If there is a time lag in data updates, verify the statistics date first.

  2. Click an object in the consumption ranking to open Query records and view the basis of that query.

  3. Entries such as Analyze compute changes and Analyze storage changes only fill the current date and object into a conversation draft and do not send automatically. Confirm the draft content before you send it.

Compare usage changes between two dates

  1. On the Consumption overview page, determine the main consumption type.

  2. On Consumption overview, select the data date, go to the Compute consumption or Storage consumption page, and select a comparison date. The rankings of the two dates are displayed separately.

  3. Verify the statistics scope for the same task or table before making a comparison, and locate the tasks or tables with larger changes.

  4. Click the target object in the ranking to open the query records, and use entries such as Analyze compute changes and Analyze storage changes. Confirm the draft before you send it. Example question: "Compare the compute consumption of Project A between yesterday and the day before yesterday. Which tasks changed significantly? List the data date, usage, and query basis."

Result: Based on the data date, usage, and query basis, the AI assistant returns an explanation of the usage changes and lists the tasks or tables with larger changes.

Evaluate resource group water level and elasticity plan

  1. On the Resource group and elasticity page, view the resource group specifications and status.

  2. Select the target resource group and view the water level trend and elasticity plan. The time range of the water level curve is constrained by the page limits.

  3. When you observe a high water level, confirm whether the situation persists, whether an elasticity plan is configured, and whether the plan is actually executed.

  4. Click the AI analysis entry to discuss evidence-based adjustment suggestions with the AI assistant.

Result: Based on the water level trend and elasticity plan configuration, the AI assistant evaluates whether the plan needs adjustment.

Usage notes

  • Usage is not equivalent to billed amounts: Compute volume, number of instances, and storage volume are usage data and are not equivalent to billed amounts. The AI assistant does not provide exact savings based solely on this data, nor does it automatically modify resource group plans.

  • Interpret inspection results by data time: The hourly resource consumption inspection does not mean that all underlying usage data is updated every hour. The data time in the report prevails.

  • High consumption is not necessarily abnormal: The workbench provides analysis clues and does not automatically determine that all high consumption is abnormal. The time range of the water level curve is constrained by the page limits. Make a judgment in combination with persistence and the execution of the elasticity plan.