هذه الصفحة غير متوفرة حاليًا بلغتك المحلية. نحن نعمل جاهدين على إضافة المزيد من اللغات. شاكرين تفهمك ودعمك المستمر لنا.

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

Maintaining Microservices

Updated on 2023-06-25 GMT+08:00

You can use service catalogs to view microservice details and search for target microservices to maintain microservices.

The following information is displayed on the Service Catalog page:

  • Application List: displays all applications of the current user. You can search for the target application by application name, or filter applications by environment.
  • Microservice List: displays all microservices of the current user. You can search for the target microservice by microservice name, or filter microservices by environment and application.
  • Instance List: displays all instances of the current user. You can search for the target instance by microservice name, or filter instances by environment or application.

Dynamic Configuration

  1. Log in to ServiceStage and choose Infrastructure > Cloud Service Engines.
  2. Click Console of a microservice engine.
  3. Choose Service Catalog.
  4. Click a microservice.
  5. Choose Dynamic Configuration. The Dynamic Configuration page is displayed. On the Dynamic Configuration tab, perform the following operations.

    NOTICE:

    Configuration items are stored in plaintext. Do not include sensitive data.

    Operation

    Procedure

    Export configurations.

    Select a scope from the All drop-down list and click Export to export the JSON configuration file of the current scope.

    The scope format is as follows:
    • Microservice name@Application to which the microservice belongs
    • Microservice name@Application to which the microservice belongs#Version number

    Import configurations.

    1. Click Import and select a scope.
      The scope format is as follows:
      • Microservice name@Application to which the microservice belongs
      • Microservice name@Application to which the microservice belongs#Version number
    2. Click ··· to select a configuration item file.
    3. Click Upload to import configuration items in batches.
    4. Click Close.

    Create configurations.

    1. Click Create Configuration and select a scope.
    2. Enter Configuration Item.
    3. Enter Value.
    4. Click OK to save the settings.

    Modify configurations.

    1. Click Edit in the Operation column corresponding to the target configuration item.
    2. Enter a new value in the Value text box.
    3. Click OK to save the settings.

    Delete configurations.

    1. Click Delete in the Operation column corresponding to the target configuration item.
    2. Click OK to delete the configuration.

Dark Launch

  1. Log in to ServiceStage and choose Infrastructure > Cloud Service Engines.
  2. Click Console of a microservice engine.
  3. Choose Service Catalog.
  4. Click a microservice. On the displayed page, click Dark Launch.
  5. Click Add Launch Rule.

    • To add a launch rule by weight:
      1. Click Weight.
      2. Set the following parameters.

        Configuration Item

        Description

        Rule Name

        Name of a customized rule.

        Scope

        • Version of the microservice to which the rule applies.
        • Add custom version: adds a new version as prompted.

        Rule Configuration

        Traffic allocation rate for the selected version. Traffic is evenly allocated to the selected service versions based on the configured value.

      3. Click OK to complete the weight rule configuration and dark launch.
    • To customize a launch rule:
      1. Click Customize.
      2. Set the following parameters.

        Configuration Item

        Description

        Rule Name

        Name of a customized rule.

        Scope

        • Version of the microservice to which the rule applies.
        • Add custom version: adds a new version as prompted.

        Rule Configuration

        • Parameter Name

          This name is customized according to the key field provided by the service contract.

          This key must exist in the contract. It is possible that the server API is String paramA, but paramB is actually generated after the annotation is added. Therefore, paramB should be set here.

        • Rules
          Value corresponding to the key of a contract.
          NOTE:
          • If ~ is selected from the drop-down list next to Rules, the asterisk (*) and question mark (?) can be used for fuzzy matching when you specify the value of Rules. The asterisk (*) represents an unlimited number of characters, and the question mark (?) represents only one character. For example, if the rule value of Name is set to *1000, all Name fields ending with 1000 can be matched.
          • If ~ is not selected from the drop-down list next to Rules, the asterisk (*) and question mark (?) cannot be used for fuzzy matching.
      3. Click OK to complete the customized rule configuration and dark launch.

Delete a microservice.

  1. Log in to ServiceStage and choose Infrastructure > Cloud Service Engines.
  2. Click Console of a microservice engine.
  3. Choose Service Catalog.
  4. Select the microservice to be deleted, click Delete, and delete the microservice as prompted.

    NOTE:
    • If the number of microservice instances is 0, you can directly delete the microservice.
    • If the number of microservice instances is not 0, the microservice will be re-registered with the service center after being deleted for a period of time.

Viewing Microservice Details

  1. Log in to ServiceStage and choose Infrastructure > Cloud Service Engines.
  2. Click Console of a microservice engine.
  3. Choose Service Catalog.
  4. Click a microservice. The microservice details page is displayed.

    On the microservice details page, you can view the instance list, called services, calling services, dynamic configuration, dark launch, and service contract.

Viewing a Service Contract

  1. Log in to ServiceStage and choose Infrastructure > Cloud Service Engines.
  2. Click Console of a microservice engine.
  3. Choose Service Catalog.
  4. Click a microservice. The microservice details page is displayed.
  5. Click Service Contract to view the service contract.

Adding a Label

  1. Log in to ServiceStage and choose Infrastructure > Cloud Service Engines.
  2. Click Console of a microservice engine.
  3. Choose Service Catalog.
  4. Click a microservice. On the displayed page, click Manage Tag next to Label.
  5. Click Add Label, and enter Key and Value.
  6. Click OK to save the settings.

Modifying Microservice Instance Status

Status indicates the status of a microservice instance. The following table describes the microservice instance statuses.

Status

Description

Online

The instance is running and can provide services.

Offline

Before the instance process ends, the instance is marked as not providing services externally.

Out of Service

The instance has been registered with the microservice engine and does not provide services.

Test

The instance is in the internal joint commissioning state and does not provide services.

  1. Log in to ServiceStage and choose Infrastructure > Cloud Service Engines.
  2. Click Console of a microservice engine.
  3. Go to the microservice console.
  4. Choose Service Catalog > Instance List.
  5. Select the target instance and change the microservice instance status.

    • Offline

      In the Operation column, click Offline.

    • Online

      In the Operation column, click Online.

    • Out of Service

      In the Operation column, choose More > Out of Service.

    • Test

      In the Operation column, choose More > Test.

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