[omniORB] How can I creat a hot-standby name service?

zlr zhanglr@stee.com.sg
Tue Jul 23 03:20:01 2002


This is a multi-part message in MIME format.

------=_NextPart_000_003C_01C23232.9303AB40
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi:
    At first, Duncan and Lars thank you for your suggestion.

    About the suggestion form Lars:
    I have tried to set the same OMNINAMES_LOGDIR path in two pcs where =
I
have installed NameService. But I found, when NameService started, it =
will
create two files (one is *.log, another is *.bak). They is both include =
the
PC name in their file name. ( E.g. I have tow PC--PC1 as master and PC2 =
as
slave in hot-standby. it will create four files --omninames-PC1.log,
omninames-PC1.bak and omninames-PC2.log, omninames-PC2.bak).

    And I also try to synchronization these files. I rename the
omninames-PC1.log to omninames-PC2.log and omninames-PC1. bak to
omninames-PC2.bak. But I found the NameService cannot be started in PC2.

    About the suggestion form Duncan:
    Now I am using omniORB 3.0:
    As you say: In omniORB 3.0, there's no option but to make the
applications aware of the situation and have them retry if they get
COMM_FAILUREs.
    But my problem is the server is running. And the server is also =
include
Messaging Server, Routing Server ...besides Database Server. They are
running on different PCs with the PC where Database Server (Name =
Servcie) is
running.
    And I am not sure the two Hot-standby Name Service PC (PC1 and PC2) =
will
be both started before all servers running. So I cannot register server =
in
two NameServices.
    But if I register the servers to another NameService (PC2) after
swiching over. Do I have to restart all servers (Messaging Server, =
Routing
Server ...)?

Best Regards
ZHANG Liren
-------------------------------------------------------------------------=
---

Singapore Technologies Electronics Ltd.
Product Development & Management Division (PDMD)
(65) 413 1613 (Direct)
zhanglr@stee.com.sg

----- Original Message -----
From: "Lars von Wedel" <vonWedel@lfpt.rwth-aachen.de>
To: <omniorb-list@realvnc.com>
Sent: Monday, July 22, 2002 11:26 PM
Subject: Re: [omniORB] How can I creat a hot-standby name service?


>
>
> Duncan,
>
> I may lack some understanding here, but I doubt this will work
> because I see no synchronization between the two name servers'
> log files?
>
> I guess some kind of synchronization or access to
> the same log files via some network file system would be
> required in addition?
>
> Lars
>
>
> Duncan Grisby wrote:
> >
> > On Monday 22 July, "zlr" wrote:
> >
> > > This is a multi-part message in MIME format.
> >
> > Please don't send HTML mail to the mailing list.
> >
> > >     In our project, we want to install name service and Database =
in
same
> > > pc.
> > >     The problem is our database can suppore hot standby. If the
Database
> > > is switch over( the name service also switch over to another PC ), =
the
> > > new client will cannot connect to server which is running.
> > >
> > >     Who can tell me how can I resolve this problem?
> >
> > If you are using omniORB 4.0, you can create a reference to the =
naming
> > service that contains multiple addresses, with a URI like
> > "corbaname::1.2@first.host.name,:1.2@second.host.name". The 1.2
> > version selection is important, since 1.0 doesn't support the
> > alternate addresses.
> >
> > If you do that, omniORB will transparently fall over to using the
> > second address if the first one fails (and go back to the first one =
if
> > the second one fails, and so on...).
> >
> > If you want all the NamingContexts within the name service to =
publish
> > both addresses, look into the endPointNoPublish option.
> >
> > In omniORB 3.0, there's no option but to make the applications aware
> > of the situation and have them retry if they get COMM_FAILUREs.
> >
> > Cheers,
> >
> > Duncan.
> >
> > --
> >  -- Duncan Grisby         --
> >   -- duncan@grisby.org     --
> >    -- http://www.grisby.org --
> > _______________________________________________
> > omniORB-list mailing list
> > omniORB-list@realvnc.com
> > http://www.realvnc.com/mailman/listinfo/omniorb-list


