Skip to content

Commit

Permalink
add scheduling policy within a transaction (#16056)
Browse files Browse the repository at this point in the history
  • Loading branch information
llkdd1 authored Jan 19, 2024
1 parent dad56c5 commit a4fafda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion follower-read.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,4 +66,4 @@ When the follower node processes a read request, it first uses `ReadIndex` of th

Because the Follower Read feature does not affect TiDB's Snapshot Isolation transaction isolation level, TiDB adopts the round-robin strategy to select the follower replica. Currently, for the coprocessor requests, the granularity of the Follower Read load balancing policy is at the connection level. For a TiDB client connected to a specific Region, the selected follower is fixed, and is switched only when it fails or the scheduling policy is adjusted.

However, for the non-coprocessor requests, such as a point query, the granularity of the Follower Read load balancing policy is at the transaction level. For a TiDB transaction on a specific Region, the selected follower is fixed, and is switched only when it fails or the scheduling policy is adjusted.
However, for the non-coprocessor requests, such as a point query, the granularity of the Follower Read load balancing policy is at the transaction level. For a TiDB transaction on a specific Region, the selected follower is fixed, and is switched only when it fails or the scheduling policy is adjusted. If a transaction contains both point queries and coprocessor requests, the two types of requests are scheduled for reading separately according to the preceding scheduling policy. In this case, even if a coprocessor request and a point query are for the same Region, TiDB processes them as independent events.

0 comments on commit a4fafda

Please sign in to comment.