Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added kafaka and rabbitmq info #418

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 31 additions & 1 deletion source/adminguide/events.rst
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,23 @@ changes can control the behaviour.

#. Restart the Management Server.

#. CloudStack creates the exchange ‘cloudstack-events’ which will receive messages containing CloudStack events; however will be no queues created.

To create a queue and bind with cloudstack-events the following steps are needed:

- Go to Queues tab and add a queue, e.g. 'cloudstack-queue’
- Go to Exchanges tab and Bind to queue cloudstack-queue with the desired ‘Routing key’.


#. Routing keys

The routing key is a list of words, delimited by a period ("."). CloudStack builds routing keys according to each event type, some examples are:

Some example of routing keys that match CloudStack events:
- A pound symbol (“#”) indicates a match on zero or more words; thus, it will match any possible set of words;
- Asterisk (“*”) matching any word and the period (“.”) delimiting example '\*.*.*.*.*'


Kafka Configuration
~~~~~~~~~~~~~~~~~~~

Expand All @@ -214,7 +231,20 @@ changes can control the behaviour.
which contains valid kafka configuration properties as documented in http://kafka.apache.org/documentation.html#newproducerconfigs
The properties may contain an additional ``topic`` property which if not provided will default to ``cloudstack``.
While ``key.serializer`` and ``value.serializer`` are usually required for a producer to correctly start, they may be omitted and
will default to ``org.apache.kafka.common.serialization.StringSerializer``.
will default to ``org.apache.kafka.common.serialization.StringSerializer``. A sample example which will be used by cloudstack for exporting of events

.. parsed-literal::

cat /etc/cloudstack/management/kafka.producer.properties

bootstrap.servers=<localhost>:9092
acks=all
topic=cs
retries=1





#. Create the folder ``/etc/cloudstack/management/META-INF/cloudstack/core``

Expand Down
Loading