Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Avoid mandatory wal_keep_segments set to 5000
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  9 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
AFH  
View profile  
 More options Sep 14 2012, 6:48 am
From: AFH <afh....@gmail.com>
Date: Fri, 14 Sep 2012 03:48:06 -0700 (PDT)
Local: Fri, Sep 14 2012 6:48 am
Subject: Avoid mandatory wal_keep_segments set to 5000

Hi all!

First of all  i'd like to apologize for my poor english.

I've recently discover repmgr and i have to say is one of the best and
interesting tools for Postgres. I'm deploying a two node HA cluster with
repmgr, firstly i thought to make it with repmgr 1.2 + pgBouncer, but at
last i'll try repmgr 2.0.

My question is very simple and perhaps there is a previous answer, ¿why
 has to be set to 5000 the wal_keep_segments for repmgr works? that means
to reserve 80GB free on my server disks, something complicated cause i
could only reserve 10GB. ¿How can  i do it?

Thanks in advanced for your help,

AFH.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Gabriele Bartolini  
View profile  
 More options Sep 14 2012, 7:00 am
From: Gabriele Bartolini <gabriele.bartol...@gmail.com>
Date: Fri, 14 Sep 2012 13:00:07 +0200
Local: Fri, Sep 14 2012 7:00 am
Subject: Re: [repmgr] Avoid mandatory wal_keep_segments set to 5000
Hi,

Il 14/09/12 12:48, AFH ha scritto:

> My question is very simple and perhaps there is a previous answer,
> ¿why  has to be set to 5000 the wal_keep_segments for repmgr works?
> that means to reserve 80GB free on my server disks, something
> complicated cause i could only reserve 10GB. ¿How can  i do it?

That is something that can be configured. Look at the -w configuration
option. The number of WALs to be kept is strictly dependant on the
production environment where repmgr is deployed.

You need to monitor the number of WAL files regularly produced by your
Postgres server, then make a decision. You can start with 100 for
instance (1.6GB).

Cheers,
Gabriele

--
  Gabriele Bartolini - 2ndQuadrant Italia
  PostgreSQL Training, Services and Support
  gabriele.bartol...@2ndQuadrant.it | www.2ndQuadrant.it


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Discussion subject changed to "Failure to promote standby on Ubuntu 12.04 due to pg_ctl conflict" by Kenneth Lin
Kenneth Lin  
View profile  
 More options Sep 14 2012, 8:33 am
From: Kenneth Lin <k...@luckyruby.com>
Date: Fri, 14 Sep 2012 08:33:22 -0400
Local: Fri, Sep 14 2012 8:33 am
Subject: Failure to promote standby on Ubuntu 12.04 due to pg_ctl conflict

I have a pretty run-of-the-mill install of postgresql 9.1.5 on Ubuntu 12.04. When I run repmgr -f /var/lib/postgresql/repmgr/repmgr.conf --verbose standby promote, I get this error:
repmgr: Promoting standby
repmgr: Marking recovery done
repmgr: restarting server using pg_ctl
pg_ctl: PID file "/var/lib/postgresql/9.1/main/postmaster.pid" does not exist
Is server running?
starting server anyway
waiting for server to start....2012-09-14 08:23:43 EDT LOG:  could not bind IPv4 socket: Address already in use
2012-09-14 08:23:43 EDT HINT:  Is another postmaster already running on port 5432? If not, wait a few seconds and retry.
2012-09-14 08:23:43 EDT LOG:  could not bind IPv6 socket: Address already in use
2012-09-14 08:23:43 EDT HINT:  Is another postmaster already running on port 5432? If not, wait a few seconds and retry.
2012-09-14 08:23:43 EDT WARNING:  could not create listen socket for "*"
2012-09-14 08:23:43 EDT FATAL:  could not create any TCP/IP sockets
.... stopped waiting
pg_ctl: could not start server
Examine the log output.
Can't restart PostgreSQL server
Should I not be using ubuntu's initscript to start/stop postgresql? Or is there a way to configure repmgr to be more aware how postgresql is running?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Discussion subject changed to "Avoid mandatory wal_keep_segments set to 5000" by AFH
AFH  
View profile  
 More options Sep 18 2012, 4:29 am
