You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cloudstack.apache.org by pyr <gi...@git.apache.org> on 2015/03/10 23:28:34 UTC

[GitHub] cloudstack pull request: Add Apache Kafka event-bus support - prod...

GitHub user pyr opened a pull request:

    https://github.com/apache/cloudstack/pull/109

    Add Apache Kafka event-bus support - producing only.

    This commit produces event bus messages to a "cloudstack" topic
    in Apache Kafka. Configuration is expected to be found in
    /etc/cloudstack/management/kafka.producer.properties and will
    generally be of the form:
    
        bootstrap.servers=kafka-host1:9092,kafka-host2:9092
        key.serializer=org.apache.kafka.common.serialization.StringSerializer
        value.serializer=org.apache.kafka.common.serialization.StringSerializer
    
    There is no way to parameterize the topic yet, and the consuming
    code is just place-holder. I think adding a consumer within cloudstack
    is very debatable and likely not needed.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/exoscale/cloudstack feature/event-bus-kafka

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/cloudstack/pull/109.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #109
    
----
commit af369274dc6fc1941d5bd90baf77a3b076f002cf
Author: Pierre-Yves Ritschard <py...@spootnik.org>
Date:   2015-03-10T22:25:21Z

    Add Apache Kafka event-bus support - producing only.
    
    This commit produces event bus messages to a "cloudstack" topic
    in Apache Kafka. Configuration is expected to be found in
    /etc/cloudstack/management/kafka.producer.properties and will
    generally be of the form:
    
        bootstrap.servers=kafka-host1:9092,kafka-host2:9092
        key.serializer=org.apache.kafka.common.serialization.StringSerializer
        value.serializer=org.apache.kafka.common.serialization.StringSerializer
    
    There is no way to parameterize the topic yet, and the consuming
    code is just place-holder. I think adding a consumer within cloudstack
    is very debatable and likely not needed.

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] cloudstack pull request: Add Apache Kafka event-bus support - prod...

Posted by asfgit <gi...@git.apache.org>.
Github user asfgit closed the pull request at:

    https://github.com/apache/cloudstack/pull/109


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] cloudstack pull request: Add Apache Kafka event-bus support - prod...

Posted by pyr <gi...@git.apache.org>.
Github user pyr commented on the pull request:

    https://github.com/apache/cloudstack/pull/109#issuecomment-78245063
  
    @bhaisaab yes, where is the repo ? 


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] cloudstack pull request: Add Apache Kafka event-bus support - prod...

Posted by pyr <gi...@git.apache.org>.
Github user pyr commented on the pull request:

    https://github.com/apache/cloudstack/pull/109#issuecomment-78251684
  
    @bhaisaab now in apache/cloudstack-docs-admin#28


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] cloudstack pull request: Add Apache Kafka event-bus support - prod...

Posted by bhaisaab <gi...@git.apache.org>.
Github user bhaisaab commented on the pull request:

    https://github.com/apache/cloudstack/pull/109#issuecomment-78244266
  
    @pyr thanks for replying. LGTM. Let's wait if any of the eventbus gurus want to review, else we'll merge by tomorrow.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] cloudstack pull request: Add Apache Kafka event-bus support - prod...

Posted by pyr <gi...@git.apache.org>.
Github user pyr commented on the pull request:

    https://github.com/apache/cloudstack/pull/109#issuecomment-78220517
  
    @bhaisaab I made the topic configurable and provided some more explanation in the PR description. Thanks for the review.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] cloudstack pull request: Add Apache Kafka event-bus support - prod...

