mirror of
https://github.com/neondatabase/neon.git
synced 2026-01-05 12:32:54 +00:00
## Problem https://github.com/neondatabase/neon/pull/9746 lifted decoding and interpretation of WAL to the safekeeper. This reduced the ingested amount on the pageservers by around 10x for a tenant with 8 shards, but doubled the ingested amount for single sharded tenants. Also, https://github.com/neondatabase/neon/pull/9746 uses bincode which doesn't support schema evolution. Technically the schema can be evolved, but it's very cumbersome. ## Summary of changes This patch set addresses both problems by adding protobuf support for the interpreted wal records and adding compression support. Compressed protobuf reduced the ingested amount by 100x on the 32 shards `test_sharded_ingest` case (compared to non-interpreted proto). For the 1 shard case the reduction is 5x. Sister change to `rust-postgres` is [here](https://github.com/neondatabase/rust-postgres/pull/33). ## Links Related: https://github.com/neondatabase/neon/issues/9336 Epic: https://github.com/neondatabase/neon/issues/9329
27 lines
624 B
TOML
27 lines
624 B
TOML
[package]
|
|
name = "wal_decoder"
|
|
version = "0.1.0"
|
|
edition.workspace = true
|
|
license.workspace = true
|
|
|
|
[features]
|
|
testing = ["pageserver_api/testing"]
|
|
|
|
[dependencies]
|
|
async-compression.workspace = true
|
|
anyhow.workspace = true
|
|
bytes.workspace = true
|
|
pageserver_api.workspace = true
|
|
prost.workspace = true
|
|
postgres_ffi.workspace = true
|
|
serde.workspace = true
|
|
thiserror.workspace = true
|
|
tokio = { workspace = true, features = ["io-util"] }
|
|
tonic.workspace = true
|
|
tracing.workspace = true
|
|
utils.workspace = true
|
|
workspace_hack = { version = "0.1", path = "../../workspace_hack" }
|
|
|
|
[build-dependencies]
|
|
tonic-build.workspace = true
|