Configuring Notifications for MRS Cluster Alarms and Events
Simple Message Notification (SMN) is a reliable and flexible large-scale message notification service. It enables you to efficiently send messages to various endpoints, such as email addresses and phone numbers. MRS uses SMN to offer a publish/subscribe model to achieve one-to-multiple message subscriptions and notifications through different subscription endpoints (SMSs and emails).

In an MRS cluster, you can choose whether to enable message notification in cluster alarm management to proactively notify users of specified messages.
- After a user subscribes to the notification service, the MRS management plane notifies the user of success or failure of manual cluster scale-out and scale-in, cluster deletion, and auto scaling by emails or SMS messages.
- The management plane checks the alarms about the MRS cluster and sends a notification to the tenant if the alarms are critical.
- If either of the operations such as deletion, shutdown, specifications modification, restart, and OS update is performed on an ECS in a cluster, the MRS cluster works abnormally. The management plane notifies a user when detecting that the VM of the user is in either of the preceding operations.
Step 1: Creating an SMN Topic and Adding a Subscription
A topic is used to publish messages and subscribe to notifications. It serves as a message sending channel, where publishers and subscribers can interact with each other.
- Log in to the management console.
- Click Service List. Under Management & Governance, click Simple Message Notification.
- In the navigation pane, choose Topic Management > Topics.
- Click Create Topic.
Table 1 Parameters for creating an SMN topic Parameter
Description
Example Value
Topic Name
Topic name, which:
- Contains only letters, digits, hyphens (-), and underscores (_) and must start with a letter or digit.
- Contains 1 to 255 characters.
- Must be unique and cannot be modified after the topic is created.
mrs-job
Display name
Message sender name, which can contain up to 192 bytes.
After you specify a display name, the sender in email messages will be presented as Display name<username@example.com>. Otherwise, the sender will be username@example.com.
mrs-job-failed
Enterprise Project
Name of an enterprise project. An enterprise project allows you to group cloud resources under specific projects, making it easier to manage cloud resources and users. The default name is default.
This parameter is for enterprise users.
default
- Click OK.
After a topic is created, the system generates a topic URN, which uniquely identifies the topic and cannot be changed.
The created topic is displayed in the topic list. You can click the topic name to view its details.
- Locate the topic to which you want to add a subscription, click More in the Operation column, and select Add Subscription.
Figure 2 Adding a subscription to a topic
Endpoint indicates the address of the subscription endpoint. You can add multiple SMS and email endpoints at a time, one in each line. You can enter a maximum of 10 endpoints.
Table 2 Parameters for adding a subscription Parameter
Description
Example Value
Protocol
Protocol supported by the subscription endpoints. For example, you can receive messages through SMS messages or emails.
Email
Method
The following two options are available:
- Add subscriptions
- Import subscriptions: Select subscribers whose subscription has been confirmed and import the subscription data.
Add subscriptions
Endpoint
Subscription endpoint. You can enter up to 10 SMS, email, HTTP, or HTTPS endpoints, one in each line.
username@example.com
- Click OK. The new subscription is displayed in the subscription list.
Once you have added a subscription, SMN will send a confirmation message to the subscription endpoint, which includes a link for confirming the subscription. The subscription confirmation link is valid for 48 hours. Make sure to confirm your subscription on your mobile phone, mailbox, or other endpoints within this time frame.
The subscription endpoint can receive messages only after the subscription status changes to Confirmed.
Figure 3 Viewing the subscription status
Configuring Notification Rules for MRS Clusters
- Log in to the MRS console.
- Choose Active Clusters, select a running cluster, and click its name to go to its details page.
- Click Alarms.
- Choose Notification Rules > Add Notification Rule.
Figure 4 Creating a message subscription rule
- Set the notification rule parameters.
Table 3 Parameters of a notification rule Parameter
Example Value
Description
Rule Name
mrs_alarm
User-defined notification rule name. Only digits, letters, hyphens (-), and underscores (_) are allowed.
Message Notification
Enable
- If you enable this function, the system sends notifications to subscribers based on the notification rule.
- If you disable this function, the rule does not take effect, that is, notifications are not sent to subscribers.
Topic Name
mrs_topic
Select an existing topic or click Create Topic to create a topic.
Notification Type
Alarm
Select the type of the notification to be subscribed to.
- Alarm
- Event
Subscription Items
Major
Select the items to be subscribed to. You can select all or some items as required.
For example, choose Major > Manager and select Node Fault.
- Click OK. After the message notification is configured, the related endpoint can receive detailed notification messages when alarms or events in the subscription rule are generated in the MRS cluster.
After a message subscription rule is applied, you may receive some historical alarms.
Helpful Links
- SMN can push cloud service notifications based on your requirements. For more information about SMN, see Simple Message Notification.
- Alarms generated for MRS clusters need to be manually cleared. For details, see MRS Cluster Alarm Handling Reference.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot