Giter Site home page Giter Site logo

Comments (9)

CyberDem0n avatar CyberDem0n commented on August 28, 2024

I guess we should solve this problem more general. We can create special section in the config.yaml file which will contain all needed parameters and options for initdb

from patroni.

jberkus avatar jberkus commented on August 28, 2024

Why?

If Patroni is doing initdb, I don't see why it should give the user an option to turn off checksums.

from patroni.

a1exsh avatar a1exsh commented on August 28, 2024

Do we have any recent benchmark measuring performance penalty of enabling
data checksums? Last time I saw one, the effect was not nearly negligible,
I believe.

On Tue, Nov 3, 2015, 00:21 Josh Berkus [email protected] wrote:

Why?

If Patroni is doing initdb, I don't see why it should give the user an
option to turn off checksums.


Reply to this email directly or view it on GitHub
#87 (comment).

from patroni.

jberkus avatar jberkus commented on August 28, 2024

Hmmm, I need to publish. On workloads I've tested overhead has been < 5%. Compared to the safety of detecting corruption as soon as it happens, that's negligable. Also, I'm pretty sure that pg_rewind without checksums is unsafe, and you're building pg_rewind into Patroni.

from patroni.

a1exsh avatar a1exsh commented on August 28, 2024

Would be glad to see the benchmark. :-) pg_rewind requires checksums OR
logging of hint bits iirc.

On Tue, Nov 3, 2015, 19:38 Josh Berkus [email protected] wrote:

Hmmm, I need to publish. On workloads I've tested overhead has been < 5%.
Compared to the safety of detecting corruption as soon as it happens,
that's negligable. Also, I'm pretty sure that pg_rewind without checksums
is unsafe, and you're building pg_rewind into Patroni.


Reply to this email directly or view it on GitHub
#87 (comment).

from patroni.

alexeyklyukin avatar alexeyklyukin commented on August 28, 2024

Patroni can be attached to an already running cluster, or maybe in the future used to initialise new replicas out of the master that is completely unaware of patroni. On both of those cases we cannot guarantee the checksums will be on. We might solve this by fetching the checksum value parameter out of an existing master, but I think it would be easier to just make initdb options configurable.

from patroni.

jberkus avatar jberkus commented on August 28, 2024

We don't initdb in either of those cases.

from patroni.

alexeyklyukin avatar alexeyklyukin commented on August 28, 2024

Oh, right. But we also won't be able to rely on the checksums being on for pg_rewind in those cases. I think we should make this option configurable and choose the default value depending on the results of the benchmarks.

from patroni.

feikesteenbergen avatar feikesteenbergen commented on August 28, 2024

Implemented with custom options.

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.