Details
-
Type:
extRequest
-
Status: Closed
-
Priority:
Major
-
Resolution: Done
-
Fix Version/s: Sprint 4.1.3
-
Component/s: FIWARE-TECH-HELP
-
Labels:None
-
Sender Email:
-
HD-Chapter:Data
-
HD-Enabler:Orion
Description
Hi,
I'm trying to use FiLab GEs.
I would create two Orion Context Broker instances on FiLab, but i have only
one public IP address.
How can i execute two Orion instances on the same VM and access them
through the same public IP?
I tried using Blueprint template with two tiers. One Orion for each tier.
But it doesn't work.
Any suggestions?
Thanks in advance
Gioacchino
_______________________________________________
Fiware-lab-help mailing list
Fiware-lab-help@lists.fi-ware.org
https://lists.fi-ware.org/listinfo/fiware-lab-help
[Created via e-mail received from: Gioacchino Bombaci <gioakbombaci@gmail.com>]
Replied by Ken on Dec,1 at 15:32
===========
Hi Gioacchino,
yes, you can have two instances of the orion context broker running in the same machine.
You need to be a little careful on how you start them though, e.g. they cannot both listen to the same port, obviously.
The listen port is chosen using the '-port' option.
The first instance of orion you can start without any options, just using the default values.
The second instance however, must be told to use different ports, paths etc, in order not to use the same stuff as the first instance.
You will want separate log files for the instances, this is fixed using the -logDir option
(just give one of them a directory != the default directory, which is '/tmp').
The file where the Process IDentifier is stored should also be changed for the second instance of orion. Option: -pidpath <path to pidfile>.
You probaly don't want the second instance attacking the same database as the first one: option: -db <name of database>.
So, an example on successfully running two brokers in the same machine:
$ contextBroker
$ contextBroker -db secondBroker -pidpath /tmp/secondBroker.pid -logDir /tmp/secondBroker -port 1099
[ The directory '/tmp/secondBroker' must exist and be writable ]
[ The mongo database named 'secondBroker' is created automatically ]
Good luck,
/KZ