Posted by bhaisaab <gi...@git.apache.org>.
Github user bhaisaab commented on a diff in the pull request:

    https://github.com/apache/cloudstack/pull/109#discussion_r26193337
  
    --- Diff: plugins/event-bus/kafka/pom.xml ---
    @@ -0,0 +1,45 @@
    +<!--
    +  Licensed to the Apache Software Foundation (ASF) under one
    +  or more contributor license agreements. See the NOTICE file
    +  distributed with this work for additional information
    +  regarding copyright ownership. The ASF licenses this file
    +  to you under the Apache License, Version 2.0 (the
    +  "License"); you may not use this file except in compliance
    +  with the License. You may obtain a copy of the License at
    +
    +  http://www.apache.org/licenses/LICENSE-2.0
    +
    +  Unless required by applicable law or agreed to in writing,
    +  software distributed under the License is distributed on an
    +  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
    +  KIND, either express or implied. See the License for the
    +  specific language governing permissions and limitations
    +  under the License.
    +-->
    +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    +         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    +  <modelVersion>4.0.0</modelVersion>
    +  <artifactId>cloud-mom-kafka</artifactId>
    +  <name>Apache CloudStack Plugin - Kafka Event Bus</name>
    +  <parent>
    +    <groupId>org.apache.cloudstack</groupId>
    +    <artifactId>cloudstack-plugins</artifactId>
    +    <version>4.4.2</version>
    --- End diff --
    
    If this needs to be merged with master, please change version to 4.6.0-SNAPSHOT


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] cloudstack pull request: Add Apache Kafka event-bus support - prod...

Posted by bhaisaab <gi...@git.apache.org>.
Github user bhaisaab commented on the pull request:

    https://github.com/apache/cloudstack/pull/109#issuecomment-78217785
  
    @pyr looks good, should it have methods for doing/handling connection and reconnection? (I've no idea how to connect to Kafka, assuming it's over TCP)


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] cloudstack pull request: Add Apache Kafka event-bus support - prod...

Posted by pyr <gi...@git.apache.org>.
Github user pyr commented on the pull request:

    https://github.com/apache/cloudstack/pull/109#issuecomment-78219876
  
    @bhaisaab the producer has a thread which handles this and knows what broker is responsible for what partition, it maintains its own internal broker topology, so there is no additional code needed.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] cloudstack pull request: Add Apache Kafka event-bus support - prod...

Posted by pyr <gi...@git.apache.org>.
Github user pyr commented on a diff in the pull request:

    https://github.com/apache/cloudstack/pull/109#discussion_r26194042
  
    --- Diff: plugins/event-bus/kafka/pom.xml ---
    @@ -0,0 +1,45 @@
    +<!--
    +  Licensed to the Apache Software Foundation (ASF) under one
    +  or more contributor license agreements. See the NOTICE file
    +  distributed with this work for additional information
    +  regarding copyright ownership. The ASF licenses this file
    +  to you under the Apache License, Version 2.0 (the
    +  "License"); you may not use this file except in compliance
    +  with the License. You may obtain a copy of the License at
    +
    +  http://www.apache.org/licenses/LICENSE-2.0
    +
    +  Unless required by applicable law or agreed to in writing,
    +  software distributed under the License is distributed on an
    +  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
    +  KIND, either express or implied. See the License for the
    +  specific language governing permissions and limitations
    +  under the License.
    +-->
    +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    +         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    +  <modelVersion>4.0.0</modelVersion>
    +  <artifactId>cloud-mom-kafka</artifactId>
    +  <name>Apache CloudStack Plugin - Kafka Event Bus</name>
    +  <parent>
    +    <groupId>org.apache.cloudstack</groupId>
    +    <artifactId>cloudstack-plugins</artifactId>
    +    <version>4.4.2</version>
    --- End diff --
    
    will do, thanks


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] cloudstack pull request: Add Apache Kafka event-bus support - prod...

Posted by bhaisaab <gi...@git.apache.org>.
Github user bhaisaab commented on the pull request:

    https://github.com/apache/cloudstack/pull/109#issuecomment-78244523
  
    @pyr like the RabbitMQ, do you want to add docs to use/configure this as well? http://docs.cloudstack.apache.org/projects/cloudstack-administration/en/4.4/events.html#notification


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] cloudstack pull request: Add Apache Kafka event-bus support - prod...

Posted by bhaisaab <gi...@git.apache.org>.
Github user bhaisaab commented on the pull request:

    https://github.com/apache/cloudstack/pull/109#issuecomment-78297425
  
    @pyr thanks, reviewed both doc and code and merged. Thanks for your contribution!


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] cloudstack pull request: Add Apache Kafka event-bus support - prod...

Posted by bhaisaab <gi...@git.apache.org>.
Github user bhaisaab commented on the pull request:

    https://github.com/apache/cloudstack/pull/109#issuecomment-78246495
  
    @pyr you can fork/edit this: https://github.com/apache/cloudstack-docs-admin/blob/master/source/events.rst and send PR


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---