Reducing the timeout on a TCP connection
Igor Robul
igorr at speechpro.com
Mon Aug 7 08:32:46 UTC 2006
On Tue, Aug 01, 2006 at 03:21:07PM -0400, Bill Moran wrote:
> In response to "Ted Mittelstaedt" <tedm at toybox.placo.com>:
>
> > This is why the snmp protocol uses UDP, Bill.
> >
> > You need to use something other than TCP for
> > monitoring.
>
> Well ... if I'm monitoring a server that uses TCP (PostgreSQL) I can't
> rightly establish whether or not it's successfully accepting connections
> unless I used TCP as well.
>
> I understand where you're coming from, but I can't see how I can use
> UDP to solve my problem.
You can do 2-step monitoring:
1) Monitor1 monitors PostgreSQL via Unix domain socket, possible also
it monitors presense of postmaster process
2) Monitor2 monitors Monitor1 and you "connect" to Monitor2 via UDP.
More information about the freebsd-questions
mailing list