Compute resource management

更新时间:
复制 MD 格式

To use instances such as MaxCompute and Hologres for data development in DataWorks, you must first associate them as compute resources. You can then create and manage these resources to support 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 this data source in the Data Integration module for data synchronization tasks. 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 by 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 require a compute engine to run SQL statements, even if you only use data transformation features.

Supported compute resources

DataWorks supports 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. This may affect tasks that reference the compute resource or data source across modules such as Data Integration, Operation Center, Data Analysis, Data Service APIs, and Data Quality. Before you proceed, carefully read the on-screen prompts and migrate all tasks under the compute resource to another compute resource.

On the compute resource page, find the target compute resource and click Disassociate to disassociate it from the current workspace.

Appendix: Task execution environment description

In a standard mode workspace, a compute resource has two sets of configurations: one for the development environment and one for the production environment. Each environment can use a different database or instance. The system automatically routes access to the correct compute resource based on the runtime environment, isolating development from production. For example, a batch synchronization task in the development environment accesses the development database, while the same task in production 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