Re: problemas replica 9.4 con slot

From: Martín Marqués <martin(dot)marques(at)gmail(dot)com>
To: Hellmuth Vargas <hivs77(at)gmail(dot)com>
Cc: Lista Postgres ES <pgsql-es-ayuda(at)postgresql(dot)org>
Subject: Re: problemas replica 9.4 con slot
Date: 2015-12-16 21:58:30
Message-ID: CABeG9LtW=9utk8eH8108Gq__Fi7BpQp7ZCH4ORDyAPTJ4xu=Sw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-es-ayuda

Yo no desactivaría los slots. Son mucho más óptimos que
wal_keep_segments o tener un archivo que vas purgando.

Lo que si te puede servir es tener un servidor de repaldos con barman
y tener restore_command apuntando al servidor de respado. Barman tiene
una función get-wal() que sirve para eso.

Y de paso tienes un respaldo. :)

El día 16 de diciembre de 2015, 11:38, Hellmuth Vargas
<hivs77(at)gmail(dot)com> escribió:
> Hola Martin
>
> Muchas gracias por responder, verifique la replica y no tiene configurados
> slot:
>
> postgres=# select * from pg_replication_slots
> postgres-# ;
> slot_name | plugin | slot_type | datoid | database | active | xmin |
> catalog_xm
> in | restart_lsn
> -----------+--------+-----------+--------+----------+--------+------+-----------
> ---+-------------
> (0 rows)
>
>
> postgres=# select * from pg_stat_replication;
> pid | usesysid | usename | application_name | client_addr | client_hostname
> | c
> lient_port | backend_start | backend_xmin | state | sent_location |
> write_locati
> on | flush_location | replay_location | sync_priority | sync_state
> -----+----------+---------+------------------+-------------+-----------------+--
> -----------+---------------+--------------+-------+---------------+-------------
> ---+----------------+-----------------+---------------+------------
> (0 rows)
>
>
> mmm por el momento voy a desactivar los slot y continuare con archive y
> wal_keep_segments
>
>
> El 16 de diciembre de 2015, 08:15, Martín Marqués<martin(dot)marques(at)gmail(dot)com>
> escribió:
>>
>> Buenas,
>>
>> El día 9 de diciembre de 2015, 13:57, Hellmuth Vargas
>> <hivs77(at)gmail(dot)com> escribió:
>> >
>> >
>> > master:
>> >
>> > [postgres(at)bd-1 data]# du -h pg_xlog/
>> > 4,0K pg_xlog/archive_status
>> > 1,8G pg_xlog/
>> >
>> >
>> > replica retrasada sin motivo:
>> >
>> > bash-4.1$ du -h pg_xlog
>> > 512K pg_xlog/archive_status
>> > 137G pg_xlog
>>
>> Revisa el archive_status, y si no tenes algun slot en el standy.
>>
>> --
>> Martín Marqués
>> select 'martin.marques' || '@' || 'gmail.com'
>> DBA, Programador, Administrador
>
>
>
>
> --
> Cordialmente,
>
> Ing. Hellmuth I. Vargas S.
> Esp. Telemática y Negocios por Internet
> Oracle Database 10g Administrator Certified Associate
> EnterpriseDB Certified PostgreSQL 9.3 Associate
>

--
Martín Marqués
select 'martin.marques' || '@' || 'gmail.com'
DBA, Programador, Administrador

-
Enviado a la lista de correo pgsql-es-ayuda (pgsql-es-ayuda(at)postgresql(dot)org)
Para cambiar tu suscripcin:
http://www.postgresql.org/mailpref/pgsql-es-ayuda

In response to

Browse pgsql-es-ayuda by date

  From Date Subject
Next Message Horacio Miranda 2015-12-17 06:55:41 Re: postgresql vmware
Previous Message Yoan Manuel Pérez Piñero 2015-12-16 18:12:39 Problemas réplica 9.4 con londiste3