This topic describes how to configure the CPU and memory resources allocated for executing the current offline task within its property panel.
Procedure
If the task code contains the @required_resource{} annotation, the annotation takes priority. The system allocates resources based on the annotation, and the 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 table below displays the default values for CPU and memory across various node types.
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 for CPU and memory are 4 cores and 16GB, respectively. Allocating excessive resources to a task can lead to resource contention, so it is advisable to allocate resources judiciously based on requirements.