You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@zookeeper.apache.org by xeoshow <xe...@gmail.com> on 2010/01/20 08:30:56 UTC
Can zookeeper achive the IBM TSA function?
Hi dear all,
I am new to zookeeper, and I have 2 DB2 servers A and B, and the
database is using the shared storage, at any time, only one DB2 server can
access the database storage, if A is active and connecting to the database,
then B can not connect to database...
If A is broken, the IBM TSA software will monitor it and let B work as
a active Server and B can connect to database.
I am wondering can this monitor part be replaced by zookeeper, using
zookeeper watch or something else?
Kindly need your help and thanks a lot.
Re: Can zookeeper achive the IBM TSA function?
Posted by Ted Dunning <te...@gmail.com>.
Take a look here at the recipes:
http://hadoop.apache.org/zookeeper/docs/r3.0.0/recipes.html
On Wed, Jan 20, 2010 at 12:15 AM, xeoshow <xe...@gmail.com> wrote:
> Ted, thank you very much for your reply. I think A will exit and so ZK can
> help ..
>
> Not sure if any further link can help on how to program for such
> scenario...
> :-)
>
>
>
Re: Can zookeeper achive the IBM TSA function?
Posted by xeoshow <xe...@gmail.com>.
Ted, thank you very much for your reply. I think A will exit and so ZK can
help ..
Not sure if any further link can help on how to program for such scenario...
:-)
2010/1/20 Ted Dunning <te...@gmail.com>
> yes.
>
> But there is some danger that A will maintain a connection to ZK and thus
> retain the master status without being able to act as such.
>
> If you can guarantee that A will exit or go catatonic if it is unable to
> continue, then ZK should solve your problem. This failure scenario is
> common, but with a database, I would wonder if there are others.
>
> On Tue, Jan 19, 2010 at 11:30 PM, xeoshow <xe...@gmail.com> wrote:
>
> > I am wondering can this monitor part be replaced by zookeeper, using
> > zookeeper watch or something else?
> >
>
>
>
> --
> Ted Dunning, CTO
> DeepDyve
>
Re: Can zookeeper achive the IBM TSA function?
Posted by Ted Dunning <te...@gmail.com>.
yes.
But there is some danger that A will maintain a connection to ZK and thus
retain the master status without being able to act as such.
If you can guarantee that A will exit or go catatonic if it is unable to
continue, then ZK should solve your problem. This failure scenario is
common, but with a database, I would wonder if there are others.
On Tue, Jan 19, 2010 at 11:30 PM, xeoshow <xe...@gmail.com> wrote:
> I am wondering can this monitor part be replaced by zookeeper, using
> zookeeper watch or something else?
>
--
Ted Dunning, CTO
DeepDyve