mirror of
https://gitee.com/milvus-io/milvus.git
synced 2026-01-07 19:31:51 +08:00
Remove useless config (#4997)
Signed-off-by: godchen <qingxiang.chen@zilliz.com>
This commit is contained in:
parent
dadb02db75
commit
4f7e393bfd
@ -395,10 +395,6 @@ type GlobalParamsTable struct {
|
||||
ProxySubName string
|
||||
ProxyTimeTickChannelNames []string
|
||||
DataDefinitionChannelNames []string
|
||||
MsgStreamInsertBufSize int64
|
||||
MsgStreamSearchBufSize int64
|
||||
MsgStreamSearchResultBufSize int64
|
||||
MsgStreamSearchResultPulsarBufSize int64
|
||||
MsgStreamTimeTickBufSize int64
|
||||
MaxNameLength int64
|
||||
MaxFieldNum int64
|
||||
|
||||
@ -45,25 +45,21 @@ type ParamTable struct {
|
||||
MasterAddress string
|
||||
PulsarAddress string
|
||||
|
||||
QueryNodeNum int
|
||||
QueryNodeIDList []UniqueID
|
||||
ProxyID UniqueID
|
||||
TimeTickInterval time.Duration
|
||||
K2SChannelNames []string
|
||||
SearchChannelNames []string
|
||||
SearchResultChannelNames []string
|
||||
ProxySubName string
|
||||
ProxyTimeTickChannelNames []string
|
||||
MsgStreamInsertBufSize int64
|
||||
MsgStreamSearchBufSize int64
|
||||
MsgStreamSearchResultBufSize int64
|
||||
MsgStreamSearchResultPulsarBufSize int64
|
||||
MsgStreamTimeTickBufSize int64
|
||||
MaxNameLength int64
|
||||
MaxFieldNum int64
|
||||
MaxDimension int64
|
||||
DefaultPartitionName string
|
||||
DefaultIndexName string
|
||||
QueryNodeNum int
|
||||
QueryNodeIDList []UniqueID
|
||||
ProxyID UniqueID
|
||||
TimeTickInterval time.Duration
|
||||
K2SChannelNames []string
|
||||
SearchChannelNames []string
|
||||
SearchResultChannelNames []string
|
||||
ProxySubName string
|
||||
ProxyTimeTickChannelNames []string
|
||||
MsgStreamTimeTickBufSize int64
|
||||
MaxNameLength int64
|
||||
MaxFieldNum int64
|
||||
MaxDimension int64
|
||||
DefaultPartitionName string
|
||||
DefaultIndexName string
|
||||
|
||||
PulsarMaxMessageSize int
|
||||
Log log.Config
|
||||
@ -148,10 +144,6 @@ func (pt *ParamTable) initParams() {
|
||||
pt.initK2SChannelNames()
|
||||
pt.initProxySubName()
|
||||
pt.initProxyTimeTickChannelNames()
|
||||
pt.initMsgStreamInsertBufSize()
|
||||
pt.initMsgStreamSearchBufSize()
|
||||
pt.initMsgStreamSearchResultBufSize()
|
||||
pt.initMsgStreamSearchResultPulsarBufSize()
|
||||
pt.initMsgStreamTimeTickBufSize()
|
||||
pt.initMaxNameLength()
|
||||
pt.initMaxFieldNum()
|
||||
@ -240,22 +232,6 @@ func (pt *ParamTable) initProxyTimeTickChannelNames() {
|
||||
pt.ProxyTimeTickChannelNames = []string{prefix}
|
||||
}
|
||||
|
||||
func (pt *ParamTable) initMsgStreamInsertBufSize() {
|
||||
pt.MsgStreamInsertBufSize = pt.ParseInt64("proxyNode.msgStream.insert.bufSize")
|
||||
}
|
||||
|
||||
func (pt *ParamTable) initMsgStreamSearchBufSize() {
|
||||
pt.MsgStreamSearchBufSize = pt.ParseInt64("proxyNode.msgStream.search.bufSize")
|
||||
}
|
||||
|
||||
func (pt *ParamTable) initMsgStreamSearchResultBufSize() {
|
||||
pt.MsgStreamSearchResultBufSize = pt.ParseInt64("proxyNode.msgStream.searchResult.recvBufSize")
|
||||
}
|
||||
|
||||
func (pt *ParamTable) initMsgStreamSearchResultPulsarBufSize() {
|
||||
pt.MsgStreamSearchResultPulsarBufSize = pt.ParseInt64("proxyNode.msgStream.searchResult.pulsarBufSize")
|
||||
}
|
||||
|
||||
func (pt *ParamTable) initMsgStreamTimeTickBufSize() {
|
||||
pt.MsgStreamTimeTickBufSize = pt.ParseInt64("proxyNode.msgStream.timeTick.bufSize")
|
||||
}
|
||||
|
||||
@ -156,9 +156,8 @@ func (node *ProxyNode) Init() error {
|
||||
//}
|
||||
|
||||
m := map[string]interface{}{
|
||||
"PulsarAddress": Params.PulsarAddress,
|
||||
"ReceiveBufSize": Params.MsgStreamSearchBufSize,
|
||||
"PulsarBufSize": 1024}
|
||||
"PulsarAddress": Params.PulsarAddress,
|
||||
"PulsarBufSize": 1024}
|
||||
err = node.msFactory.SetParams(m)
|
||||
if err != nil {
|
||||
return err
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user