After you purchase and configure an exclusive resource group, you can use the resource group to run tasks in a workspace. This topic describes how to change the resource groups used by tasks and how to change the workspace with which a resource group is associated.
Precautions
If you want to change the resource group associated with a workspace, you can associate the resource group that you want to use with the workspace, and then disassociate the resource group that you no longer use from the workspace. For more information, see Appendix: Associate a resource group with or disassociate a resource group from a workspace.
If you want to disassociate a resource group from a workspace but the resource group is being used by deployed tasks in the workspace, you must change the resource group used by the tasks and then disassociate the resource group from the workspace.
After you change the resource group used by a task in the development environment, you can deploy nodes to the production environment to change the resource group used by the task in the production environment. For more information, see Node or workflow deployment.
To configure a default resource group for scheduling and a default resource group for Data Integration for tasks in a workspace, perform the following steps: In the lower-left corner of the Data Studio page, click the
icon and select Data Studio Settings. On the page that appears, click the Scheduling Settings tab to perform related operations. For more information, see System Settings of Data Studio.
You can change the resource group used by an auto triggered task in Operation Center. After you change the resource group used by an auto triggered task on a day, instances that are generated for the task after the change are run on the new resource group. Instances that are generated for the task before the change on the day are still run on the original resource group.
Change the resource groups for Data Integration used by synchronization tasks
After a resource group for Data Integration is created, you can refer to the instructions provided in this section to change the resource groups used by tasks to the new resource group.
Change the resource groups for Data Integration used by synchronization tasks on the Data Integration page
Go to the Data Integration page.
Log on to the DataWorks console. In the top navigation bar, select the desired region. In the left-side navigation pane, choose . On the page that appears, select the desired workspace from the drop-down list and click Go to Data Integration.
In the left-side navigation pane of the Data Integration page, click Synchronization Task. In the Tasks section of the Synchronization Task page, find the synchronization task for which you want to change the resource group for Data Integration, click More in the Operation column, and then select Edit to go to the configuration page of the synchronization task.
In the Network and Resource Configuration section of the task configuration page, select the resource group that you want to use from the Resource Group drop-down list and click Test Connectivity. If the test is successful, click Next. On the page that appears, click Complete.
Change the resource groups for scheduling used by tasks on the Data Studio page
If you change the resource group used by a task in Data Studio, the change is not synchronized to the production environment. You must deploy the task to the production environment for the change to take effect in the production environment. For more information, see Node or workflow deployment.
Go to the Workspaces page in the DataWorks console. In the top navigation bar, select a desired region. Find the desired workspace and choose in the Actions column.
In the left-side navigation pane, click the
icon to go to the Workspace Directories section.
Change the resource groups for Data Integration used by synchronization tasks.
Batch synchronization tasks
In the Workspace Directories section, find the desired batch synchronization task and click the name of the task to go to the configuration tab of the task.
In the Configure Network Connections and Resource Group step, select the resource group that you want to use from the drop-down list below Resource Group.
Save and deploy the task as prompted.
NoteIf you want to change the resource groups for Data Integration used by multiple batch synchronization tasks at a time, you can go to the Operation Center page. For more information, see Change the resource groups for Data Integration used by batch synchronization tasks on the Operation Center page.
Real-time synchronization tasks
In the Workspace Directories section, find the desired real-time synchronization task and click the name of the task to go to the configuration tab of the task.
In the right-side navigation pane of the configuration tab of the task, click Basic Configuration. On the Basic Configuration tab, select a resource group from the Resource Group drop-down list.
Save and deploy the task as prompted.
Change the resource groups for Data Integration used by batch synchronization tasks on the Operation Center page
You can change the resource groups used in the development environment and production environment for tasks in Operation Center. You can switch to the required environment in the upper part of the Operation Center page and then perform the following steps to change the resource groups.
Go to the Operation Center page.
Log on to the DataWorks console. In the top navigation bar, select the desired region. In the left-side navigation pane, choose . On the page that appears, select the desired workspace from the drop-down list and click Go to Operation Center.
Change the resource groups for Data Integration used by multiple batch synchronization tasks at a time.
NoteYou cannot change the resource groups for Data Integration used by real-time synchronization tasks in Operation Center. To perform the change, go to the Data Integration or Data Studio page. For more information, see the Change the resource groups for Data Integration used by synchronization tasks on the Data Integration page or Change the resource groups for Data Integration used by synchronization tasks on the Data Studio page sections in this topic.
In the left-side navigation pane of the Operation Center page, choose
.In the top navigation bar, set the Node Type parameter to Offline synchronization, select the batch synchronization tasks for which you want to change the resource groups for Data Integration at a time, and then click Freeze in the lower part of the page.
In the lower part of the Auto Triggered Nodes page, click Actions and select Modify Data Integration Resource Group.
In the Modify Data Integration Resource Group dialog box, select the resource group that you want to use from the New Resource Group drop-down list and click OK.
On the Auto Triggered Nodes page, select the batch synchronization tasks for which you have changed the resource groups for Data Integration at a time, and click Unfreeze in the lower part of the page.
Change the resource groups for scheduling used by tasks
Change the resource groups for scheduling used by tasks on the Data Studio page
If you change the resource group used by a task in Data Studio, the change is not synchronized to the production environment. You must deploy the task to the production environment for the change to take effect in the production environment. For more information, see Node or workflow deployment.
Go to the Workspaces page in the DataWorks console. In the top navigation bar, select a desired region. Find the desired workspace and choose in the Actions column.
In the left-side navigation pane, click the
icon to go to the Workspace Directories section.
Change the resource group for scheduling.
Change the resource group for scheduling used to debug a task
In the Workspace Directories section, find the desired task and click the name of the task to go to the configuration tab of the task.
In the right-side navigation pane of the configuration tab of the task, click Debugging Configurations. On the Debugging Configurations tab, select the resource group for scheduling that you want to use to debug the task from the Resource Group drop-down list.
Change the resource groups for scheduling used to schedule tasks
Change the resource group for scheduling used by a single task
In the Workspace Directories section, find the desired task and click the name of the task to go to the task editing page.
In the right-side navigation pane of the configuration tab of the task, click Properties. On the Properties tab, select the resource group for scheduling that you want to use to run the task from the Resource Group For Scheduling drop-down list.
Save and deploy the task as prompted.
Change the resource groups for scheduling used by multiple tasks at a time
Click the
icon next to Workspace Directories to go to the Batch Operation tab.
On the Batch Operation tab, select the tasks for which you want to change the resource group for scheduling, click Batch Operation in the lower part of the tab, and then choose
.In the Change Resource Group for Scheduling dialog box, select the desired resource group from the Resource Group for Scheduling drop-down list, select I am aware of the risk and confirm the operation, and then click OK.
On the Batch Operation tab, select the tasks for which you have changed the resource group, click Batch Operation in the lower part of the page, and then select Deploy.
In the Deploy dialog box, select I am aware of the risk and confirm the operation and click OK to deploy the tasks as prompted.
Change the resource groups for scheduling used by tasks on the Operation Center page
You can change the resource groups used in the development environment and production environment for tasks in Operation Center. You can switch to the required environment in the upper part of the Operation Center page and then perform the following steps to change the resource groups.
Go to the Operation Center page.
Log on to the DataWorks console. In the top navigation bar, select the desired region. In the left-side navigation pane, choose . On the page that appears, select the desired workspace from the drop-down list and click Go to Operation Center.
Change the resource groups for scheduling used by multiple auto triggered tasks at a time.
In the left-side navigation pane, choose
.On the Auto Triggered Node page, select the auto triggered tasks for which you want to change the resource groups for scheduling at a time, and click Freeze in the lower part of the page.
Click Modify Scheduling Resource Group in the lower part of the page.
In the Modify Scheduling Resource Group dialog box, select the resource group that you want to use from the New Resource Group drop-down list and click OK.
On the Auto Triggered Node page, select the tasks for which you have changed the resource groups for scheduling at a time, and click Unfreeze in the lower part of the page.
Change the resource groups for DataService Studio used by APIs
Go to the DataService Studio page.
Log on to the DataWorks console. In the top navigation bar, select the desired region. In the left-side navigation pane, choose . On the page that appears, select the desired workspace from the drop-down list and click Go to DataService Studio.
Change the resource groups for DataService Studio used by APIs.
Change the resource group for DataService Studio used by a single API
In the Service Development pane of the DataService Studio page, find the API for which you want to change the resource group for DataService Studio and double-click the API name to go to the configuration tab of the API. In the right-side navigation pane of the configuration tab, click Resource Group. In the Resource Group Type section of the Resource Group tab, set the Scheme parameter to Exclusive Resource Group for DataService Studio and select a resource group of the new version from the Exclusive Resource Group for DataService Studio drop-down list.
Save and test the API. If the test is successful, submit the API.
Change the resource groups for DataService Studio used by multiple APIs at a time
In the Service Development pane of the DataService Studio page, click the
icon. On the Batch Operation tab, select the APIs for which you want to change the resource groups for DataService Studio at a time, and click Change Resource Group in the lower part of the tab.
In the Change Resource Group dialog box, select a resource group of the new version from the Resource Group for DataService Studio drop-down list and click OK.
If Successful is displayed in the Result column of the selected APIs in the View Result step, click Close.
On the Batch Operation tab, set the Resource Group parameter to the name of the resource group of the new version and click Search. The APIs for which the resource group of the new version is used are displayed.
In the lower part of the Batch Operation tab, click Submit. If the submission is successful, click Publish to publish the APIs.
Appendix: Associate a resource group with or disassociate a resource group from a workspace
If a resource group is not used by deployed tasks, you can associate the resource group with a workspace on the Resource Groups in the DataWorks console. You can also disassociate the resource group that you no longer use from a workspace.
Log on to the DataWorks console.
In the top navigation bar, select the desired region. In the left-side navigation pane, click Resource Group to go to the Resource Groups page.
On the Resource Groups page, find the desired resource group and click Associate Workspace in the Actions column. In the Associate Workspace panel, find the desired workspace and click Associate in the Actions column.
If you no longer need to use the resource group in the workspace, follow the preceding steps to disassociate the resource group from the workspace on the Resource Groups page. On the Resource Groups page, find the desired resource group and click Associate Workspace in the Actions column. In the Associate Workspace panel, find the desired workspace and click Disassociate in the Actions column.
If a resource group is being used by deployed tasks in a workspace, you cannot directly disassociate the resource group from the workspace. In this case, you must change the resource group for the tasks and use another resource group to run the tasks. Then, you can disassociate the resource group from the workspace.