Git Product home page Git Product logo

Comments (3)

x4m avatar x4m commented on June 13, 2024

Hi! You can archive empty file as 0000007200000CBF00000017, 0000007300000CBF00000067 and 0000007400000CBF000000AB.
I understand that this does not sound as a proper solution... Maybe we could add functionality like "mute absance of specific files" or something like that...

from wal-g.

x4m avatar x4m commented on June 13, 2024

Meanwhile I'd appreciate if you describe how you lost WALs in more details. We should consider if WAL-G could prevent this.

from wal-g.

josephglanville avatar josephglanville commented on June 13, 2024

Hi @x4m!

What happened was we made some adjustments to a Patroni managed cluster in order to band-aid some application problems. Namely we increased max_connections fairly substantially. We also increased the memory allocation but apparently not by a sufficient amount.

What then followed was the k8s pods reached a near OOM state. PostgreSQL then failed to archive segments with this message:

DETAIL:  The failed archive command was: envdir "/run/etc/wal-e.d/env" wal-g wal-push "pg_wal/0000007300000CBF00000067"

Followed by one of the backends geting OOM Killed and then postmaster shutting down and killing the archive task.

After failover I thought these segments would get uploaded by they did not. It does not appear that PostgreSQL even tried to but I am not that familiar with what happens after WAL archiving fails or if the status of not-archived segments is persisted to the secondary.

There was a trace from wal-g but it was because it got a SIGQUIT from postgres, likely during the ungraceful shutdown, other than that nothing else to indicate what went wrong. As far as I can tell wal-g wasn't killed by the OOM killer as I have no logs of it being killed.

from wal-g.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.