How the DB9 Coprocessor Protocol is transported
masterThe DB9 protocol does not introduce a new gRPC service. Instead, it reuses the existing TiKV coprocessor.Request envelope to leverage existing routing, region clipping, and admission control.
To transport a DB9 request, you must configure the outer coprocessor.Request as follows:
tp: Set toREQ_TYPE_DB9_DAG.ranges: Provide concrete, region-clipped key ranges.data: Provide the serializedDb9DagRequestpayload.
This separation allows the outer envelope to manage physical routing while the inner DB9 payload manages logical scan shapes and execution metadata.
coprocessor.Request {
tp: REQ_TYPE_DB9_DAG
ranges: [region_clipped_ranges]
data: serialized_Db9DagRequest
}