*: add simplified low latency performance mode#4
Draft
asddongmen wants to merge 37 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.
Keep no-DML/no-DDL resolved notifications out of the scan worker queue while preserving dispatcher scan ownership. Gate continuation and schema-blocked recovery on low-latency mode, and cover queue-full recovery with a dropped-task metric.
asddongmen
force-pushed
the
agent/simplify-low-latency-mode
branch
from
July 25, 2026 10:56
1f97b0b to
52a0082
Compare
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 pingcap#5705
TiCDC's default timestamp propagation favors throughput and adds avoidable latency for latency-sensitive deployments. SchemaStore can also temporarily cap a dispatcher's resolved-ts; relying only on the next EventStore notification delays recovery.
What is changed and how it works?
performance-mode = "low-latency"; throughput remains the default.Check List
Tests
Questions
Will it cause performance regression or break compatibility?
Throughput mode remains the default and does not start schema-blocked polling. Low-latency mode intentionally increases control-message frequency and adds one 50ms keyspace-level check loop; blocked dispatchers consume registry memory until resumed or removed.
Do you need to update user documentation, design documentation or monitoring documentation?
Yes. Document the performance mode and its latency/resource trade-off before GA.
Release note