Re: vacuum full et hot standby WAL stream: FATAL

Sébastien Dinot <[email protected]>
Newsgroups gmane.comp.db.postgresql.french
Message-ID <54278039.379507228.1464105448974.JavaMail.root@zimbra59-e10.priv.proxad.net>
----- Mail original -----
> j'ai un plantage suite à l’exécution d'un vacuum full sur une base
> primaire , vacuum full afin de palier à une fragmentation suite à
> une série d'insert/update sur un table d'historique instrumenté par
> un autovacuum
> L’erreur sur l’esclave qui le fait planté :=> 2016-05-24 03:10:07.420
> UTC 0 FATAL: could not receive data from WAL stream: FATAL:
> requested WAL segment 00000063000003B700000091 has already been
> removed
> Sur le maitre, on a l’équivalent :=> 2016-05-24 00:00:00.908 UTC
> replication [unknown] 0 47/0FATAL: requested WAL segment
> 00000063000003B700000091 has already been removed

J'ai trouvé plusieurs occurrence du message d'erreur sur le net ; la solution semble être d'augmenter le nombre de segments (variable wal_keep_segments) ou d'activer l'archivage du WAL :

http://stackoverflow.com/questions/28201475/how-do-i-fix-a-postgresql-9-3-slave-that-cannot-keep-up-with-the-master
http://www.postgresql.org/message-id/[email protected]

Plus d'infos ici :

https://wiki.postgresql.org/wiki/Streaming_Replication
http://www.postgresql.org/docs/9.2/static/runtime-config-replication.html

Sébastien

-- 
Sébastien Dinot, [email protected]
http://sebastien.dinot.free.fr/
Ne goûtez pas au logiciel libre, vous ne pourriez plus vous en passer !



--
Envoi via la liste pgsql-fr-generale ([email protected])
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.