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>]
Dear Gioacchino,
I've forwarded your question to the Orion developers, and they will
answer if it is possible to launch two Orion instances in the same VM or
not.
However, if you create two VMs with Orion in the same virtual network,
and assign a floating IP to one of them. You can simply add a forwarding
rule to the machine having the public IP address so that you can reach
the second orion instance (running in the VM with local address only)
through the public ip.
For that:
1. add the following iptables rules on the VM with public IP address:
iptables -t nat -A PREROUTING -p tcp -m tcp --dport 1027 -j DNAT
--to-destination <private IP of the second orion vm>:1026
iptables -t nat -A POSTROUTING -p tcp -m tcp --dport 1027 -j MASQUERADE
2. and enable packet forwarding:
sysctl -w net.ipv4.ip_forward=1
3. After that add a new security rule in the cloud portal so that port
1027 would be open.
After that the second Orion can be accessed on <public ip>:1027
Another option to use a proxy like PEPProxy or something similar on the
machine with public ip:
https://github.com/ging/fi-ware-pep-proxy
I hope it helps you,
Best,
Sandor
–
Sándor Laki
EU FP7 FI-PPP XIFI project,
Wigner Research Centre for Physics,
Hungarian Academy of Sciences
Konkoly Thege Miklós út 29-33.
H-1121, Budapest, Hungary
Cell: +36 70 374 2646
Skype: sandor.laki
XIFI: https://fi-xifi.eu/home.html
FI-PPP: http://www.fi-ppp.eu/
_______________________________________________
Fiware-lab-help mailing list
Fiware-lab-help@lists.fi-ware.org
https://lists.fi-ware.org/listinfo/fiware-lab-help