Remove useless statsService in QueryNode (#17395)

Signed-off-by: bigsheeper <yihao.dai@zilliz.com>
This commit is contained in:
bigsheeper 2022-07-11 15:12:25 +08:00 committed by GitHub
parent a9aff3a678
commit 1da970af18
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
16 changed files with 137 additions and 527 deletions

View File

@ -648,7 +648,6 @@ func TestStream_PulsarMsgStream_DefaultRepackFunc(t *testing.T) {
msgPack.Msgs = append(msgPack.Msgs, getTsMsg(commonpb.MsgType_TimeTick, 1))
msgPack.Msgs = append(msgPack.Msgs, getTsMsg(commonpb.MsgType_Search, 2))
msgPack.Msgs = append(msgPack.Msgs, getTsMsg(commonpb.MsgType_SearchResult, 3))
msgPack.Msgs = append(msgPack.Msgs, getTsMsg(commonpb.MsgType_QueryNodeStats, 4))
factory := ProtoUDFactory{}
@ -1973,18 +1972,6 @@ func getTsMsg(msgType MsgType, reqID UniqueID) TsMsg {
TimeTickMsg: timeTickResult,
}
return timeTickMsg
case commonpb.MsgType_QueryNodeStats:
queryNodeSegStats := internalpb.QueryNodeStats{
Base: &commonpb.MsgBase{
MsgType: commonpb.MsgType_QueryNodeStats,
SourceID: reqID,
},
}
queryNodeSegStatsMsg := &QueryNodeStatsMsg{
BaseMsg: baseMsg,
QueryNodeStats: queryNodeSegStats,
}
return queryNodeSegStatsMsg
}
return nil
}

View File

@ -723,70 +723,6 @@ func (tst *TimeTickMsg) Unmarshal(input MarshalType) (TsMsg, error) {
return timeTick, nil
}
/////////////////////////////////////////QueryNodeStats//////////////////////////////////////////
// QueryNodeStatsMsg is a message pack that contains statistic from querynode
// GOOSE TODO: remove QueryNodeStats
type QueryNodeStatsMsg struct {
BaseMsg
internalpb.QueryNodeStats
}
// interface implementation validation
var _ TsMsg = &QueryNodeStatsMsg{}
// TraceCtx returns the context of opentracing
func (qs *QueryNodeStatsMsg) TraceCtx() context.Context {
return qs.BaseMsg.Ctx
}
// SetTraceCtx is used to set context for opentracing
func (qs *QueryNodeStatsMsg) SetTraceCtx(ctx context.Context) {
qs.BaseMsg.Ctx = ctx
}
// ID returns the ID of this message pack
func (qs *QueryNodeStatsMsg) ID() UniqueID {
return qs.Base.MsgID
}
// Type returns the type of this message pack
func (qs *QueryNodeStatsMsg) Type() MsgType {
return qs.Base.MsgType
}
// SourceID indicates which component generated this message
func (qs *QueryNodeStatsMsg) SourceID() int64 {
return qs.Base.SourceID
}
// Marshal is used to serializing a message pack to byte array
func (qs *QueryNodeStatsMsg) Marshal(input TsMsg) (MarshalType, error) {
queryNodeSegStatsTask := input.(*QueryNodeStatsMsg)
queryNodeSegStats := &queryNodeSegStatsTask.QueryNodeStats
mb, err := proto.Marshal(queryNodeSegStats)
if err != nil {
return nil, err
}
return mb, nil
}
// Unmarshal is used to deserializing a message pack from byte array
func (qs *QueryNodeStatsMsg) Unmarshal(input MarshalType) (TsMsg, error) {
queryNodeSegStats := internalpb.QueryNodeStats{}
in, err := convertToByteArray(input)
if err != nil {
return nil, err
}
err = proto.Unmarshal(in, &queryNodeSegStats)
if err != nil {
return nil, err
}
queryNodeSegStatsMsg := &QueryNodeStatsMsg{QueryNodeStats: queryNodeSegStats}
return queryNodeSegStatsMsg, nil
}
/////////////////////////////////////////CreateCollection//////////////////////////////////////////
// CreateCollectionMsg is a message pack that contains create collection request

