Help Center/ ServiceStage/ User Guide/ Component Management/ Managing VM-Deployed Component Configurations/ Binding a VM-Deployed Component to a Microservice Engine
Updated on 2024-12-16 GMT+08:00

Binding a VM-Deployed Component to a Microservice Engine

Microservice engines (ServiceComb engines and registry/configuration centers) can be bound to VM-deployed components with a Java or Tomcat technology stack.

Microservice Engine is a one-stop management platform for microservice solutions. After microservice components are connected to CSE, you can use service registry, service governance, and configuration management of CSE. In this way, you can focus on service development and improve product delivery efficiency and quality. You can bind a microservice engine when configuring Cloud Service Settings.

After a component developed based on ServiceComb 2.7.8 or later or Spring Cloud Huawei 1.10.4-2021.0.x or later is connected to a microservice engine, the following attributes are injected into the properties parameter of the MicroServiceInstance parameter when a microservice instance is created in the microservice engine:
  1. CAS_APPLICATION_ID: ID of the application to which the component belongs.
  2. CAS_COMPONENT_NAME: component name.
  3. CAS_ENVIRONMENT_ID: ID of the component deployment environment.
  4. CAS_INSTANCE_ID: component instance ID.
  5. CAS_INSTANCE_VERSION: component instance version.

For details about the MicroServiceInstance parameter, see MicroServiceInstance.

Binding a VM-Deployed Component to a Microservice Engine

  1. Choose Cloud Service Settings.
  2. Click Bind Microservice Engine.
  3. Select a microservice engine instance that has been bound in the environment and click OK.

    If no microservice engine instance is bound to the environment, click Add one and add a microservice engine instance to the environment. For details, see Managing Basic Resources.

    Move the cursor to a bound microservice engine and perform the following operations:

    • Rebind a microservice engine: Click , select the target microservice engine again, and click OK.
    • Delete a bound microservice engine: Click .