Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
2
210310676
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Summer2021
210310676
Commits
a7eae3a4
Commit
a7eae3a4
authored
4 years ago
by
Yihao Dai
Committed by
yefu.chen
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Remove consumer in query node's initialization
Signed-off-by:
bigsheeper
<
yihao.dai@zilliz.com
>
parent
e6aec3fd
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
internal/proxyservice/impl.go
+1
-1
1 addition, 1 deletion
internal/proxyservice/impl.go
internal/querynode/flow_graph_msg_stream_input_nodes.go
+5
-12
5 additions, 12 deletions
internal/querynode/flow_graph_msg_stream_input_nodes.go
with
6 additions
and
13 deletions
internal/proxyservice/impl.go
+
1
−
1
View file @
a7eae3a4
...
...
@@ -121,7 +121,7 @@ func (s *ServiceImpl) Init() error {
"proxyservicesub"
)
// TODO: add config
log
.
Println
(
"create node time tick consumer channel: "
,
Params
.
NodeTimeTickChannel
)
ttBarrier
:=
newSoftTimeTickBarrier
(
s
.
ctx
,
nodeTimeTickMsgStream
,
[]
UniqueID
{
1
},
10
)
ttBarrier
:=
newSoftTimeTickBarrier
(
s
.
ctx
,
nodeTimeTickMsgStream
,
[]
UniqueID
{
0
},
10
)
log
.
Println
(
"create soft time tick barrier ..."
)
s
.
tick
=
newTimeTick
(
s
.
ctx
,
ttBarrier
,
serviceTimeTickMsgStream
,
insertTickMsgStream
)
log
.
Println
(
"create time tick ..."
)
...
...
This diff is collapsed.
Click to expand it.
internal/querynode/flow_graph_msg_stream_input_nodes.go
+
5
−
12
View file @
a7eae3a4
...
...
@@ -3,7 +3,6 @@ package querynode
import
(
"context"
"github.com/zilliztech/milvus-distributed/internal/msgstream"
"github.com/zilliztech/milvus-distributed/internal/msgstream/pulsarms"
"github.com/zilliztech/milvus-distributed/internal/util/flowgraph"
)
...
...
@@ -11,19 +10,14 @@ import (
func
(
dsService
*
dataSyncService
)
newDmInputNode
(
ctx
context
.
Context
)
*
flowgraph
.
InputNode
{
factory
:=
pulsarms
.
NewFactory
(
Params
.
PulsarAddress
,
Params
.
InsertReceiveBufSize
,
Params
.
InsertPulsarBufSize
)
consumeChannels
:=
Params
.
InsertChannelNames
consumeSubName
:=
Params
.
MsgChannelSubName
// query node doesn't need to consume any topic
insertStream
,
_
:=
factory
.
NewTtMsgStream
(
ctx
)
insertStream
.
AsConsumer
(
consumeChannels
,
consumeSubName
)
var
stream
msgstream
.
MsgStream
=
insertStream
dsService
.
dmStream
=
stream
dsService
.
dmStream
=
insertStream
maxQueueLength
:=
Params
.
FlowGraphMaxQueueLength
maxParallelism
:=
Params
.
FlowGraphMaxParallelism
node
:=
flowgraph
.
NewInputNode
(
&
s
tream
,
"dmInputNode"
,
maxQueueLength
,
maxParallelism
)
node
:=
flowgraph
.
NewInputNode
(
&
insertS
tream
,
"dmInputNode"
,
maxQueueLength
,
maxParallelism
)
return
node
}
...
...
@@ -36,12 +30,11 @@ func (dsService *dataSyncService) newDDInputNode(ctx context.Context) *flowgraph
ddStream
,
_
:=
factory
.
NewTtMsgStream
(
ctx
)
ddStream
.
AsConsumer
(
consumeChannels
,
consumeSubName
)
var
stream
msgstream
.
MsgStream
=
ddStream
dsService
.
ddStream
=
stream
dsService
.
ddStream
=
ddStream
maxQueueLength
:=
Params
.
FlowGraphMaxQueueLength
maxParallelism
:=
Params
.
FlowGraphMaxParallelism
node
:=
flowgraph
.
NewInputNode
(
&
s
tream
,
"ddInputNode"
,
maxQueueLength
,
maxParallelism
)
node
:=
flowgraph
.
NewInputNode
(
&
ddS
tream
,
"ddInputNode"
,
maxQueueLength
,
maxParallelism
)
return
node
}
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment