Help Center > > User Guide> Managing Active Clusters> Configuring Message Notification

Configuring Message Notification

Updated at:Apr 28, 2020 GMT+08:00

You can connect MRS to SMN to provide basic SMS notification and email notification functions in specific scenarios.

Scenario

On the MRS management console, you can enable or disable the notification service on the Alarms tab page of the cluster details page. The functions in the following scenarios can be implemented only after the required cluster function is enabled:

  • 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 termination, and auto scaling by email or SMS message.
  • The management plane checks alarms about the MRS cluster and sends a notification to the user's tenants if the alarm is critical and affects service use.
  • 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 malfunctions. The management plane notifies a user when detecting that the VM of the user is in either of the preceding states.

Procedure

Creating a Topic

A topic is a specified event for message publication and notification subscription. It serves as a message sending channel, where publishers and subscribers can interact with each other.

  1. Log in to the management console.
  2. Click Service List, and choose Application > Simple Message Notification.

    The SMN console is displayed.

  3. In the left navigation pane, choose Topic Management > Topic.

    The Topic page is displayed.

  4. On the Topic page, click Create Topic.

    The Create Topic dialog box is displayed.

  5. In Topic Name, enter a topic name. In Display Name, enter description information.

Adding Subscriptions to a Topic

To deliver messages published to a topic to subscribers, you must add subscription endpoints to the topic. After you add subscription endpoints, SMN automatically sends a confirmation message to the subscribers. The subscribers must confirm the subscription within 48 hours so that they can receive notification messages. Otherwise, the confirmation message becomes invalid, and you need to send it again.

  1. Log in to the management console.
  2. Choose Application > Simple Message Notification.

    The SMN console is displayed.

  3. In the left navigation pane, choose Topic Management > Topic.

    The Topic page is displayed.

  4. In the topic list, select a topic to which you want to add a subscription. In the Operation column of the topic on the right side, click Add Subscription.

    The Add Subscription dialog box is displayed.

    The possible values of the Protocol parameter are SMS, Email, HTTP, HTTPS, FunctionGraph (function), FunctionGraph (workflow), and DMS.

    The endpoint parameters include the endpoint address, SMS message, email, HTTP, and HTTPS and can be inputted in batches. When you add endpoints in batches, each endpoint occupies one line and you can input a maximum of 10 endpoints.

  1. Click OK.

The newly added subscription is displayed in the subscription list.

Sending Messages to Subscribers

  1. Log in to the MRS management console.
  2. Choose Clusters > Active Clusters and click the name of a running cluster to enter the cluster details page.
  3. Click the Alarms tab.
  4. Choose Notification Rules > Add Notification Rule. The Add Notification Rule page is displayed.
  5. Set the notification rule parameters.
    Table 1 Notification rule parameters

    Parameter

    Description

    Rule Name

    Notification rule name specified by a user. Only digits, letters, hyphens (-), and underscores (_) are allowed.

    Message Notification

    • 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

    Select an existing topic or click Create Topic to create a topic.

    Notification Type

    Select the type of the notification to be subscribed to.

    • Alarm
    • Event

    Subscription Items

    Select the items to be subscribed to. You can select all or some items as required.

    • Critical
    • Major
    • Minor
    • Suggestion
    Figure 1 Adding a notification rule
  6. Click OK.

Did you find this page helpful?

Submit successfully!

Thank you for your feedback. Your feedback helps make our documentation better.

Failed to submit the feedback. Please try again later.

Which of the following issues have you encountered?







Please complete at least one feedback item.

Content most length 200 character

Content is empty.

OK Cancel