このページは、お客様の言語ではご利用いただけません。Huawei Cloudは、より多くの言語バージョンを追加するために懸命に取り組んでいます。ご協力ありがとうございました。

Compute
Elastic Cloud Server
Huawei Cloud Flexus
Bare Metal Server
Auto Scaling
Image Management Service
Dedicated Host
FunctionGraph
Cloud Phone Host
Huawei Cloud EulerOS
Networking
Virtual Private Cloud
Elastic IP
Elastic Load Balance
NAT Gateway
Direct Connect
Virtual Private Network
VPC Endpoint
Cloud Connect
Enterprise Router
Enterprise Switch
Global Accelerator
Management & Governance
Cloud Eye
Identity and Access Management
Cloud Trace Service
Resource Formation Service
Tag Management Service
Log Tank Service
Config
OneAccess
Resource Access Manager
Simple Message Notification
Application Performance Management
Application Operations Management
Organizations
Optimization Advisor
IAM Identity Center
Cloud Operations Center
Resource Governance Center
Migration
Server Migration Service
Object Storage Migration Service
Cloud Data Migration
Migration Center
Cloud Ecosystem
KooGallery
Partner Center
User Support
My Account
Billing Center
Cost Center
Resource Center
Enterprise Management
Service Tickets
HUAWEI CLOUD (International) FAQs
ICP Filing
Support Plans
My Credentials
Customer Operation Capabilities
Partner Support Plans
Professional Services
Analytics
MapReduce Service
Data Lake Insight
CloudTable Service
Cloud Search Service
Data Lake Visualization
Data Ingestion Service
GaussDB(DWS)
DataArts Studio
Data Lake Factory
DataArts Lake Formation
IoT
IoT Device Access
Others
Product Pricing Details
System Permissions
Console Quick Start
Common FAQs
Instructions for Associating with a HUAWEI CLOUD Partner
Message Center
Security & Compliance
Security Technologies and Applications
Web Application Firewall
Host Security Service
Cloud Firewall
SecMaster
Anti-DDoS Service
Data Encryption Workshop
Database Security Service
Cloud Bastion Host
Data Security Center
Cloud Certificate Manager
Edge Security
Blockchain
Blockchain Service
Web3 Node Engine Service
Media Services
Media Processing Center
Video On Demand
Live
SparkRTC
MetaStudio
Storage
Object Storage Service
Elastic Volume Service
Cloud Backup and Recovery
Storage Disaster Recovery Service
Scalable File Service Turbo
Scalable File Service
Volume Backup Service
Cloud Server Backup Service
Data Express Service
Dedicated Distributed Storage Service
Containers
Cloud Container Engine
SoftWare Repository for Container
Application Service Mesh
Ubiquitous Cloud Native Service
Cloud Container Instance
Databases
Relational Database Service
Document Database Service
Data Admin Service
Data Replication Service
GeminiDB
GaussDB
Distributed Database Middleware
Database and Application Migration UGO
TaurusDB
Middleware
Distributed Cache Service
API Gateway
Distributed Message Service for Kafka
Distributed Message Service for RabbitMQ
Distributed Message Service for RocketMQ
Cloud Service Engine
Multi-Site High Availability Service
EventGrid
Dedicated Cloud
Dedicated Computing Cluster
Business Applications
Workspace
ROMA Connect
Message & SMS
Domain Name Service
Edge Data Center Management
Meeting
AI
Face Recognition Service
Graph Engine Service
Content Moderation
Image Recognition
Optical Character Recognition
ModelArts
ImageSearch
Conversational Bot Service
Speech Interaction Service
Huawei HiLens
Video Intelligent Analysis Service
Developer Tools
SDK Developer Guide
API Request Signing Guide
Terraform
Koo Command Line Interface
Content Delivery & Edge Computing
Content Delivery Network
Intelligent EdgeFabric
CloudPond
Intelligent EdgeCloud
Solutions
SAP Cloud
High Performance Computing
Developer Services
ServiceStage
CodeArts
CodeArts PerfTest
CodeArts Req
CodeArts Pipeline
CodeArts Build
CodeArts Deploy
CodeArts Artifact
CodeArts TestPlan
CodeArts Check
CodeArts Repo
Cloud Application Engine
MacroVerse aPaaS
KooMessage
KooPhone
KooDrive

Binding a Container-Deployed Component to a Microservice Engine

Updated on 2024-12-16 GMT+08:00

Cloud Service 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.

NOTE:
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.

Prerequisites

A microservice engine has been managed in the environment of the container-deployed component. For details, see Managing Basic Resources.

