El contenido no se encuentra disponible en el idioma seleccionado. Estamos trabajando continuamente para agregar más idiomas. Gracias por su apoyo.

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

Service Management

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

You can use the CSE console to manage services registered with Nacos.

Prerequisites

A Nacos engine instance has been created.

Creating a Service

You can create a service on the console. The newly created service is an empty service (that is, the number of providers is 0). By default, the empty service is displayed in the service list. If you do not want to display the empty service, click next to Hide Empty Service.

  1. Log in to CSE.
  2. In the left navigation pane, choose Registry/Configuration Center.
  3. Click the target Nacos instance.
  4. Choose Service Management.
  5. Select a namespace from the Namespace drop-down list. The ID is automatically filled in the Namespace ID box.

    NOTE:

    If the selected namespace is public, the namespace ID is empty by default.

  6. Click Create Service. In the displayed dialog box, set configuration items as follows. Configuration items marked with an asterisk (*) are mandatory.

    Table 1 Parameters

    Parameter

    Description

    *Service Name

    Enter a service name. The value can contain a maximum of 236 characters, including digits, letters, and special characters "_-.:".

    Group

    Set the group to which the service belongs. The value can contain a maximum of 128 characters, including digits, letters, and special characters "_-.:".

    *Protection Threshold

    If the ratio of healthy instances to the total instances is less than the threshold, a protection threshold is triggered. The value ranges from 0 to 1. The default value is 0.

  7. Click OK.

Viewing the Service List

  1. Log in to CSE.
  2. In the left navigation pane, choose Registry/Configuration Center.
  3. Click the target Nacos instance.
  4. Choose Service Management. Select a namespace from the Namespace drop-down list. The ID is automatically filled in the Namespace ID box.

    NOTE:

    If the selected namespace is public, the namespace ID is empty by default.

  5. View all services in the namespace of the engine.

    You can search for the target service by service name or group name.

    NOTE:

    Target service fuzzy search supports characters: ,$*+.|?

Viewing Service Details

  1. Log in to CSE.
  2. In the left navigation pane, choose Registry/Configuration Center.
  3. Click the target Nacos instance.
  4. Choose Service Management.
  5. Click the target service to view its details.

    • View basic service information, including the service name, namespace name, service group, namespace ID, protection threshold, and number of clusters.
    • The Instances tab displays the instance information, including the IP address, port number, cluster, health status, online/offline status, weight, and metadata. You can also perform Instance Operations, such as searching for instances based on metadata, bringing instances online/offline, and modifying weights.
    • The Subscribers tab displays the list of all client instances that subscribe to the current service. Versions of subscribers and clients are displayed in the list.

Instance Operations

  • Search by metadata: On the Instances tab, select a cluster from Clusters, enter the metadata key and value in Search Metadata, and click Filter to display the instances that meet the search criteria. Click Clear to clear the search data.
  • Bring an instance online or offline: On the Instances tab, click Online or Offline in the Operation column of the target instance. The instance status will be updated accordingly.
  • Modify instance weight: On the Instances tab, move the cursor to the Weight column of the target instance, click to modify the weight (ranging from 1 to 99), and click OK.
    NOTE:
    To use the Nacos weight function for traffic load balancing, register NacosRule provided by Nacos as a bean on the client.
    @Bean
    NacosRule nacosRule() {
        return new NacosRule();
    }
    Add the following configuration item to the application.properties configuration file:
    xxx-service.ribbon.NFLoadBalancerRuleClassName=com.alibaba.cloud.nacos.ribbon.NacosRule
    xxx-service indicates the service name of the client, that is,
    spring.application.name=xxx-service

Deleting a Service

NOTE:
  • Only empty services can be deleted. If the number of instance is not 0, the services cannot be deleted.
  • If a service remains empty for more than 1 minute, the Nacos automatically deletes the service.
  1. Log in to CSE.
  2. In the left navigation pane, choose Registry/Configuration Center.
  3. Click the target Nacos instance.
  4. In the left navigation pane, choose Service Management and click Delete in the Operation column of the target service.
  5. In the displayed dialog box, click OK.

Utilizamos cookies para mejorar nuestro sitio y tu experiencia. Al continuar navegando en nuestro sitio, tú aceptas nuestra política de cookies. Descubre más

Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback