You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-user@db.apache.org by Xavier Vigouroux <Xa...@Sun.COM> on 2005/08/23 16:13:04 UTC
Derby server health probing
Hi,
We use a derby server in an High Availability context. Thus, we need to
test if derby server is in a good shape or not. The result of this
repetitive question will imply a fail-over or not.
we thought about two solutions:
1/ create an agent to insert/select/delete an entry in a table
2/ create a stored procedure doing a finer job.
these solutions do not satisfy us as:
o a JVM needs to be created for a very short duration and repetitively
o it's CPU consuming.
So, do you think of another solution that would prove the derby server
is in a good shape, without consuming too much resources.
Thanks
--
Xavier VIGOUROUX - sun microsystems
Re: Derby server health probing
Posted by Daniel John Debrunner <dj...@debrunners.com>.
Xavier Vigouroux wrote:
> Hi,
>
> We use a derby server in an High Availability context. Thus, we need to
> test if derby server is in a good shape or not. The result of this
> repetitive question will imply a fail-over or not.
>
> we thought about two solutions:
>
> 1/ create an agent to insert/select/delete an entry in a table
> 2/ create a stored procedure doing a finer job.
>
> these solutions do not satisfy us as:
>
> o a JVM needs to be created for a very short duration and repetitively
> o it's CPU consuming.
>
> So, do you think of another solution that would prove the derby server
> is in a good shape, without consuming too much resources.
There's no requirement for a client of the network server to be written
in Java. It should be possible to write a lightweight C program that
sends and receives a ping tcp/ip message to the network server.
Dan.
Re: Derby server health probing
Posted by "Jean T. Anderson" <jt...@bristowhill.com>.
you might also check out C-JDBC from ObjectWeb. Emmanuel Cecchet did a
writeup for Derby that's available for download from here:
http://db.apache.org/derby/integrate/
-jean
Xavier Vigouroux wrote:
> Hi,
>
> We use a derby server in an High Availability context. Thus, we need to
> test if derby server is in a good shape or not. The result of this
> repetitive question will imply a fail-over or not.
>
> we thought about two solutions:
>
> 1/ create an agent to insert/select/delete an entry in a table
> 2/ create a stored procedure doing a finer job.
>
> these solutions do not satisfy us as:
>
> o a JVM needs to be created for a very short duration and repetitively
> o it's CPU consuming.
>
> So, do you think of another solution that would prove the derby server
> is in a good shape, without consuming too much resources.
>
> Thanks
>