Giter Site home page Giter Site logo

Complete WAL-E support about patroni HOT 9 CLOSED

zalando avatar zalando commented on August 28, 2024
Complete WAL-E support

from patroni.

Comments (9)

CyberDem0n avatar CyberDem0n commented on August 28, 2024 2

postgres.yaml:

postgresql:
  parameters:
    archive_mode: "on"
    archive_command: envdir "/path/to/env-dir" wal-e wal-push "%p"
  recovery_conf:
    restore_command: envdir "/path/to/env-dir" wal-e wal-fetch "%f" "%p"

Although don't forget to create a cronjob, which will do envdir "/path/to/env-dir" wal-e backup-push "/path/to/postgres/data/directory"

Please read about envdir in wal-e documentation: https://github.com/wal-e/wal-e/

from patroni.

CyberDem0n avatar CyberDem0n commented on August 28, 2024 1

Replicas are executing not archive_command but restore_command

from patroni.

alexeyklyukin avatar alexeyklyukin commented on August 28, 2024

Hi Josh,

Take a look at scrips/restore.py. The code there deals with initialization of new replicas. It was intentionally moved out of the core Patroni to avoid requiring unnecessary dependencies for non-AWS use-cases. The WAL-E support relies on the archive/restore command being properly configured in Patroni, as well as regular base backups (part of the Docker container in the Spilo project).

from patroni.

jberkus avatar jberkus commented on August 28, 2024

Oh, I see!

How does restore integrate with the rest of patroni?

from patroni.

LappleApple avatar LappleApple commented on August 28, 2024

@jberkus @alexeyklyukin This issue's almost a year old -- can we resolve or close?

from patroni.

alexeyklyukin avatar alexeyklyukin commented on August 28, 2024

From my POV it's not an issue anymore.

from patroni.

LappleApple avatar LappleApple commented on August 28, 2024

OK, I'll close and you guys can reopen if necessary.

from patroni.

Firefishy avatar Firefishy commented on August 28, 2024

Is there any public documentation on how to use patroni + wal-e? I am failing to get it configured.

from patroni.

Firefishy avatar Firefishy commented on August 28, 2024

@CyberDem0n Thank you. Would that not also result in slaves pushing archives via wal-e? (Or is that not a concern because the WAL files are identical?)

from patroni.

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.