{"action":"created","issue":{"url":"https://api.github.com/repos/Data-to-Insight-Center/komadu/issues/5","labels_url":"https://api.github.com/repos/Data-to-Insight-Center/komadu/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/Data-to-Insight-Center/komadu/issues/5/comments","events_url":"https://api.github.com/repos/Data-to-Insight-Center/komadu/issues/5/events","html_url":"https://github.com/Data-to-Insight-Center/komadu/issues/5","id":98797818,"number":5,"title":"Running Komadu on Mesos cluster: Web service or Standalone server?","user":{"login":"sid-thakur","id":5922613,"avatar_url":"https://avatars.githubusercontent.com/u/5922613?v=3","gravatar_id":"","url":"https://api.github.com/users/sid-thakur","html_url":"https://github.com/sid-thakur","followers_url":"https://api.github.com/users/sid-thakur/followers","following_url":"https://api.github.com/users/sid-thakur/following{/other_user}","gists_url":"https://api.github.com/users/sid-thakur/gists{/gist_id}","starred_url":"https://api.github.com/users/sid-thakur/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sid-thakur/subscriptions","organizations_url":"https://api.github.com/users/sid-thakur/orgs","repos_url":"https://api.github.com/users/sid-thakur/repos","events_url":"https://api.github.com/users/sid-thakur/events{/privacy}","received_events_url":"https://api.github.com/users/sid-thakur/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2015-08-03T17:24:22Z","updated_at":"2015-08-24T21:08:00Z","closed_at":null,"body":"Hi @isurues \r\nWe have an Apache Mesos cluster within which we'd like to deploy Komadu. Ideally, we'd like komadu to run in its own VM on the cluster and be able to receive event-style notifications from a web app and other process running on another, production-level, VM. Essentially, we'd like to be able to send prov notification events from other VMs to komdu (running in its own VM).\r\n\r\nWhat I'd like to know is which of the two methods of running Komadu, web service or standalone server, would be suitable for our scenario. Please also clarify what accommodations, if any, would we need to make to enable Komadu to function within this multi-VM envrionment.\r\n\r\nThanks,\r\nSid\r\n---"},"comment":{"url":"https://api.github.com/repos/Data-to-Insight-Center/komadu/issues/comments/134380484","html_url":"https://github.com/Data-to-Insight-Center/komadu/issues/5#issuecomment-134380484","issue_url":"https://api.github.com/repos/Data-to-Insight-Center/komadu/issues/5","id":134380484,"user":{"login":"sid-thakur","id":5922613,"avatar_url":"https://avatars.githubusercontent.com/u/5922613?v=3","gravatar_id":"","url":"https://api.github.com/users/sid-thakur","html_url":"https://github.com/sid-thakur","followers_url":"https://api.github.com/users/sid-thakur/followers","following_url":"https://api.github.com/users/sid-thakur/following{/other_user}","gists_url":"https://api.github.com/users/sid-thakur/gists{/gist_id}","starred_url":"https://api.github.com/users/sid-thakur/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sid-thakur/subscriptions","organizations_url":"https://api.github.com/users/sid-thakur/orgs","repos_url":"https://api.github.com/users/sid-thakur/repos","events_url":"https://api.github.com/users/sid-thakur/events{/privacy}","received_events_url":"https://api.github.com/users/sid-thakur/received_events","type":"User","site_admin":false},"created_at":"2015-08-24T21:08:00Z","updated_at":"2015-08-24T21:08:00Z","body":"I was able to partly figure out second part of my question above (namely, how to forward messages to Komadu via RabbitMQ). Here is my sample sender python code:\r\n```\r\n#!/usr/bin/env python                                                                                                                                       \r\nimport pika\r\nimport logging\r\nlogging.basicConfig()\r\n\r\nconnection = pika.BlockingConnection (pika.ConnectionParameters (host='localhost'))\r\nchannel = connection.channel ()\r\n\r\nqueueName    = 'KomaduQueue_Notification'\r\nexchangeName = 'KomaduExchange_Notification'\r\nroutingKey   = 'KomaduQueue_Notification'\r\n\r\n#channel.queue_declare(queue = queueName)                                                                                                                   \r\n\r\n\r\nsampleNotificationFilePath = '/home/cluster/prov-components/komadu-1.0/client-core-messaging/samples/agent_agent.xml'\r\n\r\ndata = ''\r\nwith open (sampleNotificationFilePath, \"r\") as myfile:\r\n    data=myfile.read().replace('\\n', '')\r\n\r\nprint 'data: ',\tdata\r\n\r\nchannel.basic_publish(exchange = '',\r\n                      routing_key = routingKey,\r\n                      body=data)\r\n\r\nprint \" [x] Sent 'Hello World!'\"\r\n```\r\nRunning above script produces message `ADD_AGENT_AGENT_RELATION` on Komadu console, which I assume means that a notification was successfully inserted.\r\n\r\nClarification of first question above (namely, how does rabbit set up various queues) and any other info would still be helpful. Thanks. "}}