Discussion:
[omniORB] omniORB Load balancing?
Marcus Diniz
2012-08-07 00:20:25 UTC
Permalink
Hi all,

I'd like to ask if it is possible to 'load balance' omniNames, because our
application makes a lot of requests per second and it's triggering the
CORBA::SystemException when doing lookups (perhaps it's doing too many
lookups per second), and yet.. we do need to do all those requests, do you
guys have any tips of what I can do? Perhaps implement a TCP load balancer
and run more than 1 omniORB instance?

Thanks for your attention
--
Marcus Diniz
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.omniorb-support.com/pipermail/omniorb-list/attachments/20120806/3b2d73b3/attachment.html>
Vahedipour, Kaveh
2012-08-07 00:30:25 UTC
Permalink
Easy enough. Run multiple servers on different IPs and load balance thru DNS round robin.

Kaveh Vahedipour
Research Centre Juelich
Medical Imaging Physics
Post by Marcus Diniz
Hi all,
I'd like to ask if it is possible to 'load balance' omniNames, because our application makes a lot of requests per second and it's triggering the CORBA::SystemException when doing lookups (perhaps it's doing too many lookups per second), and yet.. we do need to do all those requests, do you guys have any tips of what I can do? Perhaps implement a TCP load balancer and run more than 1 omniORB instance?
Thanks for your attention
--
Marcus Diniz
_______________________________________________
omniORB-list mailing list
omniORB-list at omniorb-support.com
http://www.omniorb-support.com/mailman/listinfo/omniorb-list
------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------
Forschungszentrum Juelich GmbH
52425 Juelich
Sitz der Gesellschaft: Juelich
Eingetragen im Handelsregister des Amtsgerichts Dueren Nr. HR B 3498
Vorsitzender des Aufsichtsrats: MinDir Dr. Karl Eugen Huthmacher
Geschaeftsfuehrung: Prof. Dr. Achim Bachem (Vorsitzender),
Karsten Beneke (stellv. Vorsitzender), Prof. Dr.-Ing. Harald Bolt,
Prof. Dr. Sebastian M. Schmidt
------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------

Kennen Sie schon unsere app? http://www.fz-juelich.de/app
Tran, Thomas H
2012-08-07 17:18:44 UTC
Permalink
Hello Experts,

How would I programmatically create a table of fieldname/offset of CORBA-IDL structure on the wire?

According to http://www.ciaranmchale.com/corba-explained-simply/on-the-wire-protocols.html I do know the mapping my structure manually but it is not feasible for me create the tables manually and keep them up to date when the people change the IDL files.

Thank in advance.
Tom
Duncan Grisby
2012-08-08 10:21:12 UTC
Permalink
Post by Tran, Thomas H
How would I programmatically create a table of fieldname/offset of
CORBA-IDL structure on the wire?
Do you want to do it based on the IDL definitions, or at run-time?

If you want to do it based on IDL, you have to compile the IDL into a
suitable structure. You can do that by making a new back-end for
omniidl. See

http://omniorb.sourceforge.net/omni41/omniidl.html

If you're asking because you're sniffing the traffic and want to decode
it, you might find Wireshark's idl2wrs helpful. It's a back-end for
omniidl that builds a Wireshark plugin:

http://www.wireshark.org/docs/man-pages/idl2wrs.html


If you're trying to do it at run-time, look at the CORBA::TypeCode
interfaces to see how to dynamically find out about a type definition.

Cheers,

Duncan.
--
-- Duncan Grisby --
-- duncan at grisby.org --
-- http://www.grisby.org --
Tran, Thomas H
2012-08-14 20:02:29 UTC
Permalink
Hi Duncan Grisby,

I need to do it base on IDL definition. I am study your dump.py code, unfortunately I don't know python so I am readying Python on the web right now. Once I learn python, I would like to step into your dump.py code line by line. Is there an IDE or tool you recommend me to use. I hope that is possible.

I am also look at lex/yacc route. I was playing with lex/yacc about 15 years ago. I wonder if I can get the lex/yacc file spec for IDL then modify the output to generate my offset.

I am in window environment. I am wonder omniorb backend or lex/yacc route is less complicated for newbie.

Thanks
Tom


-----Original Message-----
From: Duncan Grisby [mailto:duncan at grisby.org]
Sent: Wednesday, August 08, 2012 3:21 AM
To: Tran, Thomas H
Cc: omniorb-list at omniorb-support.com
Subject: Re: [omniORB] On The Wrie Protocol/Filename offset
Post by Tran, Thomas H
How would I programmatically create a table of fieldname/offset of
CORBA-IDL structure on the wire?
Do you want to do it based on the IDL definitions, or at run-time?

If you want to do it based on IDL, you have to compile the IDL into a suitable structure. You can do that by making a new back-end for omniidl. See

http://omniorb.sourceforge.net/omni41/omniidl.html

If you're asking because you're sniffing the traffic and want to decode it, you might find Wireshark's idl2wrs helpful. It's a back-end for omniidl that builds a Wireshark plugin:

http://www.wireshark.org/docs/man-pages/idl2wrs.html


If you're trying to do it at run-time, look at the CORBA::TypeCode interfaces to see how to dynamically find out about a type definition.

Cheers,

Duncan.
--
-- Duncan Grisby --
-- duncan at grisby.org --
-- http://www.grisby.org --
Loading...