Repository navigation
Add separate compression settings for the streaming exchange of distributed plans, default LZ4 - #126743
Conversation
…lan_exchange_zstd_compression_level`, default `LZ4` Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Workflow [PR], commit [73576ba] Summary: ✅
AI ReviewSummarySeparates streaming exchange compression from native connection compression, defaults the exchange to Missing context / blind spots
Final VerdictStatus: ✅ Approve, subject to the normal CI checks completing successfully. No code changes requested. |
…der an older `compatibility` Co-Authored-By: Claude Opus 5.5 <[email protected]>
…nstead of a compression ratio Co-Authored-By: Claude Opus 5.5 <[email protected]>
Build profile diff (arm_release)Comparing ✅ No significant changes. Binary sizes
The official master build is compiled with Compile time of recompiled translation units8 translation units recompiled, 20 s compile time in total, 8 of them have a recent master baseline. |
…t are not counted as runs Co-Authored-By: Claude Opus 5.5 <[email protected]>
| - 'Streaming' - stream exchange data over network. | ||
| )", EXPERIMENTAL, \ | ||
| {"25.5", "", "", "New experimental setting."}) \ | ||
| DECLARE(String, distributed_plan_exchange_compression_method, "LZ4", R"( |
There was a problem hiding this comment.
I saw that settings could be enum,
in that case we could check the value at the configuration level.
But I assume that the way to use string here has been set a time ago and now it too hard to change.
There was a problem hiding this comment.
I think it might be more flexible to have it as a string potentially allow passing codec params like 'ZSTD(1)'
The streaming exchange between the tasks of a distributed query plan (
make_distributed_plan) compressed its packets withnetwork_compression_method. Since its default changed toZSTD(level 3) in #108786, the exchange spends much more CPU time on compression than it saves on the network: the exchange connects nodes of one cluster, and it compresses every packet once and reads it once.This PR adds two settings for the exchange:
distributed_plan_exchange_compression_method, defaultLZ4. The values are the same as fornetwork_compression_method. An empty value usesnetwork_compression_methodandnetwork_zstd_compression_levelas before;compatibilitybelow 26.11 sets it.distributed_plan_exchange_zstd_compression_level, default 1, used when the exchange method isZSTD.The receiver reads the codec from each compressed block, so nodes of different versions can exchange data.
On TPC-H SF100 with 8 nodes the sum of server times is 27.4 s with the exchange on
ZSTDand 23.7 s withLZ4, with the same plans.Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
The streaming exchange of a distributed query plan compresses with
LZ4by default instead of the codec ofnetwork_compression_method. New settingsdistributed_plan_exchange_compression_methodanddistributed_plan_exchange_zstd_compression_levelchoose the codec.🤖 Generated with Claude Code
Workflow [PR]
Sync PR [sync-upstream/pr/126743]
Version info
26.11.1.308-master(included in26.11and later)