Configuring Notification Rules for MRS Jobs
MRS uses SMN to offer a publish/subscribe model to achieve one-to-multiple message subscriptions and notifications in a variety of message types (SMSs and emails). You can configure job notification rules to receive notifications immediately upon a job execution success or failure.
- Log in to the management console.
 - Click Service List. Under Management & Governance, click Simple Message Notification.
 - Create a topic and add subscriptions to the topic. For details, see Configuring Notifications for MRS Cluster Alarms and Events.
 - Go to the MRS management console, and click the cluster name to go to the cluster details page.
 - Click the Alarms tab, and choose Notification Rules > Add Notification Rule.
   
   Figure 1 Adding a notification rule
    - Configure a notification rule for sending job execution results to subscribers.
   
   
Table 1 Parameters of adding a notification rule Parameter
Example Value
Description
Rule Name
default_alert_rule1
User-defined notification rule name. Only digits, letters, hyphens (-), and underscores (_) are allowed.
Message Notification
-
If you enable this function, subscription messages will be sent to subscribers.
Topic Name
-
Select an existing topic or click Create Topic to create a topic.
Notification Type
Event
Select Event.
Subscription Items
-
- Click 
 next to Suggestion. - Click 
 next to Manager. - Select Job Running Succeeded and Job Running Failed.
 
 - Click 
 
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.