RE: replication terminated by primary server

Поиск
Список
Период
Сортировка
От Bruyninckx Kristof
Тема RE: replication terminated by primary server
Дата
Msg-id 3cb87ae8daba4f6db7a587a72852302b@SVINTMAIL03.cegekanv.corp.local
обсуждение исходный текст
Ответ на Re: replication terminated by primary server  (Payal Singh <payals1@umbc.edu>)
Список pgsql-general

I’ve been going over the log of the system at the time of the crash, but I’m not seeing something that stands out as telling me anymore about the reason of either the crash or the failure to start the replication again.  I’m attaching a part of the log file to this mail.

 

Correct me if I’m wrong but the “select * from pg_stat_archiver” is linked with WAL archiving, correct ?  Currently this system has archiving switch off. For backup purposes we are running scheduled pg_dumps of each database.

So it didn’t give me any output. Which I think is normal since we switched it off.

 

To setup the replication we used the pg_basebackup with the --xlog-method=stream option this way pg_basebackup will not only copy the data as it is, but also stream the XLOG being created during the base backup to our destination server.

Not sure what the problem is since it appears to being able to perform these actions without any reported error.

 

Cheers,

 

Kristof

 

From: Payal Singh [mailto:payals1@umbc.edu]
Sent: donderdag 7 december 2017 19:29
To: Bruyninckx Kristof <Kristof.Bruyninckx@cegeka.com>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: replication terminated by primary server

 

 

 

On Wed, Dec 6, 2017 at 8:07 AM, Bruyninckx Kristof <Kristof.Bruyninckx@cegeka.com> wrote:

 

In our environment, we have a master slave replication setup that has been working stable for the last year.

Host systems are debian Jessie and we are using postgres 9.4.

Now recently we have experienced a crash/hung master, and after restarting the postgress services on here the replication stopped working. The master however is running seemingly normal, except for the errors reported when it got restarted. After this nothing error related is reported.

 

Might want to check the master postgres logs during and after crash as well. Also, check for wal file progress on master (select * from pg_stat_archiver). 

 

--

Payal Singh
Graduate Student
Department of Computer Science and Electrical Engineering
University of Maryland, Baltimore County

Вложения

В списке pgsql-general по дате отправления:

Предыдущее
От: Jakub Glapa
Дата:
Сообщение: Re: ERROR: too many dynamic shared memory segments
Следующее
От: chiru r
Дата:
Сообщение: Secured ldap connectivity between PostgreSQL and LDAPs server