wal_level = 'hot_standby'
max_wal_senders = 5
checkpoint_segments = 10
max_replication_slots = 5
conninfo = host=server_fqdn user=barman dbname=postgres
streaming_conninfo = host=server_fqdn user=streaming_barman
backup_method = postgres
streaming_archiver = on
slot_name = barman
barman check server_name
Server server_name:
PostgreSQL: OK
superuser: OK
PostgreSQL streaming: OK
wal_level: OK
replication slot: OK
directories: OK
retention policy settings: OK
backup maximum age: OK (interval provided: 1 day, latest backup age: 11 hours, 16 minutes, 18 seconds)
compression settings: OK
failed backups: OK (there are 0 failed backups)
minimum redundancy requirements: OK (have 42 backups, expected at least 10)
pg_basebackup: OK
pg_basebackup compatible: OK
pg_basebackup supports tablespaces mapping: OK
pg_receivexlog: OK
pg_receivexlog compatible: OK
receive-wal running: OK
archiver errors: OKbarman list-backup server_name
server_name 20171120T030204 - Mon Nov 20 01:05:08 2017 - Size: 83.1 MiB - WAL Size: 0 Bbarman replication-status server_name
Status of streaming clients for server 'server_name':
Current xlog location on master: 2/81452278
Number of streaming clients: 1
1. Async WAL streamer
Application name: barman_receive_wal
Sync stage : 3/3 Remote write
Communication : TCP/IP
IP Address : X.X.X.X / Port: 51629 / Host: -
User name : streaming_barman
Current state : streaming (async)
WAL sender PID : 3459
Started at : 2017-10-17 08:43:01.732576+02:00
Sent location : 2/81452278 (diff: 0 B)
Write location : 2/81452278 (diff: 0 B)
Flush location : 2/810E3D80 (diff: -3.4 MiB)
barman recover --remote-ssh-command "ssh postgres@IP_OF_TARGET" server_name 20171120T030204 /var/lib/postgresql/9.4/main --target-time '2017-11-21 10:00:00'
After restarting the postgresql remote server, the restaured instance doesn't have the row I've updated few minutes before.I've run some new test and it seems you can use the --target-time option only with full "n-1" backup. With the latest backup, you cant. It is quite strange, I may have missed a configuration.
How to achieve the latest recovery using the latest backup and the latest wal ?
--
--
You received this message because you are subscribed to the "Barman for PostgreSQL" group.
To post to this group, send email to pgba...@googlegroups.com
To unsubscribe from this group, send email to
pgbarman+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/pgbarman?hl=en?hl=en-GB
---
You received this message because you are subscribed to the Google Groups "Barman, Backup and Recovery Manager for PostgreSQL" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pgbarman+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
For more options, visit this group at
http://groups.google.com/group/pgbarman?hl=en?hl=en-GB
---
You received this message because you are subscribed to the Google Groups "Barman, Backup and Recovery Manager for PostgreSQL" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pgbarman+u...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/pgbarman?hl=en?hl=en-GB
---
You received this message because you are subscribed to the Google Groups "Barman, Backup and Recovery Manager for PostgreSQL" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pgbarman+unsubscribe@googlegroups.com.
| Raphaelk can you check the i/o utilization and also see if tuning shared_buffers helps . Please go through this link https://dba.stackexchange.com/questions/62831/postgres-streaming-replication-lagging-using-lots-of-cpu-and-little-i-o Thanks, Amar |
Raphaelk is using streaming replication (async) ,in that case the transaction should have been propagated to barman server even if the WAL file segment is not full ?
--
Got it , thanks for the clarification.Regards,Amar
On Wed, Nov 22, 2017 at 12:21 PM, Gabriele Bartolini <gabriele....@gmail.com> wrote:
Hi Amar,2017-11-22 14:57 GMT+11:00 Amarnath Gopalan <insidea...@gmail.com>:Raphaelk is using streaming replication (async) ,in that case the transaction should have been propagated to barman server even if the WAL file segment is not full ?Until the WAL file is finalised by the server, it is stored in a partial file which is invisible to Barman's interface currently (you manually need to fetch it from the streaming folder).What I suggested is still valid: use switch-wal and/or archive_timeoutCheers,Gabriele
--
--
You received this message because you are subscribed to the "Barman for PostgreSQL" group.
To post to this group, send email to pgba...@googlegroups.com
To unsubscribe from this group, send email to
For more options, visit this group at
http://groups.google.com/group/pgbarman?hl=en?hl=en-GB
---
You received this message because you are subscribed to the Google Groups "Barman, Backup and Recovery Manager for PostgreSQL" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pgbarman+u...@googlegroups.com.