add segmengt statistics message in datanode and Update documentation

Signed-off-by: XuanYang-cn <xuan.yang@zilliz.com>
pull/4973/head^2
XuanYang-cn 2021-01-16 15:47:33 +08:00 committed by yefu.chen
parent 0164e78bb5
commit 4af3914836
5 changed files with 17 additions and 2 deletions

View File

@ -4,7 +4,7 @@
#### 8.1 Overview
<img src="./figs/query_service.jpeg" width=700>
<img src="./figs/query_service.png" width=700>

View File

@ -190,7 +190,7 @@ type DataNode interface {
WatchDmChannels(req WatchDmChannelRequest) error
//WatchDdChannel(channelName string) error
//SetTimeTickChannel(channelName string) error
//SetStatsChannel(channelName string) error
//SetStatisticsChannel(channelName string) error
FlushSegments(req FlushSegRequest) error
}
@ -218,3 +218,18 @@ type FlushSegRequest struct {
}
```
* *SegmentStatistics*
```go
type SegmentStatisticsUpdates struct {
SegmentID UniqueID
MemorySize int64
NumRows int64
}
type SegmentStatistics struct{
MsgBase
SegStats []*SegmentStatisticsUpdates
}
```

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 156 KiB