pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Vijay Rajah <me@rvijay.me>
To: pgsql-general@lists.postgresql.org
Subject: Postgres replication -- .done file in slave
Date: Wed, 8 Aug 2018 20:51:23 +0530
Message-ID: <fc2ebb88-d818-aada-7bef-2b29ca34ea2d@rvijay.me> (raw)

Hello Everyone,

I have a postgres 9.5 with Master slave setup. The slave is a streaming 
replication client.

I have a lot ( >100k ) of .done files in my slave's 
pg_xlog/archive_status/ directory

Since this is a streaming replication I have disabled archive_mode in 
both master & slave. Also, I use barman for backup, which also uses 
streaming backup for backups.

Here is my relevant part of postgresql .conf file

    |wal_level =hot_standby archive_timeout =60archive_mode =off#We dont
    need this aswe will be usingbarman streaming max_wal_senders
    =5wal_keep_segments =10wal_log_hints =onhot_standby
    =onmax_replication_slots =5synchronous_commit =local|

Also here is what I have in recovery.conf

    |standby_mode =onprimary_conninfo ='host=10.xx.xxx.xx port=5432
    user=replication password=******
    application_name=salve_syncstdby'trigger_file
    ='/<datadir>/make_me_master'archive_cleanup_command
    ='/usr/pgsql-9.5/bin/pg_archivecleanup </WALDIR>
    %r'primary_slot_name ='slave_repl'recovery_target_timeline =latest
    restore_command ='/usr/bin/barman-wal-restore -p 4 -s <Barman_IP> -U
    barman <db_name> %f %p'|

Is it ok to clear the .done files?


-Thanks in advance

Vijay


PS: I have posted the same question in 
https://stackoverflow.com/questions/51725092/postgres-replication-done-file-in-slave

Message-ID: <fc2ebb88-d818-aada-7bef-2b29ca34ea2d@rvijay.me>
Permalink:  ../fc2ebb88-d818-aada-7bef-2b29ca34ea2d@rvijay.me/
Also on:    postgresql.org/message-id/fc2ebb88-d818-aada-7bef-2b29ca34ea2d@rvijay.me

 · 

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-general@postgresql.org
  Cc: me@rvijay.me
  Subject: Re: Postgres replication -- .done file in slave
  In-Reply-To: <fc2ebb88-d818-aada-7bef-2b29ca34ea2d@rvijay.me>
  References: <fc2ebb88-d818-aada-7bef-2b29ca34ea2d@rvijay.me>

* 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