Tags are used to identify clusters/nodes. Adding tags to clusters can help you identify and manage your cluster resources.
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.
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.
Parameter |
Requirement |
Example |
---|---|---|
Key |
A tag key cannot be left blank. A tag key must be unique in a cluster. A tag key contains a maximum of 36 characters. A tag value cannot contain special characters (=*<>\,|/) or start or end with spaces. |
Organization |
Value |
A tag value contains a maximum of 43 characters. A tag value cannot contain special characters (=*<>\,|/) or start or end with spaces. This parameter can be left blank. |
Apache |
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.
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.
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.
The system searches for the target cluster by tag key or value.
The cluster details page is displayed.
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.
Click Add Tag in the upper left corner. In the displayed Add Tag dialog box, enter the key and value of the tag to be added, and click OK.
In the Operation column of the tag, click Edit. In the displayed Edit Tag page, enter new tag key and value and click OK.
In the Operation column of the tag, click Delete. After confirmation, click OK in the displayed page for deleting a tag.
MRS cluster tag updates will be synchronized to every ECS in the cluster. You are advised not to modify ECS tags on the ECS console to prevent inconsistency between ECS tags and MRS cluster tags. If the number of tags of an ECS in the MRS cluster reaches the upper limit, you cannot create any tag for the MRS cluster.