You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by "NuxRo (via GitHub)" <gi...@apache.org> on 2023/08/30 16:24:00 UTC

[GitHub] [cloudstack] NuxRo commented on issue #6778: If Kafka is turned on internal subs dont work

NuxRo commented on issue #6778:
URL: https://github.com/apache/cloudstack/issues/6778#issuecomment-1699480313

   Just adding my 2 pence - and do note I have little experience with AMQP and Kafka.
   
   I have enabled Kafka and the Events still show up, at least in the UI (Events page).
   I have also enabled RabbitMQ and indeed, nothing gets published there as long as Kafka is enabled. Once I remove the Kafka "bean" then events are pushed into AMQP once again.
   
   This is not necessarily about Kafka btw, it seems like the first defined "bean" entry will be honoured and the rest ignored. If I move the Kafka "bean" under the RabbitMQ one, then no new data will show up in Kafka, but I will see events in the RabbitMQ server.
   
   For reference this is my /etc/cloudstack/management/META-INF/cloudstack/core/spring-event-bus-context.xml:
   
   ```
   <beans xmlns="http://www.springframework.org/schema/beans"
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xmlns:context="http://www.springframework.org/schema/context"
          xmlns:aop="http://www.springframework.org/schema/aop"
          xsi:schemaLocation="http://www.springframework.org/schema/beans
                              http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
                              http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-3.0.xsd
                              http://www.springframework.org/schema/context
                              http://www.springframework.org/schema/context/spring-context-3.0.xsd">
      <bean id="eventNotificationBus" class="org.apache.cloudstack.mom.kafka.KafkaEventBus">
        <property name="name" value="eventNotificationBus"/>
      </bean>
      <bean id="eventNotificationBus2" class="org.apache.cloudstack.mom.rabbitmq.RabbitMQEventBus">
         <property name="name" value="eventNotificationBus2"/>
         <property name="server" value="10.0.34.185"/>
         <property name="port" value="5672"/>
         <property name="username" value="test"/>
         <property name="password" value="test"/>
         <property name="exchange" value="cloudstack-events"/>
      </bean>
   </beans>
   ```
   
   With my ops hat on, I'd love it if both Kafka and AMQP worked at the same time.
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org