Binding a Microservice Engine

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

    • Components of the Java, Tomcat, Python, Php, Node.js and Docker technology stacks can be bound to the ServiceComb engines. Components of the Java, Tomcat, and Docker technology stacks can be bound to the registry/configuration centers.
    • 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.

  4. Click OK.

    NOTE:

    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 .

  5. (Optional) Set Addons based on the engine bound to the component.

    Engine Type

    Plug-in Type

    Description

    ServiceComb engine

    Mesher

    Enter the listening port number of the application process to enable multi-language access to service mesh. You can use Mesher to connect components that are not developed in the microservice framework to the ServiceComb engine.

    NOTE:
    • For non-microservice components developed using Java, Tomcat, or Docker, you can enable Mesher and use Mesher to connect the components to the ServiceComb engine for microservice registry and discovery.
    • For components developed using Python, PHP, or Node.js, forcibly enable Mesher and connect the components to the ServiceComb engine for microservice registry and discovery.

    Sermant Injector

    Sermant Agent can be automatically mounted using the Sermant Injector plug-in installed in CCE in the component deployment environment. In this way, components can be connected to the ServiceComb engine though Sermant Agent. For details about how to install the Sermant Injector plug-in, see Installing Sermant Injector.

    • Enable Dynamic Configuration is selected by default. If you use the dynamic configuration provided by Sermant, the dynamic configuration of the bound ServiceComb engine injected by the microservice component does not take effect. If it is not selected, the dynamic configuration of the bound ServiceComb engine injected by the microservice component is used.
    • By default, Spring Cloud and Dubbo are selected for Enable Registry Center so that Spring Cloud and Dubbo microservice components can use the registry capability provided by Sermant, and Engine is the ServiceComb engine that you select. The injected registry configuration of the bound ServiceComb engine does not take effect.
    • If only Spring Cloud is selected for Enable Registry Center, Spring Cloud microservice components can use the registry capability provided by Sermant, and Engine is the ServiceComb engine that you select. Dubbo microservice components use the injected registry configuration of the bound ServiceComb engine.
    • If only Dubbo is selected for Enable Registry Center, Dubbo microservice components can use the registry capability provided by Sermant, and Engine is the ServiceComb engine that you select. Spring Cloud microservice components use the injected registry configuration of the bound ServiceComb engine.
    • If Spring Cloud and Dubbo are not selected for Enable Registry Center, microservice components use the injected registry configuration of the bound ServiceComb engine.
    • If Spring Cloud or Dubbo is selected for Enable Registry Center, the ServiceComb engine bound to the component is used as the registry center engine by default.

    To change the registry center engine, move the cursor to the bound registry center engine, click , select another ServiceComb engine that has been managed in the component deployment environment, and click OK.

    Registry/Configuration center

    Sermant Injector

    Sermant Agent can be automatically mounted using the Sermant Injector plug-in installed in CCE in the component deployment environment. In this way, components can be connected to the registry/configuration center though Sermant Agent. For details about how to install the Sermant Injector plug-in, see Installing Sermant Injector.

    • Enable Dynamic Configuration is selected by default. If you use the dynamic configuration provided by Sermant, the dynamic configuration of the bound registry/configuration center injected by the microservice component does not take effect. If it is not selected, the dynamic configuration of the bound registry/configuration center injected by the microservice component is used.
    • By default, Spring Cloud and Dubbo are selected for Enable Registry Center so that Spring Cloud and Dubbo microservice components can use the registry capability provided by Sermant, and Engine is the ServiceComb engine or registry/configuration center you select. The injected registry configuration of the bound registry/configuration center does not take effect.
    • If only Spring Cloud is selected for Enable Registry Center, Spring Cloud microservice components can use the registry capability provided by Sermant, and Engine is the registry/configuration center or ServiceComb engine you select. Dubbo microservice components use the injected registry configuration of the bound registry/configuration center.
    • If only Dubbo is selected for Enable Registry Center, Dubbo microservice components can use the registry capability provided by Sermant, and Engine is the registry/configuration center or ServiceComb engine you select. Spring Cloud microservice components use the injected registry configuration of the bound registry/configuration center.
    • If Spring Cloud and Dubbo are not selected for Enable Registry Center, microservice components use the injected registry configuration of the bound registry/configuration center.
    • If Spring Cloud or Dubbo is selected for Enable Registry Center, the registry/configuration center bound to the component is used as the registry center engine by default.

    To change the registry center engine, move the cursor to the bound registry center engine, click , select another registry/configuration center or ServiceComb engine that has been managed in the component deployment environment, and click OK.

    NOTE:

    If a component is bound to a registry/configuration center and the Sermant Injector plug-in is selected, dark launch is not supported. For details, see Upgrading a Component in Dark Launch Mode.

We use cookies to improve our site and your experience. By continuing to browse our site you accept our cookie policy. Find out more

Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback