Skip site navigation (1) Skip section navigation (2)

Re: wal_sender_delay is still required?

From: Heikki Linnakangas <heikki(dot)linnakangas(at)enterprisedb(dot)com>
To: Fujii Masao <masao(dot)fujii(at)gmail(dot)com>
Cc: Robert Haas <robertmhaas(at)gmail(dot)com>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: wal_sender_delay is still required?
Date: 2011-02-26 21:12:59
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-hackers
On 07.12.2010 05:51, Fujii Masao wrote:
> On Tue, Dec 7, 2010 at 12:22 PM, Robert Haas<robertmhaas(at)gmail(dot)com>  wrote:
>>> Fair enough. How about increasing the default to 10 seconds?
>>> Since bgwriter has already using 10s as a nap time if there is no
>>> configured activity, I think that 10s is non-nonsense default value.
>> What do we get out of making this non-configurable?
> Which would make the setting of replication simpler, I think.
> But I agree to just increase the default value of wal_sender_delay
> rather than dropping it.

I dropped the ball on this one..

For comparison, the archiver process and autovacuum launcher wake up 
once a second to check if postmaster is still alive. bgwriter, when 
bgwriter_lru_maxpages and archive_timeout are set to 0 to disable it, 
checks for dead postmaster every 10 seconds.

I'll bump the default for wal_sender_delay to 1 second. Maybe an even 
higher value would be good, but it also seems good to kill replication 
connections in a timely fashion if postmaster dies.

   Heikki Linnakangas

In response to

pgsql-hackers by date

Next:From: Josh BerkusDate: 2011-02-26 21:19:46
Subject: Re: Generalized edit function?
Previous:From: Kevin GrittnerDate: 2011-02-26 21:09:35
Subject: Re: WIP: cross column correlation ...

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group