Skip to content

Commit 0abeb8e

Browse files
committed
added kafaka and rabbitmq info
1 parent 5640e12 commit 0abeb8e

File tree

1 file changed

+31
-1
lines changed

1 file changed

+31
-1
lines changed

source/adminguide/events.rst

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,23 @@ changes can control the behaviour.
203203
204204
#. Restart the Management Server.
205205

206+
#. CloudStack creates the exchange ‘cloudstack-events’ which will receive messages containing CloudStack events; however will be no queues created.
207+
208+
To create a queue and bind with cloudstack-events the following steps are needed:
209+
210+
- Go to Queues tab and add a queue, e.g. 'cloudstack-queue’
211+
- Go to Exchanges tab and Bind to queue cloudstack-queue with the desired ‘Routing key’.
212+
213+
214+
#. Routing keys
215+
216+
The routing key is a list of words, delimited by a period ("."). CloudStack builds routing keys according to each event type, some examples are:
217+
218+
Some example of routing keys that match CloudStack events:
219+
- A pound symbol (“#”) indicates a match on zero or more words; thus, it will match any possible set of words;
220+
- Asterisk (“*”) matching any word and the period (“.”) delimiting example '\*.*.*.*.*'
221+
222+
206223
Kafka Configuration
207224
~~~~~~~~~~~~~~~~~~~
208225

@@ -214,7 +231,20 @@ changes can control the behaviour.
214231
which contains valid kafka configuration properties as documented in http://kafka.apache.org/documentation.html#newproducerconfigs
215232
The properties may contain an additional ``topic`` property which if not provided will default to ``cloudstack``.
216233
While ``key.serializer`` and ``value.serializer`` are usually required for a producer to correctly start, they may be omitted and
217-
will default to ``org.apache.kafka.common.serialization.StringSerializer``.
234+
will default to ``org.apache.kafka.common.serialization.StringSerializer``. A sample example which will be used by cloudstack for exporting of events
235+
236+
.. parsed-literal::
237+
238+
cat /etc/cloudstack/management/kafka.producer.properties
239+
240+
bootstrap.servers=<localhost>:9092
241+
acks=all
242+
topic=cs
243+
retries=1
244+
245+
246+
247+
218248
219249
#. Create the folder ``/etc/cloudstack/management/META-INF/cloudstack/core``
220250

0 commit comments

Comments
 (0)