*: add low latency performance mode#3
Draft
asddongmen wants to merge 12 commits into
Draft
Conversation
Keep the low-latency mode focused on setting the logpuller advance interval to zero. Remove the additional batched heap update path and its helper after the 10k-region E2E test showed comparable mean and p95 latency without it.
Replace the periodic schema-capped scan retry with applied SchemaStore notifications. Serialize dispatcher scan scheduling with a short-lock state machine and coalesce worker continuations without dropping queued work.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What problem does this PR solve?
Issue Number: close #xxx
TiCDC timestamp propagation is tuned for throughput. Fixed batching and heartbeat intervals add avoidable resolved-ts and checkpoint-ts latency for latency-sensitive deployments.
What is changed and how it works?
performance-mode = "throughput" | "low-latency"; throughput remains the default.Six sequential 10-minute E2E rounds used 3 CDC nodes, 32 bank tables, about 10k regions, 2 MiB/s traffic, TiKV
cdc.min-ts-interval=200ms, and MySQL dry-run delay 50ms. Mean API lag fell from 1.001s to 0.306s. Step 5 showed no additional latency gain and increased aggregate CDC CPU by 26.8%, so it remains visible for Draft review.Check List
Tests
Questions
Will it cause performance regression or break compatibility?
Default behavior is unchanged. Low-latency mode intentionally trades CPU and message volume for latency; the 5ms EventService flush needs further review.
Do you need to update user documentation, design documentation or monitoring documentation?
Yes. Document the mode and its resource trade-offs before GA.
Release note