未验证 提交 26f890b5 编写于 作者: D dragondriver 提交者: GitHub

Remove too frequent timetick log (#6682)

Signed-off-by: Ndragondriver <jiquan.long@zilliz.com>
上级 9b1708f6
...@@ -523,6 +523,15 @@ var ( ...@@ -523,6 +523,15 @@ var (
Name: "release_dql_message_stream_total", Name: "release_dql_message_stream_total",
Help: "Counter of release dql message stream", Help: "Counter of release dql message stream",
}, []string{"status"}) }, []string{"status"})
// ProxyDmlChannelTimeTick used to count the time tick value of dml channels
ProxyDmlChannelTimeTick = prometheus.NewGaugeVec(
prometheus.GaugeOpts{
Namespace: milvusNamespace,
Subsystem: subSystemProxy,
Name: "dml_channels_time_tick",
Help: "Time tick of dml channels",
}, []string{"pchan"})
) )
//RegisterProxy register Proxy metrics //RegisterProxy register Proxy metrics
...@@ -570,6 +579,8 @@ func RegisterProxy() { ...@@ -570,6 +579,8 @@ func RegisterProxy() {
prometheus.MustRegister(ProxyGetDdChannelCounter) prometheus.MustRegister(ProxyGetDdChannelCounter)
prometheus.MustRegister(ProxyReleaseDQLMessageStreamCounter) prometheus.MustRegister(ProxyReleaseDQLMessageStreamCounter)
prometheus.MustRegister(ProxyDmlChannelTimeTick)
} }
//RegisterQueryCoord register QueryCoord metrics //RegisterQueryCoord register QueryCoord metrics
......
...@@ -20,6 +20,8 @@ import ( ...@@ -20,6 +20,8 @@ import (
"sync/atomic" "sync/atomic"
"time" "time"
"github.com/milvus-io/milvus/internal/metrics"
"go.uber.org/zap" "go.uber.org/zap"
"github.com/milvus-io/milvus/internal/allocator" "github.com/milvus-io/milvus/internal/allocator"
...@@ -300,8 +302,6 @@ func (node *Proxy) sendChannelsTimeTickLoop() { ...@@ -300,8 +302,6 @@ func (node *Proxy) sendChannelsTimeTickLoop() {
} }
} }
log.Debug("send timestamp statistics of pchan", zap.Any("channels", channels), zap.Any("tss", tss))
req := &internalpb.ChannelTimeTickMsg{ req := &internalpb.ChannelTimeTickMsg{
Base: &commonpb.MsgBase{ Base: &commonpb.MsgBase{
MsgType: commonpb.MsgType_TimeTick, // todo MsgType: commonpb.MsgType_TimeTick, // todo
...@@ -314,6 +314,12 @@ func (node *Proxy) sendChannelsTimeTickLoop() { ...@@ -314,6 +314,12 @@ func (node *Proxy) sendChannelsTimeTickLoop() {
DefaultTimestamp: maxTs, DefaultTimestamp: maxTs,
} }
for idx, channel := range channels {
ts := tss[idx]
metrics.ProxyDmlChannelTimeTick.WithLabelValues(channel).Set(float64(ts))
}
metrics.ProxyDmlChannelTimeTick.WithLabelValues("DefaultTimestamp").Set(float64(maxTs))
status, err := node.rootCoord.UpdateChannelTimeTick(node.ctx, req) status, err := node.rootCoord.UpdateChannelTimeTick(node.ctx, req)
if err != nil { if err != nil {
log.Warn("sendChannelsTimeTickLoop.UpdateChannelTimeTick", zap.Error(err)) log.Warn("sendChannelsTimeTickLoop.UpdateChannelTimeTick", zap.Error(err))
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册