-
Notifications
You must be signed in to change notification settings - Fork 845
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
we should enable data page checksums #87
Comments
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 |
Why? If Patroni is doing initdb, I don't see why it should give the user an option to turn off checksums. |
Do we have any recent benchmark measuring performance penalty of enabling On Tue, Nov 3, 2015, 00:21 Josh Berkus notifications@github.com 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. |
Would be glad to see the benchmark. :-) pg_rewind requires checksums OR On Tue, Nov 3, 2015, 19:38 Josh Berkus notifications@github.com wrote:
|
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. |
We don't initdb in either of those cases. |
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. |
Implemented with custom options. |
If patroni is initdb'ing, we should enable data page checksums because:
The text was updated successfully, but these errors were encountered: