Updated on 2024-10-23 GMT+08:00

Binding Resources

After creating an environment for a component, you can bind resources to this environment. Then, you can monitor resource usage in real time.

Checking the Resource List

  1. Log in to the AOM 2.0 console.
  2. In the navigation pane, choose Application Insights (Retiring) > CMDB.
  3. Select an enterprise project. In the navigation pane, choose Application Management.
  4. In the tree on the left, locate the target environment. In the right pane, click the Resource List tab and select a resource type. Then check the information about each resource type. For details, see Table 1.

    Figure 1 Checking the resource list
    1. If a resource exists, it is displayed on the resource management page. If no resource exists, no resource is displayed.
    2. All resources that can be bound to environments are displayed on the application management page.
    Table 1 Resource list

    Resource Type

    Sub-type

    Information

    Elastic Cloud Server (ECS)

    -

    -

    Name/ID, private IP address, EIP, host name, AZ, region, application environment, UniAgent status, resource status, and operation.

    Cloud Container Engine (CCE)

    -

    Workload

    Workload name, namespace, cluster, workload type, region, application environment, and last update time.

    Cluster

    Cluster name, cluster ID, and region.

    Databases

    Relational Database Service (RDS)

    -

    Instance name/ID, instance type, DB engine version, resource status, private IP address, region, application environment, and operation.

    Document Database Service (DDS)

    -

    Name/ID, resource status, instance type, version, enterprise project, region, application environment, and operation.

    Data Replication Service (DRS)

    Real-time synchronization task

    Name/ID, resource status, resource type, enterprise project, region, application environment, and operation.

    Real-time migration task

    Real-time disaster recovery task

    Data subscription task

    Backup migration task

    GaussDB NoSQL

    -

    Name/ID, instance type, enterprise project, region, application environment, and operation.

    GaussDB

    -

    Name/ID, resource status, type, enterprise project, region, application environment, and operation.

    Networking

    Elastic Load Balance (ELB)

    -

    Name/ID, resource status, IP address and network, listener, region, enterprise project, application environment, and operation.

    Application middleware

    Distributed Cache Service (DCS)

    -

    Name/ID, resource status, cache type, instance type, specifications (GB), IP address, region, enterprise project, application environment, and operation.

    Distributed Message Service (DMS)

    Kafka

    Name/ID, specifications, maximum partitions, region, application environment, and operation.

    RabbitMQ

    Name/ID, specifications, region, application environment, and operation.

    Storage

    Object Storage Service (OBS)

    -

    Bucket name, region, enterprise project, region, application environment, and operation.

    Cloud Backup and Recovery (CBR)

    -

    Name/ID, resource status, resource type, billing mode, region, enterprise project, application environment, and operation.

    FunctionGraph

    -

    Function

    Name/ID, type, region, enterprise project, application environment, and operation.

    Big data

    Cloud Search Service (CSS)

    -

    Name/ID, resource status, resource type, version, region, enterprise project, application environment, and operation.

Binding Resources

  1. Log in to the AOM 2.0 console.
  2. In the navigation pane, choose Application Insights (Retiring) > CMDB.
  3. Select an enterprise project. In the navigation pane, choose Application Management.
  4. In the tree on the left, locate the target environment. In the right pane, click the Resource List tab and select a resource type. Then, in the lower area, click Bind Resource.

    CCE does not support resource binding.

  5. Select your target resource from the resource list.

    • Set filter criteria above the resource list to filter resources.
    • Click in the upper right corner to obtain the latest information about resource instances in real time.
    • Click in the upper right corner and select or deselect columns to display.

    The resource list displays only the resources under the enterprise project that you have selected.

  6. Click Bind.

    In case of an ECS, click Bind Resource & Install Agent to bind the ECS and install an Agent. For details about how to install an Agent, see Installing a UniAgent.

Transferring Resources

If the component or environment to which a resource is bound changes, transfer the resource as required.

Perform the following steps:

  1. In the navigation pane, choose Application Insights (Retiring) > CMDB.
  2. Select an enterprise project. In the navigation pane, choose Application Management.
  3. In the tree on the left, locate the target environment. In the right pane, click the Resource List tab and select a resource type.
  4. Perform the following operations in the resource list as required:

    • To transfer one resource instance, click in the Operation column of the row that contains the resource instance.
    • To transfer multiple resource instances, select the check boxes of target instances and click at the bottom.

  5. In the dialog box that is displayed, set resource transfer parameters by referring to Table 2.

    Table 2 Parameters for transferring resources

    Parameter

    Description

    Select Node

    Target node to which the resource instance is to be transferred. Select a value from the drop-down list.

    Transfer Mode

    Resource transfer mode. Options:

    • Override: The existing environment is not retained. In this mode, the resource instance is transferred from the original environment to the target environment, and the resource instance is no longer bound with the original environment.
    • Incremental update: The existing environment is retained. In this mode, the resource instance is bound with both the original and target environments.
      NOTE:
      • For intra-application transfer, both override and incremental update modes are supported.
      • For inter-application ECS transfer, the incremental update mode is not supported.

  6. Click OK.

Unbinding Resources

If a component or environment changes and resources are not required, you can unbind them.

Perform the following steps:

  1. In the navigation pane, choose Application Insights (Retiring) > CMDB.
  2. Select an enterprise project. In the navigation pane, choose Application Management.
  3. In the tree on the left, locate the target environment. In the right pane, click the Resource List tab and select a resource type.
  4. Perform the following operations in the resource list as required:

    • To unbind one resource instance, click in the Operation column of the row that contains the resource instance.
    • To unbind multiple resource instances, select target instances and click at the bottom.

    Unbinding a cloud resource from an environment will not delete the cloud service.

Viewing Application Information

  1. Log in to the AOM 2.0 console.
  2. In the navigation pane, choose Application Insights (Retiring) > CMDB.
  3. Select an enterprise project. In the navigation pane, choose Application Management.
  4. In the tree on the left, locate the target application. In the right pane, click Application Info.

To view the sub-application, component, or environment information, locate the target sub-application, component, or environment in the tree on the left and click Sub-application Info, Component Info, or Environment Info in the right pane.