Skip to main content

How to point Orbix3 to use a different hostname other than the default?

  • May 17, 2013
  • 0 replies
  • 0 views

Summary
Article Number 37518
Environment Product: Orbix Version: 3.3 OS: all
Question/Problem Description How can Orbix 3.3 be configured to use a hostname alias instead of the local machine one?
Clarifying Information By default, Orbix 3.3 seems to use the default hostname in its IORs. Some cluster solutions may use an hostname alias that is different from the actual machine hostname, to register in the DNS for failover.
Error Message
Defect/Enhancement Number
Cause
Resolution By default, Orbix 3.3.x obtains the default hostname from the operating system and exports it in Inter-Operable References (IORs) for Orbix services, such the Orbix daemon and Naming Service. In the scope of this article, the default hostname of any machine is considered to be the one returned when executing the command "hostname" (Unix/Linix/Windows platforms).

Under some situations, a machine can have more than one hostname, or the Orbix deployment might be in an environment that requires a different hostname to be published in IORS, or used to listen to incoming traffic.

There are three main configurations used to set the desired hostname instead of the default one:

- Orbix.IT_LOCAL_HOST: used by Orbix C processes, such as the Orbix daemon
- Orbixweb.IT_LOCAL_HOSTNAME: used by Orbix JAVA processes, such as the Orbix Naming Service
- OrbixNames.IT_NAMES_SERVER_HOST: used by any Orbix process connecting to the naming service by calling resolve_initial_references("NameService").

Depending on the services deployed, some or all these variables might need to be set, in order to substitute the use of the default hostname with a non-default one.
Workaround Pellentesque libero lectus, tristique ac, consectetuer sit amet, imperdiet ut, justo. Sed aliquam odio vitae tortor. Proin hendrerit tempus arcu. In hac habitasse platea dictumst. Suspendisse potenti. Vivamus vitae massa adipiscing est lacinia sodales. Donec metus massa, mollis vel, tempus placerat, vestibulum condimentum, ligula. Nunc lacus metus, posuere eget, lacinia eu, varius quis, libero. Aliquam nonummy adipiscing augue. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Maecenas porttitor congue massa. Fusce posuere, magna sed pulvinar ultricies, purus lectus malesuada libero, sit amet commodo magna eros quis urna. Nunc viverra imperdiet enim. Fusce est. Vivamus a tellus. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Proin pharetra nonummy pede. Mauris et orci. Aenean nec lorem. In porttitor. Donec laoreet nonummy augue. Suspendisse dui purus, scelerisque at, vulputate vitae, pretium mattis, nunc. Mauris eget neque at sem venenatis eleifend. Ut nonummy. Fusce aliquet pede non pede. Suspendisse dapibus lorem pellentesque magna. Integer nulla. Donec blandit feugiat ligula. Donec hendrerit, felis et imperdiet euismod, purus ipsum pretium metus, in lacinia nulla nisl eget sapien. Donec ut est in lectus consequat consequat.
Notes
Attachment
Created date: 30 January 2013
Last Modified: 12 February 2013
Last Published: 07 February 2013
First Published date: 30 January 2013

#Orbix
#KnowledgeDocs