Configure the CPU and memory resources allocated to an offline task in the task property panel.
Procedure
If the task code contains the @required_resource{} annotation, the annotation takes priority and the resource settings in the Property panel do not take effect.
-
Navigate to the Dataphin home page, select Development > Data Development from the top menu bar.
-
On the Development page, select Project from the top menu bar (Dev-Prod mode requires environment selection).
-
In the navigation pane on the left, choose Data Processing > Script Task. Then, in the Script Task list, single-click the desired task name.
-
In the right sidebar, click Property, and within the Property panel's Running Resources section, set the CPU and Memory values.
The following table lists the default values for CPU and memory by task type.
Task Type
CPU (Core)
Memory (MB)
-
Python
-
Shell
0.1
256
-
Spark on MaxCompute
-
Spark on Yarn
0.3
2048
-
MapReduce on MaxCompute
-
MapReduce on Yarn
0.3
512
NoteThe maximum supported values are 4 cores and 16 GB. Allocating excessive resources to a single task can cause resource contention, so allocate resources based on actual requirements.
-