------=_NextPart_000_003C_01C23232.9303AB40
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2716.2200" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>Hi:<BR>&nbsp;&nbsp;&nbsp; At first, Duncan and =
Lars thank=20
you for your suggestion.<BR><BR>&nbsp;&nbsp;&nbsp; About the suggestion =
form=20
Lars:<BR>&nbsp;&nbsp;&nbsp; I have tried to set the same =
OMNINAMES_LOGDIR path=20
in two pcs where I<BR>have installed NameService. But I found, when =
NameService=20
started, it will<BR>create two files (one is *.log, another is *.bak). =
They is=20
both include the<BR>PC name in their file name. ( E.g. I have tow =
PC--PC1 as=20
master and PC2 as<BR>slave in hot-standby. it will create four files=20
--omninames-PC1.log,<BR>omninames-PC1.bak and omninames-PC2.log,=20
omninames-PC2.bak).<BR><BR>&nbsp;&nbsp;&nbsp; And I also try to =
synchronization=20
these files. I rename the<BR>omninames-PC1.log to omninames-PC2.log and=20
omninames-PC1. bak to<BR>omninames-PC2.bak. But I found the NameService =
cannot=20
be started in PC2.<BR><BR>&nbsp;&nbsp;&nbsp; About the suggestion form=20
Duncan:<BR>&nbsp;&nbsp;&nbsp; Now I am using omniORB =
3.0:<BR>&nbsp;&nbsp;&nbsp;=20
As you say: In omniORB 3.0, there's no option but to make =
the<BR>applications=20
aware of the situation and have them retry if they=20
get<BR>COMM_FAILUREs.<BR>&nbsp;&nbsp;&nbsp; But my problem is the server =
is=20
running. And the server is also include<BR>Messaging Server, Routing =
Server=20
...besides Database Server. They are<BR>running on different PCs with =
the PC=20
where Database Server (Name Servcie) =
is<BR>running.<BR>&nbsp;&nbsp;&nbsp; And I=20
am not sure the two Hot-standby Name Service PC (PC1 and PC2) will<BR>be =
both=20
started before all servers running. So I cannot register server =
in<BR>two=20
NameServices.<BR>&nbsp;&nbsp;&nbsp; But if I register the servers to =
another=20
NameService (PC2) after<BR>swiching over. Do I have to restart all =
servers=20
(Messaging Server, Routing<BR>Server ...)?<BR><BR>Best Regards<BR>ZHANG=20
Liren<BR>----------------------------------------------------------------=
------------<BR><BR>Singapore=20
Technologies Electronics Ltd.<BR>Product Development &amp; Management =
Division=20
(PDMD)<BR>(65) 413 1613 (Direct)<BR><A=20
href=3D"mailto:zhanglr@stee.com.sg">zhanglr@stee.com.sg</A><BR><BR>----- =
Original=20
Message -----<BR>From: "Lars von Wedel" &lt;<A=20
href=3D"mailto:vonWedel@lfpt.rwth-aachen.de">vonWedel@lfpt.rwth-aachen.de=
</A>&gt;<BR>To:=20
&lt;<A=20
href=3D"mailto:omniorb-list@realvnc.com">omniorb-list@realvnc.com</A>&gt;=
<BR>Sent:=20
Monday, July 22, 2002 11:26 PM<BR>Subject: Re: [omniORB] How can I creat =
a=20
hot-standby name service?<BR><BR><BR>&gt;<BR>&gt;<BR>&gt;=20
Duncan,<BR>&gt;<BR>&gt; I may lack some understanding here, but I doubt =
this=20
will work<BR>&gt; because I see no synchronization between the two name=20
servers'<BR>&gt; log files?<BR>&gt;<BR>&gt; I guess some kind of =
synchronization=20
or access to<BR>&gt; the same log files via some network file system =
would=20
be<BR>&gt; required in addition?<BR>&gt;<BR>&gt; =
Lars<BR>&gt;<BR>&gt;<BR>&gt;=20
Duncan Grisby wrote:<BR>&gt; &gt;<BR>&gt; &gt; On Monday 22 July, "zlr"=20
wrote:<BR>&gt; &gt;<BR>&gt; &gt; &gt; This is a multi-part message in =
MIME=20
format.<BR>&gt; &gt;<BR>&gt; &gt; Please don't send HTML mail to the =
mailing=20
list.<BR>&gt; &gt;<BR>&gt; &gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp; In our =
project, we=20
want to install name service and Database in<BR>same<BR>&gt; &gt; &gt;=20
pc.<BR>&gt; &gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp; The problem is our =
database can=20
suppore hot standby. If the<BR>Database<BR>&gt; &gt; &gt; is switch =
over( the=20
name service also switch over to another PC ), the<BR>&gt; &gt; &gt; new =
client=20
will cannot connect to server which is running.<BR>&gt; &gt; =
&gt;<BR>&gt; &gt;=20
&gt;&nbsp;&nbsp;&nbsp;&nbsp; Who can tell me how can I resolve this=20
problem?<BR>&gt; &gt;<BR>&gt; &gt; If you are using omniORB 4.0, you can =
create=20
a reference to the naming<BR>&gt; &gt; service that contains multiple =
addresses,=20
with a URI like<BR>&gt; &gt;=20
"corbaname::1.2@first.host.name,:1.2@second.host.name". The 1.2<BR>&gt; =
&gt;=20
version selection is important, since 1.0 doesn't support the<BR>&gt; =
&gt;=20
alternate addresses.<BR>&gt; &gt;<BR>&gt; &gt; If you do that, omniORB =
will=20
transparently fall over to using the<BR>&gt; &gt; second address if the =
first=20
one fails (and go back to the first one if<BR>&gt; &gt; the second one =
fails,=20
and so on...).<BR>&gt; &gt;<BR>&gt; &gt; If you want all the =
NamingContexts=20
within the name service to publish<BR>&gt; &gt; both addresses, look =
into the=20
endPointNoPublish option.<BR>&gt; &gt;<BR>&gt; &gt; In omniORB 3.0, =
there's no=20
option but to make the applications aware<BR>&gt; &gt; of the situation =
and have=20
them retry if they get COMM_FAILUREs.<BR>&gt; &gt;<BR>&gt; &gt; =
Cheers,<BR>&gt;=20
&gt;<BR>&gt; &gt; Duncan.<BR>&gt; &gt;<BR>&gt; &gt; --<BR>&gt; =
&gt;&nbsp; --=20
Duncan Grisby&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; --<BR>&gt; =

&gt;&nbsp;&nbsp; -- <A=20
href=3D"mailto:duncan@grisby.org">duncan@grisby.org</A>&nbsp;&nbsp;&nbsp;=
&nbsp;=20
--<BR>&gt; &gt;&nbsp;&nbsp;&nbsp; -- <A=20
href=3D"http://www.grisby.org">http://www.grisby.org</A> --<BR>&gt; &gt; =

_______________________________________________<BR>&gt; &gt; =
omniORB-list=20
mailing list<BR>&gt; &gt; <A=20
href=3D"mailto:omniORB-list@realvnc.com">omniORB-list@realvnc.com</A><BR>=
&gt; &gt;=20
<A=20
href=3D"http://www.realvnc.com/mailman/listinfo/omniorb-list">http://www.=
realvnc.com/mailman/listinfo/omniorb-list</A><BR></BODY></HTML>

------=_NextPart_000_003C_01C23232.9303AB40--