pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Galbavy <peter.galbavy@knowtion.net>
To: Goulet, Dick <DGoulet@vicr.com>
To: pgsql-admin@postgresql.org
Subject: Re: hung postmaster when client machine dies?
Date: Sat, 7 Feb 2004 10:54:55 -0000
Message-ID: <008001c3ed68$d2810b80$24e0a8c0@sonylaptop> (raw)
References: <4001DEAF7DF9BD498B58B45051FBEA656D810A@25exch1.vicorpower.vicr.com>

Goulet, Dick wrote:
> Hope you don't mind if I disagree.  Most OS's that have a tcp/ip
> layer also have a parameter therein called tcp_keep_alive.  They also
> set this parameter to infinity.  The purpose of tcp_keep_alive is to
> have the OS kernel periodically verify that all tcp/ip connections it
> is managing are still functioning every so often.  Basically the OS
> sends a probe packet down the line to the to the client machine.  If
> it bounces back the connection is dead & the OS can do what it has
> to, which will then notify postmaster just like you manually did.
> I'd contact your OS vendor for information of what tcp_keep_alive is
> set to by default and how you can change it.

On the other hand I suggest that you *do not* change this value, even if you
know how, without being very careful understanding what it means.

Changing the system-wide TCP KA time can have unforseen effects on other,
unrelated functions of the systems concerned.

This is simply why most long lived protocols layered over TCP also tend to
have their own keep alive PDUs.

Peter




view thread (5+ messages)

Message-ID: <008001c3ed68$d2810b80$24e0a8c0@sonylaptop>
Permalink:  ../008001c3ed68$d2810b80$24e0a8c0@sonylaptop/
Also on:    postgresql.org/message-id/008001c3ed68$d2810b80$24e0a8c0@sonylaptop

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: peter.galbavy@knowtion.net, DGoulet@vicr.com
  Subject: Re: hung postmaster when client machine dies?
  In-Reply-To: <008001c3ed68$d2810b80$24e0a8c0@sonylaptop>
  References: <4001DEAF7DF9BD498B58B45051FBEA656D810A@25exch1.vicorpower.vicr.com> <008001c3ed68$d2810b80$24e0a8c0@sonylaptop>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox