This topic describes how to add a route for your exclusive resource group to access a data store in a Virtual Private Cloud (VPC) or an on-premises data center.

Prerequisites

An exclusive resource group is bound to your VPC. For more information, see Add and use exclusive resource groups for scheduling.

Background information

You can add a route to connect your exclusive resource group to a specific data store. If the exclusive resource group still fails to connect to the data store after you add the route, fix the issue as follows:
  • Check whether the data store resides in an on-premises data center or a different VPC from the exclusive resource group. If so, connect the VPC to which the exclusive resource group is bound to the network where the data store resides through Express Connect or Cloud Enterprise Network (CEN). For more information, see Network connection overview.
  • Check whether the data store has a whitelist or access to the data store is controlled by security group. If the data store has a whitelist, add the information, such as the Elastic Network Interface (ENI) IP address, about the exclusive resource group to the whitelist. If access to the data store is controlled by security group, configure a security group rule to allow the exclusive resource group to access the data store.
  • Make sure that Object Storage Service (OSS) and the corresponding service port are normal.

Add a route to a data store in a VPC

  1. Log on to the DataWorks console.
  2. In the left-side navigation pane, click Resource Groups.
  3. On the Exclusive Resource Groups tab that appears, find the target exclusive resource group and click Add VPC Binding in the Actions column.
  4. On the page that appears, click Custom routing in the Actions column of the exclusive resource group.
  5. In the Custom routing pane that appears, click New route. The New route dialog box appears.
    If the exclusive resource group is bound to a VSwitch, the system adds a route for the exclusive resource group by default. The destination of this route is the Classless Inter-Domain Routing (CIDR) block of the VPC where the VSwitch resides. This ensures that the exclusive resource group can access all data stores in this VPC. You can delete this route in the Custom routing pane.
  6. In the New route dialog box, set the parameters as required.
    New route
    Parameter Description
    Purpose type The type of the route destination. If the data store that the exclusive resource group needs to access resides in a VPC, select VPC.
    Destination VPC The region and name of the destination VPC where the data store resides.
    Note This parameter appears only when Purpose type is set to VPC.
    Connection mode The connection mode between the exclusive resource group and the destination VPC. Valid values:
    • Switch: If you select this option, you must select a VSwitch from the Destination Switch instance drop-down list.
      Note You need to set Destination Switch instance only when you set Connection mode to Switch.

      If you set Connection mode to Switch and specify a VSwitch, make sure that the target data store is bound to the specified VSwitch. If the target data store resides on multiple ECS instances that are bound to different VSwitches, add a route to each VSwitch.

    • Fixed IP: If you select this option, you must enter an IP address in the Fixed IP field.

      You must enter the IP address of the ECS instance where the target data store resides in the destination VPC.

    • Specify the CIDR block: If you select this option, you must enter a CIDR block in the Destination CIDR block field.

      You must enter a subset of the CIDR block of the destination VPC, which contains the IP address of the ECS instance where the target data store resides.

    Routing Diagram The routing diagram, which cannot be changed.
  7. Click Generate route.

Add a route to a data store in an on-premises data center

  1. Log on to the DataWorks console. In the left-side navigation pane, click Resource Groups.
  2. On the Exclusive Resource Groups tab that appears, find the target exclusive resource group and click Add VPC Binding in the Actions column.
  3. On the page that appears, click Custom routing in the Actions column of the exclusive resource group.
  4. In the Custom routing pane that appears, click New route.
  5. In the New route dialog box that appears, set the parameters as required.
    IDC
    Parameter Description
    Purpose type The type of the route destination. If the data store that the exclusive resource group needs to access resides in an on-premises data center, select IDC.
    Connection mode The connection mode between the exclusive resource group and the destination on-premises data center. Valid values:
    • Fixed IP: If you select this option, you must enter an IP address in the Fixed IP field.

      You must enter the IP address of the ECS instance where the target data store resides in the destination on-premises data center.

    • Specify the CIDR block: If you select this option, you must enter a CIDR block in the Destination CIDR block field.

      You must enter a subset of the CIDR block of the destination on-premises data center, which contains the IP address of the ECS instance where the target data store resides.

    Routing Diagram The routing diagram, which cannot be changed.
  6. Click Generate route.