https://github.com/openstack/charm-rabbitmq-server
Juju Charm - RabbitMQ. Mirror of code maintained at opendev.org.
https://github.com/openstack/charm-rabbitmq-server
Last synced: about 1 year ago
JSON representation
Juju Charm - RabbitMQ. Mirror of code maintained at opendev.org.
- Host: GitHub
- URL: https://github.com/openstack/charm-rabbitmq-server
- Owner: openstack
- License: apache-2.0
- Created: 2016-03-01T07:57:11.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2024-11-07T20:33:17.000Z (over 1 year ago)
- Last Synced: 2024-11-07T21:27:19.205Z (over 1 year ago)
- Language: Python
- Homepage: https://opendev.org/openstack/charm-rabbitmq-server
- Size: 2.39 MB
- Stars: 16
- Watchers: 6
- Forks: 18
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Overview
RabbitMQ is an implementation of AMQP, the emerging standard for high
performance enterprise messaging. The RabbitMQ server is a robust and scalable
implementation of an AMQP broker.
The rabbitmq-server charm deploys RabbitMQ server and provides AMQP services to
those charms that support the rabbitmq interface. The current list of such
charms can be obtained from the [Charm Store][charms-requires-rabbitmq] (the
charms officially supported by the OpenStack Charms project are published by
'openstack-charmers').
NOTE: the charm doesn't officially support application data bags, and thus may
not work correctly with them. See [this bug][app-data-bag-bug] for more
details.
# Usage
## Configuration
This section covers common and/or important configuration options. See file
`config.yaml` for the full list of options, along with their descriptions and
default values. See the [Juju documentation][juju-docs-config-apps] for details
on configuring applications.
#### `min-cluster-size`
The `min-cluster-size` option sets the number of rabbitmq-server units required
to form its cluster. It is best practice to use this option as doing so ensures
that the charm will wait until the cluster is up before accepting relations
from other client applications.
#### `source`
The `source` option sets an alternate software source and can be passed during
or after deployment. The default behaviour is to use the Ubuntu package archive
for the underlying machine series. The most common value is a [UCA][uca] cloud
pocket (e.g. 'cloud:bionic-train'). In the case of a non-OpenStack project,
there is no guarantee that a candidate will be found in the stated UCA pocket.
> **Note:** Changing the value of this option post-deployment will trigger a
software upgrade. See [OpenStack upgrade][cdg-upgrade-openstack] in the
[OpenStack Charms Deployment Guide][cdg].
## Deployment
To deploy a single rabbitmq-server unit:
juju deploy rabbitmq-server
To make use of AMQP services, simply add a relation between rabbitmq-server and
an application that supports the rabbitmq interface. For instance:
juju add-relation rabbitmq-server:amqp nova-cloud-controller:amqp
## Monitoring
To collect RabbitMQ metrics, add a relation between rabbitmq-server and
an application that supports the `scrape` interface. For instance:
juju add-relation rabbitmq-server:scrape prometheus:scrape
> **Note:** The scrape relation is only supported when the RabbitMQ version is >= 3.8.
The charm can be related to a dashboard charm like grafana to view visualization metrics:
juju add-relation rabbitmq-server:dashboards grafana:dashboards
To get alerts of RabbitMQ split-brain events, add a relation between rabbitmq-server and
an application that supports the `prometheus-rules` interface. For instance:
juju add-relation rabbitmq-server:prometheus-rules prometheus:prometheus-rules
## High availability
When more than one unit is deployed the charm will bring up a native RabbitMQ
HA active/active cluster. The ``min-cluster-size`` option should be used (see
description above).
See [Infrastructure high availability][cdg-ha-rabbitmq] in the [OpenStack Charms
Deployment Guide][cdg] for details.
### TLS
Communication between the AMQP message queue and client services (OpenStack
applications) can be TLS-encrypted. There are two methods for managing keys and
certificates:
1. with Vault
1. manually (via charm options)
Vault can set up private keys and server certificates for an application. It
also stores a central CA certificate for the cloud. See the
[vault][vault-charm] charm for more information.
Vault is the recommended method and is what will be covered here.
The private key and server certificate (and its signing) are managed via a
relation made to the vault application:
juju add-relation rabbitmq-server:certificates vault:certificates
## Actions
This section lists Juju [actions][juju-docs-actions] supported by the charm.
Actions allow specific operations to be performed on a per-unit basis.
* `check-queues`
* `cluster-status`
* `complete-cluster-series-upgrade`
* `list-unconsumed-queues`
* `pause`
* `resume`
* `list-service-usernames`
* `rotate-service-user-password`
To display action descriptions run `juju actions --schema rabbitmq-server`. If
the charm is not deployed then see file ``actions.yaml``.
# Documentation
The OpenStack Charms project maintains two documentation guides:
* [OpenStack Charm Guide][cg]: for project information, including development
and support notes
* [OpenStack Charms Deployment Guide][cdg]: for charm usage information
# Bugs
For general charm questions refer to the [OpenStack Charm Guide][cg].
[cg]: https://docs.openstack.org/charm-guide
[cdg]: https://docs.openstack.org/project-deploy-guide/charm-deployment-guide
[cdg-upgrade-openstack]: https://docs.openstack.org/project-deploy-guide/charm-deployment-guide/latest/upgrade-openstack.html
[lp-bugs-charm-rabbitmq-server]: https://bugs.launchpad.net/charm-rabbitmq-server/+filebug
[juju-docs-actions]: https://jaas.ai/docs/actions
[charms-requires-rabbitmq]: https://jaas.ai/search?requires=rabbitmq
[vault-charm]: https://jaas.ai/vault
[uca]: https://wiki.ubuntu.com/OpenStack/CloudArchive
[cdg-ha-rabbitmq]: https://docs.openstack.org/project-deploy-guide/charm-deployment-guide/latest/app-ha.html#rabbitmq
[juju-docs-config-apps]: https://juju.is/docs/configuring-applications
[app-data-bag-bug]: https://bugs.launchpad.net/charm-rabbitmq-server/+bug/2051930