Skip to content

Commit 95999d1

Browse files
LloydLloyd-Pottiger
andcommitted
spfresh: add search diagnostic stats (#10)
## Summary - add SPFreshSearchStats fields for read_only, effective oversample_factor, and per-request partition cache hits/misses - regenerate Go protobuf and proto.lock ## Validation - protolock status -lockdir=scripts -protoroot=proto - go build ./go-tipb/... - cargo check - cargo check --no-default-features --features prost-codec Co-authored-by: Lloyd-Pottiger <yan1579196623@gmail.com> Reviewed-on: https://git.pingcap.net/pingkai/tipb/pulls/10 (cherry picked from commit ebb6356a3c319d7eb86275885232249b41920a81)
1 parent 86fde37 commit 95999d1

3 files changed

Lines changed: 219 additions & 48 deletions

File tree

go-tipb/spfresh_search.pb.go

Lines changed: 193 additions & 48 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

proto/spfresh_search.proto

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,4 +70,10 @@ message SPFreshSearchStats {
7070
// request.
7171
uint64 tikv_client_rpc_count = 10;
7272
uint64 tikv_client_rpc_micros = 11;
73+
bool read_only = 12;
74+
// Effective oversample factor used by the server for this request.
75+
double oversample_factor = 13;
76+
// Process-local partition cache stats for this request.
77+
uint64 partition_cache_hits = 14;
78+
uint64 partition_cache_misses = 15;
7379
}

scripts/proto.lock

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8124,6 +8124,26 @@
81248124
"id": 11,
81258125
"name": "tikv_client_rpc_micros",
81268126
"type": "uint64"
8127+
},
8128+
{
8129+
"id": 12,
8130+
"name": "read_only",
8131+
"type": "bool"
8132+
},
8133+
{
8134+
"id": 13,
8135+
"name": "oversample_factor",
8136+
"type": "double"
8137+
},
8138+
{
8139+
"id": 14,
8140+
"name": "partition_cache_hits",
8141+
"type": "uint64"
8142+
},
8143+
{
8144+
"id": 15,
8145+
"name": "partition_cache_misses",
8146+
"type": "uint64"
81278147
}
81288148
]
81298149
}

0 commit comments

Comments
 (0)