From: AFH <afh....@gmail.com>
Date: Tue, 18 Sep 2012 01:29:36 -0700 (PDT)
Local: Tues, Sep 18 2012 4:29 am
Subject: Re: [repmgr] Avoid mandatory wal_keep_segments set to 5000

Hi,

Thank you very much Gabriele, I'll try it ASAP, im actually busy migrating
a database from 9.1 to 9.2 with postgis. Once migrated i'll deploy repmgr
on each node and try the -w parameter.

Cheers,
Alf.

El viernes, 14 de septiembre de 2012 13:00:10 UTC+2, Gabriele Bartolini
escribió:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Milos Gajdos  
View profile  
 More options Oct 22 2012, 9:50 am
From: Milos Gajdos <milosgajdo...@gmail.com>
Date: Mon, 22 Oct 2012 06:50:33 -0700 (PDT)
Local: Mon, Oct 22 2012 9:50 am
Subject: Re: [repmgr] Avoid mandatory wal_keep_segments set to 5000

Alf, did you have any success with this ?
Also I'm kind of missing the point here...what option -w here are we
talking about ? rempgr or postgres or...
M.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jaime Casanova  
View profile  
 More options Oct 22 2012, 7:14 pm
From: Jaime Casanova <ja...@2ndquadrant.com>
Date: Mon, 22 Oct 2012 18:14:01 -0500
Local: Mon, Oct 22 2012 7:14 pm
Subject: Re: [repmgr] Avoid mandatory wal_keep_segments set to 5000

On Mon, Oct 22, 2012 at 8:50 AM, Milos Gajdos <milosgajdo...@gmail.com> wrote:
> Alf, did you have any success with this ?
> Also I'm kind of missing the point here...what option -w here are we talking
> about ? rempgr or postgres or...

that is a repmgr parameter to be used in STANDBY CLONE

--
Jaime Casanova         www.2ndQuadrant.com
Professional PostgreSQL: Soporte 24x7 y capacitación
Phone: +593 4 5107566         Cell: +593 987171157


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Milos Gajdos  
View profile  
 More options Oct 23 2012, 5:26 am
From: Milos Gajdos <milosgajdo...@gmail.com>
Date: Tue, 23 Oct 2012 02:26:31 -0700 (PDT)
Local: Tues, Oct 23 2012 5:26 am
Subject: Re: [repmgr] Avoid mandatory wal_keep_segments set to 5000

so basically this can only be done on Standby server and the master must
always have 5000 wal files ?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jaime Casanova  
View profile  
 More options Oct 23 2012, 9:29 am
From: Jaime Casanova <ja...@2ndquadrant.com>
Date: Tue, 23 Oct 2012 08:29:17 -0500
Local: Tues, Oct 23 2012 9:29 am
Subject: Re: [repmgr] Avoid mandatory wal_keep_segments set to 5000

On Tue, Oct 23, 2012 at 4:26 AM, Milos Gajdos <milosgajdo...@gmail.com> wrote:
> so basically this can only be done on Standby server and the master must
> always have 5000 wal files ?

no. repmgr recomendation is that the master has wal_keep_segments=5000
(in postgresql.conf), that recomendation is based on a server with
lots of writes.

some server don't need to have that big configuration or they are
constrained by disk space so they can use a lower value for
wal_keep_segments on master, but when you have wal_keep_segments <>
5000 you should inform that to repmgr using the -w option when
executing STANDBY CLONE.

--
Jaime Casanova         www.2ndQuadrant.com
Professional PostgreSQL: Soporte 24x7 y capacitación
Phone: +593 4 5107566         Cell: +593 987171157


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Milos Gajdos  
View profile  
 More options Oct 25 2012, 12:13 pm
From: Milos Gajdos <milosgajdo...@gmail.com>
Date: Thu, 25 Oct 2012 09:13:15 -0700 (PDT)
Local: Thurs, Oct 25 2012 12:13 pm
Subject: Re: [repmgr] Avoid mandatory wal_keep_segments set to 5000

Thanks Jaime.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »