T.D.
T.D.

Reputation: 11

Can I deploy FIWARE IDAS communicating with an Orion Context Broker instance running on a different virtual machine from IDAS?

I want to deploy an IDAS (FIWARE Backend Device Manager) i.e. IOTA instance that will communicate and send data to an already existing Orion Context Broker instance running in a different virtual machine from the one hosting IDAS. Is that possible? Or is it necessary for the two services to be in the same virtual machine?

I am using an IoTAgent-JSON (I think it's 1.6.2 version) for MQTT transport.

This is the config.js file (I have already replaced the contextBroker host with the host of my Orion Context Broker, as you can see, it was "localhost" before):

var config = {};
config.mqtt = {
    host: 'localhost',
    port: 1883,
    thinkingThingsPlugin: true
};
config.iota = {
    logLevel: 'DEBUG',
    timestamp: true,
    contextBroker: {
        host: '147.27.60.182',
        port: '1026'
    },
    server: {
        port: 4041
    },
    deviceRegistry: {
        type: 'mongodb'
    },
    mongodb: {
        host: 'localhost',
        port: '27017',
        db: 'iotagentjson'
    },
    types: {},
    service: 'howtoService',
    subservice: '/howto',

IoTA endpoints: http://147.27.60.202:5351/iot/services (Fiware-Service: openiot, Fiware-ServicePath: /, X-Auth-Token: [TOKEN])

http://147.27.60.202:4041/iot/devices/ (Fiware-Service: tourguide, Fiware-ServicePath: /)

My Orion Context Broker (where I want to send data) endpoint: http://147.27.60.182:1026/v2

P.S.: I have tried to change the mongodb host, too.

Image: how the service runs

Upvotes: 1

Views: 90

Answers (1)

fgalan
fgalan

Reputation: 12294

Yes, you can have Orion and one or more IOTAs running in different virtual machine. The only requirement is mutual interconnection, I mean IOTA needs access to the Orion endpoint and Orion needs access to IOTA endpoint.

Check contextBroker.url (alternatively contextBroker.host and contextBroker.port) and providerUrl IOTA configuration parameters in IOTA documentation.

Upvotes: 0

Related Questions