Get the App
SLTechnology News&Howtos  ›  Servers  › 

OpenStack practice (7): RabbitMQ Monitoring

Shulou Source: shulou.com Published: 2022-06-03 07:50:57 09月18日 Update

Environment description:

Hostnam

Operating system version

IP address

Description

Openstack-controllerUbuntu 16.04.5172.27.34.37openstack control node, where the rabbitmq service is located

For details of ubuntu installation, please see the full record of Ubuntu16.04.5 installation in lvm mode.

For more information on openstack installation, please see: OpenStack practice (1): build p version of OpenStack by DevStack under Ubuntu16.04

RabbitMQ is a message broker, the core principle: send messages, receive messages. RabbitMQ is mainly used for decoupling between components, and the message sender does not need to know the existence of the message consumer, and vice versa. RabbitMQ is used by almost all modules in OpenStack.

RabbitMQ can be managed through HTTP-based API, browser-based UI and CLI. This article introduces the most intuitive way: browser-based UI

1. Add user

Root@openstack-controller:~# rabbitmqctl add_user admin adminCreating user "admin"...

two。 Set the user role to administrator

Root@openstack-controller:~# rabbitmqctl set_user_tags admin administratorSetting tags for user "admin" to [administrator]...

3. Permission setting

Root@openstack-controller:~# rabbitmqctl set_permissions-p / admin ". *" Setting permissions for user "admin" in vhost "/".

4. Install the RabbitMQWeb Management snap-in

Root@openstack-controller:~# rabbitmq-plugins enable rabbitmq_managementThe following plugins have been enabled: mochiweb webmachine rabbitmq_web_dispatch amqp_client rabbitmq_management_agent rabbitmq_managementApplying plugin configuration to rabbit@openstack-controller... Started 6 plugins.

5. Plug-in View

Root@openstack-controller:~# rabbitmq-plugins list

6. Log in to web

Http://172.27.34.37:15672

The login address is http://ip:15672. At this time, Unacked=0 means that there are no unprocessed messages, and the service goes out in a normal state.

Reference:

Https://www.rabbitmq.com/plugins.html#overview

Https://blog.51cto.com/cloudman/1902821

Http://www.cnblogs.com/starof/p/4173413.html

Tags: Message mode management address plug-in user service login practice intuition operating system host between user principle and vice versa sender permissions core module Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno NVidia vpn macOS OPPO Reno Docker