Compute resource management

Updated at:
Copy as MD

To use instances such as MaxCompute and Hologres for data development in DataWorks, you must first associate them as compute resources. This topic describes how to create and manage compute resources for subsequent task development and scheduling.

Relationship between compute resources and data sources

DataWorks supports various compute resources. After you associate a compute resource, you can develop complex data processing and periodic scheduling tasks in Data Studio. When you associate most compute resources with DataWorks, a data source with the same name is automatically created. You can then use that data source in the Data Integration module for tasks such as data synchronization. The differences between a compute engine and a data source are as follows:

  • A compute resource is a compute engine instance that executes data processing and analysis tasks.

  • A data source connects to data storage services to store and manage data.

When you perform ETL data transformations using SQL nodes, such as converting a JSON column in an AnalyticDB for MySQL table into a new table, you must also associate the corresponding compute engine. SQL nodes in Data Studio rely on a compute engine to execute SQL statements, even if you are only using data transformation features.

Supported compute resources

In DataWorks, you can associate the following compute resources for data development.

Category

Resource type

Association guide

Data Studio (new version)

Data Studio (legacy version)

Offline computing

MaxCompute

Associate a MaxCompute compute resource

Supported

Supported

Serverless Spark

Associate a Serverless Spark compute resource

Supported

Not supported

Serverless Ray

Associate an EMR Serverless Ray compute resource

Supported

Not supported

Real-time query

AnalyticDB MySQL

Associate an AnalyticDB for MySQL compute resource

Supported

Supported

AnalyticDB PostgreSQL

Associate an AnalyticDB for PostgreSQL computing resource

Supported

Supported

AnalyticDB for Spark

Associate an AnalyticDB for Spark computing resource

Supported

Not supported

ClickHouse

Associate a ClickHouse computing resource

Supported

Supported

Hologres

Associate a Hologres computing resource

Supported

Supported

Lindorm

Associate a Lindorm computing resource

Supported

Not supported

Serverless StarRocks

Associate an EMR Serverless StarRocks computing resource

Supported

Not supported

Real-time computing

Flink

Associate a Flink compute resource

Supported

Not supported

Multimodal search

OpenSearch

Associate an OpenSearch computing resource

Supported

Not supported

Cluster management

CDH

Supported

Supported

Supported

Supported

Note

When you associate a MaxCompute, AnalyticDB for MySQL, AnalyticDB for PostgreSQL, AnalyticDB for Spark, ClickHouse, Hologres, Lindorm, EMR Serverless StarRocks, or OpenSearch compute resource, a data source with the same name is automatically created in the current workspace.

Permission description

  • Only workspace members who have the operator or workspace administrator role, or members who have the AliyunDataWorksFullAccess or AdministratorAccess permission policy can create compute resources. For more information, see Manage permissions on workspace-level services and Grant permissions to a RAM user.

  • In addition to the preceding permissions, some compute resources may require additional permissions during creation. Follow the on-screen instructions to grant access.

Associate a compute resource

You can associate a compute resource from the corresponding entry based on whether the workspace has Use Data Studio (New Version) enabled.

Associate a compute resource by using Data Studio (new version)

  1. Log on to the DataWorks console, switch to the target region, and then click More > Management Center in the left-side navigation pane. Select the target workspace from the drop-down list and click Go to Management Center.

  2. In the left-side navigation pane, click Computing Resources to go to the compute resource list page. Refer to the corresponding documentation based on the type of compute resource you want to associate.

Associate a compute resource without Data Studio (new version)

  1. Log on to the DataWorks console. In the target region, click Data Development and O&M > Data Development in the left-side navigation pane. Select a workspace from the drop-down list and click Go to Data Development.

  2. In the left-side navigation pane, click the image icon to go to the Computing Resources list page. Refer to the corresponding documentation based on the type of compute resource you want to associate.

Disassociate a compute resource

Important

Exercise caution when you disassociate a compute resource. The disassociation also deletes the data source with the same name that is associated with the compute resource. This may affect tasks that reference the compute resource or data source across multiple modules, such as Data Integration, Operation Center, Data Analysis, Data Service APIs, and Data Quality. To ensure normal business operations, carefully read the on-screen prompts before you disassociate the compute resource and migrate all tasks under the compute resource to another compute resource.

You can disassociate a compute resource as needed. On the compute resource page, find the associated compute resource and click Disassociate on the right side to disassociate the compute resource from the current workspace.

Appendix: Task execution environment description

In a standard mode workspace, a compute resource instance has two sets of configurations: one for the development environment and one for the production environment. Different environments can be configured to use different databases or instances. The system automatically maps access to the corresponding compute resource based on the runtime environment, thereby isolating development testing from production scheduling. For example, when a batch synchronization task is executed, the development environment automatically accesses the pre-configured development database, while production scheduling accesses the production database.

Note
  • A basic mode workspace has only one environment and cannot isolate development from production. For more information about workspace modes, see Workspace mode differences.

  • If you upgrade from basic mode to standard mode (workspaces that have Use Data Studio (new version) enabled do not support the upgrade), the original single compute resource is split into two compute resources isolated for the production environment and the development environment. For more information, see Upgrade a workspace mode.

image