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
Situation Awareness
Managed Threat Detection
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

Adding a Tag to an MRS Cluster/Node

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

Tags are used to identify clusters/nodes. Adding tags to clusters/nodes can help you identify and manage your resources.

  • Cluster tags: You can add up to 20 tags to a cluster during cluster creation or add them on the details page of a created cluster. Updating a cluster tag will synchronize the tag to all nodes in the cluster.
  • Node tags: You can use the default tag or add tags to nodes in an MRS cluster when you configure an auto scaling policy. Node tags take the tag quotas. You can view the tags of a node in the Nodes tab on MRS console.
  • Default tags: An MRS cluster contains multiple nodes, and each node is an ECS and contains EVS disks. After the default tag is enabled, the system automatically creates a cluster tag and a tag for each node. The default tag is automatically synchronized to the corresponding ECS or EVS instances.

    To view node tags, go to the Nodes tab on the MRS console, and move the cursor to the tag icon of a node in the node list.

    NOTE:
    • MRS tag updates are synchronized to the ECSs or EVS disks in the cluster. However, if you modify MRS cluster tags on the ECS or EVS console, the modification will not be synchronized to MRS. To ensure tag consistency, do not modify MRS cluster tags on the ECS or EVS console.
    • You can add a maximum of 20 tags to a cluster. If the number of tags of a node in the cluster reaches the upper limit, no more tags can be added to the cluster.
    • If default tags are enabled, a default tag is added to the cluster and each node, which takes two quotas. That is, a maximum of 20 tags can be added by default. In this case, a maximum of 18 more tags can still be added.

If your organization has configured tag strategies for MRS, add tags to clusters/nodes based on the strategies. If a tag does not comply with the tag strategies, the cluster/node may be failed to be created. Contact the organization administrator to learn more about the tag strategies.

A tag consists of a tag key and a tag value. Table 1 provides tag key and value requirements.

Table 1 Tag key and value requirements

Parameter

Requirement

Example

Key

A tag key cannot be left blank.

A tag key must be unique in a cluster.

A tag key can contain a maximum of 128 characters.

A tag value cannot contain special characters (=*<>\,|/) or start or end with spaces.

Organization

Value

A tag value can contain a maximum of 255 characters.

A tag value cannot contain special characters (=*<>\,|/) or start or end with spaces. This parameter can be left blank.

Apache

Adding Tags to a Cluster

  • Adding cluster tags during cluster creation
    1. Log in to the MRS console.
    2. Click Buy Cluster. The page for buying a cluster is displayed.
    3. Click the Custom Config tab.
    4. Configure the cluster software and hardware by referring to Manually Buying an MRS Cluster.
    5. Select Configure on the right of Set Advanced Options and enter the key and value of a new tag.
      Figure 1 Adding a tag to a cluster
  • Adding tags to an existing cluster
    1. Log in to the MRS console.
    2. On the Active Clusters page, select a running cluster and click its name to switch to the cluster details page.
    3. Click the Tags tab.
    4. Click Add/Edit Tag. If this is your first time adding a tag, click Add Tag. In the displayed dialog box, enter the key and value of a tag, and click Add.
      Figure 2 Adding/Editing a Tag
      NOTE:

      You can also add cluster tags by enabling default tags. All nodes will be tagged with the cluster ID and node IDs, which takes two quotas.

    5. Click OK.

Adding Tags to a Node

  • Node tags are automatically added when a default tag is added to a cluster. For details, see Adding tags to an existing cluster.
  • Adding node tags for auto scaling

    If you add a tag when configuring an auto scaling policy, MRS automatically adds the tag to the new nodes and synchronizes the tag to the ECSs and EVS disks.

    1. Log in to the MRS console.
    2. On the Active Clusters page, select a running cluster and click its name to switch to the cluster details page.
    3. On the page that is displayed, click the Auto Scaling tab.
    4. Click Edit on the right of an existing auto scaling policy. In the displayed dialog box, enter the key and value of the tag you want to add, and click Add.
      NOTE:
      • You need to enable the auto scaling policy and configure scale-out rules. Otherwise, the node tags will not take effect.
      • If tag quotas are insufficient, delete the cluster tag or modify existing a tag of the auto scaling policy, and then enable the policy.
      • Tags cannot be added to auto scaling policies of resource pools.
    5. Click OK.

Searching for Target Clusters by Tags

On the Active Clusters page, search for the target cluster by tag key or tag value.
  1. Log in to the MRS console.
  2. In the upper right corner of the Active Clusters page, click Search by Tag to access the search page.
  3. Enter the tag of the cluster to be searched.

    You can select a tag key or tag value from their drop-down lists. When the tag key or tag value is exactly matched, the system can automatically locate the target cluster. If you enter multiple tags, their intersections are used to search for the cluster.

  4. Click Search.

    The system searches for the target cluster by tag key or value.

Managing Tags

You can view, add, and delete tags on the Tags tab page of the cluster.
  1. Log in to the MRS console.
  2. On the Active Clusters page, click the name of a cluster for which you want to manage tags.

    The cluster details page is displayed.

  3. Click the Tags tab and view, add, and delete tags on the tab page.
    • View

      On the Tags tab page, you can view details about tags of the cluster, including the number of tags and the key and value of each tag.

    • Add

      Click Add/Edit Tag. If this is your first time adding a tag, click Add Tag. In the displayed dialog box, enter the key and value of a tag, and click OK.

    • Delete

      Locate the row that contains the tag you want to delete and click Delete in the Operation column. In the displayed Delete Tag dialog box, enter DELETE, and click Yes.

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