View File

@ -597,51 +597,6 @@ func TestTimeTickMsg_Unmarshal_IllegalParameter(t *testing.T) {
assert.Nil(t, tsMsg)
}
func TestQueryNodeStatsMsg(t *testing.T) {
queryNodeStatsMsg := &QueryNodeStatsMsg{
BaseMsg: generateBaseMsg(),
QueryNodeStats: internalpb.QueryNodeStats{
Base: &commonpb.MsgBase{
MsgType: commonpb.MsgType_TimeTick,
MsgID: 1,
Timestamp: 2,
SourceID: 3,
},
SegStats: []*internalpb.SegmentStats{},
FieldStats: []*internalpb.FieldStats{},
},
}
assert.NotNil(t, queryNodeStatsMsg.TraceCtx())
ctx := context.Background()
queryNodeStatsMsg.SetTraceCtx(ctx)
assert.Equal(t, ctx, queryNodeStatsMsg.TraceCtx())
assert.Equal(t, int64(1), queryNodeStatsMsg.ID())
assert.Equal(t, commonpb.MsgType_TimeTick, queryNodeStatsMsg.Type())
assert.Equal(t, int64(3), queryNodeStatsMsg.SourceID())
bytes, err := queryNodeStatsMsg.Marshal(queryNodeStatsMsg)
assert.Nil(t, err)
tsMsg, err := queryNodeStatsMsg.Unmarshal(bytes)
assert.Nil(t, err)
queryNodeStatsMsg2, ok := tsMsg.(*QueryNodeStatsMsg)
assert.True(t, ok)
assert.Equal(t, int64(1), queryNodeStatsMsg2.ID())
assert.Equal(t, commonpb.MsgType_TimeTick, queryNodeStatsMsg2.Type())
assert.Equal(t, int64(3), queryNodeStatsMsg2.SourceID())
}
func TestQueryNodeStatsMsg_Unmarshal_IllegalParameter(t *testing.T) {
queryNodeStatsMsg := &QueryNodeStatsMsg{}
tsMsg, err := queryNodeStatsMsg.Unmarshal(10)
assert.NotNil(t, err)
assert.Nil(t, tsMsg)
}
func TestCreateCollectionMsg(t *testing.T) {
createCollectionMsg := &CreateCollectionMsg{
BaseMsg: generateBaseMsg(),

View File

@ -93,7 +93,6 @@ func allowTrace(in interface{}) bool {
switch res := in.(type) {
case TsMsg:
return !(res.Type() == commonpb.MsgType_TimeTick ||
res.Type() == commonpb.MsgType_QueryNodeStats ||
res.Type() == commonpb.MsgType_LoadIndex)
default:
return false

View File

@ -65,7 +65,6 @@ func (pudf *ProtoUDFactory) NewUnmarshalDispatcher() *ProtoUnmarshalDispatcher {
dropCollectionMsg := DropCollectionMsg{}
createPartitionMsg := CreatePartitionMsg{}
dropPartitionMsg := DropPartitionMsg{}
queryNodeSegStatsMsg := QueryNodeStatsMsg{}
dataNodeTtMsg := DataNodeTtMsg{}
sealedSegmentsChangeInfoMsg := SealedSegmentsChangeInfoMsg{}
@ -78,7 +77,6 @@ func (pudf *ProtoUDFactory) NewUnmarshalDispatcher() *ProtoUnmarshalDispatcher {
p.TempMap[commonpb.MsgType_Retrieve] = retrieveMsg.Unmarshal
p.TempMap[commonpb.MsgType_RetrieveResult] = retrieveResultMsg.Unmarshal
p.TempMap[commonpb.MsgType_TimeTick] = timeTickMsg.Unmarshal
p.TempMap[commonpb.MsgType_QueryNodeStats] = queryNodeSegStatsMsg.Unmarshal
p.TempMap[commonpb.MsgType_CreateCollection] = createCollectionMsg.Unmarshal
p.TempMap[commonpb.MsgType_DropCollection] = dropCollectionMsg.Unmarshal
p.TempMap[commonpb.MsgType_CreatePartition] = createPartitionMsg.Unmarshal

View File

@ -255,12 +255,6 @@ message SegmentStats {
bool recently_modified = 4;
}
message QueryNodeStats {
common.MsgBase base = 1;
repeated SegmentStats seg_stats = 2;
repeated FieldStats field_stats = 3;
}
message MsgPosition {
string channel_name = 1;
bytes msgID = 2;

View File

@ -2148,61 +2148,6 @@ func (m *SegmentStats) GetRecentlyModified() bool {
return false
}
type QueryNodeStats struct {
Base *commonpb.MsgBase `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"`
SegStats []*SegmentStats `protobuf:"bytes,2,rep,name=seg_stats,json=segStats,proto3" json:"seg_stats,omitempty"`
FieldStats []*FieldStats `protobuf:"bytes,3,rep,name=field_stats,json=fieldStats,proto3" json:"field_stats,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *QueryNodeStats) Reset() { *m = QueryNodeStats{} }
func (m *QueryNodeStats) String() string { return proto.CompactTextString(m) }
func (*QueryNodeStats) ProtoMessage() {}
func (*QueryNodeStats) Descriptor() ([]byte, []int) {
return fileDescriptor_41f4a519b878ee3b, []int{28}
}
func (m *QueryNodeStats) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_QueryNodeStats.Unmarshal(m, b)
}
func (m *QueryNodeStats) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_QueryNodeStats.Marshal(b, m, deterministic)
}
func (m *QueryNodeStats) XXX_Merge(src proto.Message) {
xxx_messageInfo_QueryNodeStats.Merge(m, src)
}
func (m *QueryNodeStats) XXX_Size() int {
return xxx_messageInfo_QueryNodeStats.Size(m)
}
func (m *QueryNodeStats) XXX_DiscardUnknown() {
xxx_messageInfo_QueryNodeStats.DiscardUnknown(m)
}
var xxx_messageInfo_QueryNodeStats proto.InternalMessageInfo
func (m *QueryNodeStats) GetBase() *commonpb.MsgBase {
if m != nil {
return m.Base
}
return nil
}
func (m *QueryNodeStats) GetSegStats() []*SegmentStats {
if m != nil {
return m.SegStats
}
return nil
}
func (m *QueryNodeStats) GetFieldStats() []*FieldStats {
if m != nil {
return m.FieldStats
}
return nil
}
type MsgPosition struct {
ChannelName string `protobuf:"bytes,1,opt,name=channel_name,json=channelName,proto3" json:"channel_name,omitempty"`
MsgID []byte `protobuf:"bytes,2,opt,name=msgID,proto3" json:"msgID,omitempty"`
@ -2217,7 +2162,7 @@ func (m *MsgPosition) Reset() { *m = MsgPosition{} }
func (m *MsgPosition) String() string { return proto.CompactTextString(m) }
func (*MsgPosition) ProtoMessage() {}
func (*MsgPosition) Descriptor() ([]byte, []int) {
return fileDescriptor_41f4a519b878ee3b, []int{29}
return fileDescriptor_41f4a519b878ee3b, []int{28}
}
func (m *MsgPosition) XXX_Unmarshal(b []byte) error {
@ -2280,7 +2225,7 @@ func (m *ChannelTimeTickMsg) Reset() { *m = ChannelTimeTickMsg{} }
func (m *ChannelTimeTickMsg) String() string { return proto.CompactTextString(m) }
func (*ChannelTimeTickMsg) ProtoMessage() {}
func (*ChannelTimeTickMsg) Descriptor() ([]byte, []int) {
return fileDescriptor_41f4a519b878ee3b, []int{30}
return fileDescriptor_41f4a519b878ee3b, []int{29}
}
func (m *ChannelTimeTickMsg) XXX_Unmarshal(b []byte) error {
@ -2346,7 +2291,7 @@ func (m *CredentialInfo) Reset() { *m = CredentialInfo{} }
func (m *CredentialInfo) String() string { return proto.CompactTextString(m) }
func (*CredentialInfo) ProtoMessage() {}
func (*CredentialInfo) Descriptor() ([]byte, []int) {
return fileDescriptor_41f4a519b878ee3b, []int{31}
return fileDescriptor_41f4a519b878ee3b, []int{30}
}
func (m *CredentialInfo) XXX_Unmarshal(b []byte) error {
@ -2414,7 +2359,7 @@ func (m *ListPolicyRequest) Reset() { *m = ListPolicyRequest{} }
func (m *ListPolicyRequest) String() string { return proto.CompactTextString(m) }
func (*ListPolicyRequest) ProtoMessage() {}
func (*ListPolicyRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_41f4a519b878ee3b, []int{32}
return fileDescriptor_41f4a519b878ee3b, []int{31}
}
func (m *ListPolicyRequest) XXX_Unmarshal(b []byte) error {
@ -2455,7 +2400,7 @@ func (m *ListPolicyResponse) Reset() { *m = ListPolicyResponse{} }
func (m *ListPolicyResponse) String() string { return proto.CompactTextString(m) }
func (*ListPolicyResponse) ProtoMessage() {}
func (*ListPolicyResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_41f4a519b878ee3b, []int{33}
return fileDescriptor_41f4a519b878ee3b, []int{32}
}
func (m *ListPolicyResponse) XXX_Unmarshal(b []byte) error {
@ -2521,7 +2466,6 @@ func init() {
proto.RegisterType((*IndexStats)(nil), "milvus.proto.internal.IndexStats")
proto.RegisterType((*FieldStats)(nil), "milvus.proto.internal.FieldStats")
proto.RegisterType((*SegmentStats)(nil), "milvus.proto.internal.SegmentStats")
proto.RegisterType((*QueryNodeStats)(nil), "milvus.proto.internal.QueryNodeStats")
proto.RegisterType((*MsgPosition)(nil), "milvus.proto.internal.MsgPosition")
proto.RegisterType((*ChannelTimeTickMsg)(nil), "milvus.proto.internal.ChannelTimeTickMsg")
proto.RegisterType((*CredentialInfo)(nil), "milvus.proto.internal.CredentialInfo")
@ -2532,139 +2476,136 @@ func init() {
func init() { proto.RegisterFile("internal.proto", fileDescriptor_41f4a519b878ee3b) }
var fileDescriptor_41f4a519b878ee3b = []byte{
// 2136 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec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0x6a, 0x42, 0xed, 0x87, 0x04,
0xc7, 0x72, 0x6f, 0xd4, 0x71, 0x50, 0x0b, 0xea, 0xf7, 0xfb, 0x29, 0xe3, 0x09, 0x8e, 0x3b, 0x95,
0x1b, 0x1b, 0xb0, 0x72, 0x64, 0xc8, 0x57, 0x22, 0x01, 0x3b, 0x54, 0xd6, 0x44, 0x9d, 0x37, 0xd0,
0x32, 0x34, 0xb7, 0x58, 0x9c, 0x27, 0xa9, 0x21, 0x38, 0x9b, 0x1f, 0xff, 0xec, 0xa3, 0x21, 0x95,
0x7b, 0x79, 0x5f, 0x29, 0x7c, 0xdb, 0x58, 0xf0, 0x3e, 0x65, 0xf6, 0xeb, 0x76, 0x91, 0x58, 0xb7,
0xb5, 0x51, 0xe3, 0x65, 0xd6, 0xef, 0x2f, 0x6a, 0xca, 0x07, 0xff, 0x09, 0x00, 0x00, 0xff, 0xff,
0xc0, 0xd0, 0xef, 0xbc, 0xa5, 0x1d, 0x00, 0x00,
// 2085 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x59, 0xcd, 0x73, 0x1b, 0x49,
0x15, 0xdf, 0xd1, 0xc8, 0x96, 0xf4, 0x24, 0xcb, 0x72, 0xc7, 0x9b, 0x9d, 0x7c, 0xec, 0xae, 0x33,
0x2c, 0x60, 0x12, 0x36, 0x09, 0xde, 0xdd, 0xec, 0x16, 0x50, 0x84, 0xc4, 0x5a, 0x82, 0x2a, 0x1f,
0x98, 0x71, 0x48, 0x15, 0x5c, 0xa6, 0x5a, 0x9a, 0xb6, 0xdc, 0x64, 0x66, 0x7a, 0xd2, 0xdd, 0x63,
0x47, 0x39, 0x71, 0xe0, 0x04, 0x05, 0x37, 0x2e, 0x54, 0xc1, 0x99, 0xff, 0x80, 0x1b, 0x54, 0x71,
0xe2, 0xc4, 0x89, 0x0b, 0xff, 0x0a, 0xc5, 0x81, 0xea, 0x8f, 0x19,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3, 0xd1, 0xe4, 0xcc, 0x37, 0x8e, 0x1f, 0x03, 0xaa, 0xaa, 0x11, 0x19, 0x4b, 0x67, 0x06,
0x06, 0xe7, 0xf4, 0x03, 0xc3, 0x15, 0xe8, 0x64, 0x5a, 0x8d, 0xfe, 0x1b, 0xad, 0x48, 0x5e, 0xdb,
0xd0, 0x54, 0x68, 0xc5, 0xd5, 0x4f, 0xa0, 0x55, 0xfe, 0x01, 0x87, 0x7a, 0xd0, 0x19, 0xa4, 0x54,
0xea, 0x29, 0x8d, 0xa6, 0xe3, 0xde, 0x1b, 0xa8, 0x0d, 0x8d, 0x1f, 0x12, 0x1c, 0xcb, 0xfd, 0x49,
0xcf, 0x41, 0x1d, 0x68, 0xde, 0x19, 0xa6, 0x8c, 0x27, 0x38, 0xee, 0xd5, 0xae, 0x6e, 0xc1, 0xda,
0x91, 0x97, 0xb1, 0x12, 0x09, 0xd8, 0xa1, 0xf2, 0x26, 0xea, 0xbd, 0x81, 0x56, 0xa1, 0xbd, 0xcd,
0xe2, 0x3c, 0x49, 0x0d, 0xc1, 0xb9, 0xfb, 0xf1, 0xcf, 0x3e, 0x1a, 0x53, 0xb9, 0x9f, 0x0f, 0x95,
0xc1, 0x37, 0x8c, 0x07, 0xef, 0x53, 0x66, 0xbf, 0x6e, 0x14, 0x05, 0x7f, 0x43, 0x3b, 0x55, 0x2e,
0xb3, 0xe1, 0x70, 0x59, 0x53, 0x3e, 0xf8, 0x6f, 0x00, 0x00, 0x00, 0xff, 0xff, 0xfd, 0x7b, 0xa3,
0xc9, 0xda, 0x1c, 0x00, 0x00,
}

View File

@ -84,7 +84,6 @@ func (qc *QueryCoord) GetStatisticsChannel(ctx context.Context) (*milvuspb.Strin
ErrorCode: commonpb.ErrorCode_Success,
Reason: "",
},
Value: Params.CommonCfg.QueryNodeStats,
}, nil
}

View File

@ -56,7 +56,6 @@ func setup() {
func refreshParams() {
rand.Seed(time.Now().UnixNano())
suffix := "-test-query-Coord" + strconv.FormatInt(rand.Int63(), 10)
Params.CommonCfg.QueryNodeStats = Params.CommonCfg.QueryNodeStats + suffix
Params.CommonCfg.QueryCoordTimeTick = Params.CommonCfg.QueryCoordTimeTick + suffix
Params.EtcdCfg.MetaRootPath = Params.EtcdCfg.MetaRootPath + suffix
GlobalSegmentInfos = make(map[UniqueID]*querypb.SegmentInfo)

View File

@ -87,7 +87,6 @@ func (node *QueryNode) GetStatisticsChannel(ctx context.Context) (*milvuspb.Stri
ErrorCode: commonpb.ErrorCode_Success,
Reason: "",
},
Value: Params.CommonCfg.QueryNodeStats,
}, nil
}

View File

@ -94,10 +94,6 @@ type QueryNode struct {
// dataSyncService
dataSyncService *dataSyncService
// internal services
//queryService *queryService
statsService *statsService
// segment loader
loader *segmentLoader
@ -259,7 +255,6 @@ func (node *QueryNode) Start() error {
// start services
go node.watchChangeInfo()
//go node.statsService.start()
// create shardClusterService for shardLeader functions.
node.ShardClusterService = newShardClusterService(node.etcdCli, node.session, node)

View File

@ -19,10 +19,8 @@ package querynode
import (
"context"
"io/ioutil"
"math/rand"
"net/url"
"os"
"strconv"
"sync"
"testing"
"time"
@ -97,7 +95,6 @@ func newQueryNodeMock() *QueryNode {
replica := newCollectionReplica()
svr.metaReplica = replica
svr.dataSyncService = newDataSyncService(ctx, svr.metaReplica, tsReplica, factory)
svr.statsService = newStatsService(ctx, svr.metaReplica, factory)
svr.vectorStorage, err = factory.NewVectorStorageChunkManager(ctx)
if err != nil {
panic(err)
@ -143,7 +140,6 @@ func startEmbedEtcdServer() (*embed.Etcd, error) {
func TestMain(m *testing.M) {
setup()
Params.CommonCfg.QueryNodeStats = Params.CommonCfg.QueryNodeStats + strconv.Itoa(rand.Int())
// init embed etcd
var err error
embedetcdServer, err = startEmbedEtcdServer()

View File

@ -1,108 +0,0 @@
// Licensed to the LF AI & Data foundation under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may not use this file except in compliance
// with the License. You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package querynode
import (
"context"
"time"
"github.com/milvus-io/milvus/internal/log"
"github.com/milvus-io/milvus/internal/mq/msgstream"
"github.com/milvus-io/milvus/internal/proto/commonpb"
"github.com/milvus-io/milvus/internal/proto/internalpb"
"go.uber.org/zap"
)
type statsService struct {
ctx context.Context
replica ReplicaInterface
statsStream msgstream.MsgStream
msFactory msgstream.Factory
}
func newStatsService(ctx context.Context, replica ReplicaInterface, factory msgstream.Factory) *statsService {
return &statsService{
ctx: ctx,
replica: replica,
statsStream: nil,
msFactory: factory,
}
}
func (sService *statsService) start() {
sleepTimeInterval := Params.QueryNodeCfg.StatsPublishInterval
// start pulsar
producerChannels := []string{Params.CommonCfg.QueryNodeStats}
statsStream, _ := sService.msFactory.NewMsgStream(sService.ctx)
statsStream.AsProducer(producerChannels)
log.Info("QueryNode statsService AsProducer succeed", zap.Strings("channels", producerChannels))
var statsMsgStream msgstream.MsgStream = statsStream
sService.statsStream = statsMsgStream
sService.statsStream.Start()
// start service
for {
select {
case <-sService.ctx.Done():
log.Info("stats service closed")
return
case <-time.After(time.Duration(sleepTimeInterval) * time.Millisecond):
sService.publicStatistic(nil)
}
}
}
func (sService *statsService) close() {
if sService.statsStream != nil {
sService.statsStream.Close()
}
}
func (sService *statsService) publicStatistic(fieldStats []*internalpb.FieldStats) {
segStats := sService.replica.getSegmentStatistics()
queryNodeStats := internalpb.QueryNodeStats{
Base: &commonpb.MsgBase{
MsgType: commonpb.MsgType_QueryNodeStats,
SourceID: Params.QueryNodeCfg.GetNodeID(),
},
SegStats: segStats,
FieldStats: fieldStats,
}
var msg msgstream.TsMsg = &msgstream.QueryNodeStatsMsg{
BaseMsg: msgstream.BaseMsg{
HashValues: []uint32{0},
},
QueryNodeStats: queryNodeStats,
}
var msgPack = msgstream.MsgPack{
Msgs: []msgstream.TsMsg{msg},
}
err := sService.statsStream.Produce(&msgPack)
if err != nil {
log.Warn("failed to publish stats", zap.Error(err))
}
}

View File

@ -1,67 +0,0 @@
// Licensed to the LF AI & Data foundation under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may not use this file except in compliance
// with the License. You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package querynode
import (
"context"
"testing"
"github.com/milvus-io/milvus/internal/mq/msgstream"
"github.com/milvus-io/milvus/internal/util/dependency"
"github.com/stretchr/testify/assert"
)
// NOTE: start pulsar before test
func TestStatsService_start(t *testing.T) {
node := newQueryNodeMock()
initTestMeta(t, node, 0, 0)
factory := dependency.NewDefaultFactory(true)
node.statsService = newStatsService(node.queryNodeLoopCtx, node.metaReplica, factory)
node.statsService.start()
node.Stop()
}
//NOTE: start pulsar before test
func TestSegmentManagement_sendSegmentStatistic(t *testing.T) {
ctx, cancel := context.WithCancel(context.Background())
defer cancel()
node, err := genSimpleQueryNode(ctx)
assert.NoError(t, err)
const receiveBufSize = 1024
// start pulsar
producerChannels := []string{Params.CommonCfg.QueryNodeStats}
factory := dependency.NewDefaultFactory(true)
statsStream, err := factory.NewMsgStream(node.queryNodeLoopCtx)
assert.Nil(t, err)
statsStream.AsProducer(producerChannels)
var statsMsgStream msgstream.MsgStream = statsStream
node.statsService = newStatsService(node.queryNodeLoopCtx, node.metaReplica, factory)
node.statsService.statsStream = statsMsgStream
node.statsService.statsStream.Start()
// send stats
node.statsService.publicStatistic(nil)
node.Stop()
}

View File

@ -111,7 +111,6 @@ type commonConfig struct {
QueryCoordSearch string
QueryCoordSearchResult string
QueryCoordTimeTick string
QueryNodeStats string
QueryNodeSubName string
DataCoordStatistic string
@ -151,7 +150,6 @@ func (p *commonConfig) init(base *BaseTable) {
p.initQueryCoordSearch()
p.initQueryCoordSearchResult()
p.initQueryCoordTimeTick()
p.initQueryNodeStats()
p.initQueryNodeSubName()
p.initDataCoordStatistic()
@ -274,14 +272,6 @@ func (p *commonConfig) initQueryCoordTimeTick() {
}
// --- querynode ---
func (p *commonConfig) initQueryNodeStats() {
keys := []string{
"msgChannel.chanNamePrefix.queryNodeStats",
"common.chanNamePrefix.queryNodeStats",
}
p.QueryNodeStats = p.initChanNamePrefix(keys)
}
func (p *commonConfig) initQueryNodeSubName() {
keys := []string{
"msgChannel.subNamePrefix.queryNodeSubNamePrefix",

View File

@ -91,9 +91,6 @@ func TestComponentParam(t *testing.T) {
t.Logf("querycoord timetick channel = %s", Params.QueryCoordTimeTick)
// -- querynode --
assert.Equal(t, Params.QueryNodeStats, "by-dev-query-node-stats")
t.Logf("querynode stats channel = %s", Params.QueryNodeStats)
assert.Equal(t, Params.QueryNodeSubName, "by-dev-queryNode")
t.Logf("querynode subname = %s", Params.QueryNodeSubName)