Aodh m version new features-queue between alarm evaluator and alarm notifier

Source: Internet
Author: User

Earlier communication between alarm evaluator service and alarm notifier services was RPC-intensive and increased the way the work queue was used to get better performance,

+ifConf.ipc_protocol = ='RPC':+ SELF.IPC ='RPC'+ Self.rpc_server =Messaging.get_rpc_server (+conf, transport, conf.notifier_rpc_topic, self)+Else:+ SELF.IPC ='Queue'+ target = oslo_messaging. Target (topic=conf.notifier_topic)+ Self.listener =Messaging.get_notification_listener (+transport, [target],+ [Alarmendpoint (self.notifiers)])

The so-called work queue method is to send the results of evaluator as a message payload sent to alarm:

+ Payload = {'Actions': Actions,+'alarm_id': alarm.alarm_id,+'Alarm_name': Alarm.name,+'severity': Alarm.severity,+'previous': Previous,+' Current': Alarm.state,+'reason': six.text_type (reason),+'Reason_data': Reason_data}+ Self.notifier.sample (Self.ctxt,'alarm.update', payload)

Reference: https://review.openstack.org/#/c/247211/

Aodh m version new features-queue between alarm evaluator and alarm notifier

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.