提交 e281f6a4 编写于 作者: X XuanYang-cn 提交者: yefu.chen

Remove useless configs in config files

Signed-off-by: NXuanYang-cn <xuan.yang@zilliz.com>
上级 a7dac818
...@@ -22,11 +22,9 @@ msgChannel: ...@@ -22,11 +22,9 @@ msgChannel:
k2s: "k2s" k2s: "k2s"
proxyTimeTick: "proxyTimeTick" proxyTimeTick: "proxyTimeTick"
proxyServiceTimeTick: "proxyServiceTimeTick" proxyServiceTimeTick: "proxyServiceTimeTick"
writeNodeTimeTick: "writeNodeTimeTick" # GOOSE TODO: remove this
dataNodeTimeTick: "dataNodeTimeTick" dataNodeTimeTick: "dataNodeTimeTick"
queryTimeTick: "queryTimeTick" queryTimeTick: "queryTimeTick"
dataNodeSegStatistics: "dataNodeSegStatistics" dataNodeSegStatistics: "dataNodeSegStatistics"
# old name: statsChannels: "statistic"
queryNodeStats: "query-node-stats" queryNodeStats: "query-node-stats"
# cmd for loadIndex, flush, etc... # cmd for loadIndex, flush, etc...
cmd: "cmd" cmd: "cmd"
...@@ -40,7 +38,6 @@ msgChannel: ...@@ -40,7 +38,6 @@ msgChannel:
masterSubNamePrefix: "master" masterSubNamePrefix: "master"
proxySubNamePrefix: "proxy" proxySubNamePrefix: "proxy"
queryNodeSubNamePrefix: "queryNode" queryNodeSubNamePrefix: "queryNode"
writeNodeSubNamePrefix: "writeNode" # GOOSE TODO: remove this
dataNodeSubNamePrefix: "dataNode" dataNodeSubNamePrefix: "dataNode"
dataServiceSubNamePrefix: "dataService" dataServiceSubNamePrefix: "dataService"
......
...@@ -10,6 +10,5 @@ ...@@ -10,6 +10,5 @@
# or implied. See the License for the specific language governing permissions and limitations under the License. # or implied. See the License for the specific language governing permissions and limitations under the License.
common: common:
defaultPartitionTag: _default #TODO, remove
defaultPartitionName: "_default" defaultPartitionName: "_default"
defaultIndexName: "_default_idx" defaultIndexName: "_default_idx"
...@@ -23,12 +23,10 @@ dataNode: ...@@ -23,12 +23,10 @@ dataNode:
pulsarBufSize: 64 # pulsar chan buffer size pulsarBufSize: 64 # pulsar chan buffer size
insert: insert:
#streamBufSize: 1024 # msgPack chan buffer size
recvBufSize: 1024 # msgPack chan buffer size recvBufSize: 1024 # msgPack chan buffer size
pulsarBufSize: 1024 # pulsar chan buffer size pulsarBufSize: 1024 # pulsar chan buffer size
delete: delete:
#streamBufSize: 1024 # msgPack chan buffer size
recvBufSize: 1024 # msgPack chan buffer size recvBufSize: 1024 # msgPack chan buffer size
pulsarBufSize: 1024 # pulsar chan buffer size pulsarBufSize: 1024 # pulsar chan buffer size
...@@ -38,5 +36,5 @@ dataNode: ...@@ -38,5 +36,5 @@ dataNode:
flush: flush:
# max buffer size to flush # max buffer size to flush
insertBufSize: 32000 insertBufSize: 32000 # number of rows
ddBufSize: 20 ddBufSize: 20
...@@ -3,11 +3,9 @@ dataservice: ...@@ -3,11 +3,9 @@ dataservice:
address: "127.0.0.1" address: "127.0.0.1"
port: 13333 port: 13333
segment: segment:
# old name: segmentThreshold: 536870912
size: 512 # MB size: 512 # MB
sizeFactor: 0.75 sizeFactor: 0.75
defaultSizePerRecord: 1024 defaultSizePerRecord: 1024
# old name: segmentExpireDuration: 2000
IDAssignExpiration: 2000 # ms IDAssignExpiration: 2000 # ms
insertChannelNum: 2 insertChannelNum: 2
dataNodeNum: 1 dataNodeNum: 1
...@@ -10,18 +10,6 @@ ...@@ -10,18 +10,6 @@
# or implied. See the License for the specific language governing permissions and limitations under the License. # or implied. See the License for the specific language governing permissions and limitations under the License.
master: master:
timeSync:
softTimeTickBarrierInterval: 500 # ms
segment:
# old name: segmentThreshold: 536870912
size: 512 # MB
sizeFactor: 0.75
defaultSizePerRecord: 1024
minIDAssignCnt: 1024
maxIDAssignCnt: 16384
# old name: segmentExpireDuration: 2000
IDAssignExpiration: 2000 # ms
maxPartitionNum: 4096 maxPartitionNum: 4096
minSegmentSizeToEnableIndex: 1024 minSegmentSizeToEnableIndex: 1024
nodeID: 100 nodeID: 100
......
...@@ -14,7 +14,6 @@ proxyNode: ...@@ -14,7 +14,6 @@ proxyNode:
msgStream: msgStream:
insert: insert:
#streamBufSize: 1024 # msgPack chan buffer size
bufSize: 1024 # msgPack chan buffer size bufSize: 1024 # msgPack chan buffer size
search: search:
......
...@@ -20,7 +20,6 @@ queryNode: ...@@ -20,7 +20,6 @@ queryNode:
msgStream: msgStream:
insert: insert:
#streamBufSize: 1024 # msgPack chan buffer size
recvBufSize: 1024 # msgPack chan buffer size recvBufSize: 1024 # msgPack chan buffer size
pulsarBufSize: 1024 # pulsar chan buffer size pulsarBufSize: 1024 # pulsar chan buffer size
...@@ -29,7 +28,6 @@ queryNode: ...@@ -29,7 +28,6 @@ queryNode:
pulsarBufSize: 64 # pulsar chan buffer size pulsarBufSize: 64 # pulsar chan buffer size
delete: delete:
#streamBufSize: 1024 # msgPack chan buffer size
recvBufSize: 1024 # msgPack chan buffer size recvBufSize: 1024 # msgPack chan buffer size
pulsarBufSize: 1024 # pulsar chan buffer size pulsarBufSize: 1024 # pulsar chan buffer size
......
...@@ -10,8 +10,7 @@ ...@@ -10,8 +10,7 @@
# or implied. See the License for the specific language governing permissions and limitations under the License. # or implied. See the License for the specific language governing permissions and limitations under the License.
nodeID: # will be deprecated after v0.2 nodeID: # will be deprecated later
proxyIDList: [0]
queryNodeIDList: [1] queryNodeIDList: [1]
dataNodeIDList: [3] dataNodeIDList: [3]
...@@ -22,10 +21,7 @@ etcd: ...@@ -22,10 +21,7 @@ etcd:
metaSubPath: meta # metaRootPath = rootPath + '/' + metaSubPath metaSubPath: meta # metaRootPath = rootPath + '/' + metaSubPath
kvSubPath: kv # kvRootPath = rootPath + '/' + kvSubPath kvSubPath: kv # kvRootPath = rootPath + '/' + kvSubPath
segFlushMetaSubPath: datanode/segment # Full Path = rootPath/metaSubPath/segFlushMetaSubPath segFlushMetaSubPath: datanode/segment # Full Path = rootPath/metaSubPath/segFlushMetaSubPath
ddlFlushMetaSubPath: datanode/ddl # Full Path = rootPath/metaSubPaht/ddlFlushMetaSubPath ddlFlushMetaSubPath: datanode/ddl # Full Path = rootPath/metaSubPath/ddlFlushMetaSubPath
writeNodeSegKvSubPath: writer/segment # GOOSE TODO: remove this
writeNodeDDLKvSubPath: writer/ddl # GOOSE TODO: remove this
segThreshold: 10000
minio: minio:
address: localhost address: localhost
...@@ -38,11 +34,7 @@ minio: ...@@ -38,11 +34,7 @@ minio:
pulsar: pulsar:
address: localhost address: localhost
port: 6650 port: 6650
rest-port: 18080 # keep same with pulsar container maxMessageSize: 5242880 # 5 * 1024 * 1024 Bytes
maxMessageSize: 5242880 # 5 * 1024 * 1024
authentication: false
user: user-default
token: eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJKb2UifQ.ipevRNuRP6HflG8cFKnmUPtypruRC4fb1DWtoLL62SY
master: master:
address: localhost address: localhost
...@@ -60,7 +52,7 @@ proxyService: ...@@ -60,7 +52,7 @@ proxyService:
port: 21122 port: 21122
queryNode: queryNode:
gracefulTime: 5000 #ms gracefulTime: 5000 # ms, for search
port: 21123 port: 21123
indexService: indexService:
...@@ -78,11 +70,11 @@ dataNode: ...@@ -78,11 +70,11 @@ dataNode:
port: 21124 port: 21124
log: log:
level: debug level: debug # info, warn, error, panic, fatal, dpanic,
file: file:
rootPath: "" rootPath: "" # default to stdout, stderr
maxSize: 300 # MB maxSize: 300 # MB
maxAge: 10 # day maxAge: 10 # day
maxBackups: 20 maxBackups: 20
dev: true dev: true # false, change behaviour of dpaniclevel
format: text # text/json format: text # text/json
...@@ -403,7 +403,7 @@ type GlobalParamsTable struct { ...@@ -403,7 +403,7 @@ type GlobalParamsTable struct {
MaxNameLength int64 MaxNameLength int64
MaxFieldNum int64 MaxFieldNum int64
MaxDimension int64 MaxDimension int64
DefaultPartitionTag string DefaultPartitionName string
DefaultIndexName string DefaultIndexName string
} }
......
...@@ -946,7 +946,7 @@ func (node *ProxyNode) Insert(ctx context.Context, request *milvuspb.InsertReque ...@@ -946,7 +946,7 @@ func (node *ProxyNode) Insert(ctx context.Context, request *milvuspb.InsertReque
rowIDAllocator: node.idAllocator, rowIDAllocator: node.idAllocator,
} }
if len(it.PartitionName) <= 0 { if len(it.PartitionName) <= 0 {
it.PartitionName = Params.DefaultPartitionTag it.PartitionName = Params.DefaultPartitionName
} }
err := node.sched.DmQueue.Enqueue(it) err := node.sched.DmQueue.Enqueue(it)
......
...@@ -54,7 +54,7 @@ type ParamTable struct { ...@@ -54,7 +54,7 @@ type ParamTable struct {
MaxNameLength int64 MaxNameLength int64
MaxFieldNum int64 MaxFieldNum int64
MaxDimension int64 MaxDimension int64
DefaultPartitionTag string DefaultPartitionName string
DefaultIndexName string DefaultIndexName string
PulsarMaxMessageSize int PulsarMaxMessageSize int
...@@ -136,7 +136,6 @@ func (pt *ParamTable) initParams() { ...@@ -136,7 +136,6 @@ func (pt *ParamTable) initParams() {
pt.initPulsarAddress() pt.initPulsarAddress()
pt.initQueryNodeIDList() pt.initQueryNodeIDList()
pt.initQueryNodeNum() pt.initQueryNodeNum()
// pt.initProxyID()
pt.initTimeTickInterval() pt.initTimeTickInterval()
pt.initInsertChannelNames() pt.initInsertChannelNames()
pt.initDeleteChannelNames() pt.initDeleteChannelNames()
...@@ -154,7 +153,7 @@ func (pt *ParamTable) initParams() { ...@@ -154,7 +153,7 @@ func (pt *ParamTable) initParams() {
pt.initMaxNameLength() pt.initMaxNameLength()
pt.initMaxFieldNum() pt.initMaxFieldNum()
pt.initMaxDimension() pt.initMaxDimension()
pt.initDefaultPartitionTag() pt.initDefaultPartitionName()
pt.initDefaultIndexName() pt.initDefaultIndexName()
pt.initPulsarMaxMessageSize() pt.initPulsarMaxMessageSize()
...@@ -191,18 +190,6 @@ func (pt *ParamTable) initQueryNodeIDList() []UniqueID { ...@@ -191,18 +190,6 @@ func (pt *ParamTable) initQueryNodeIDList() []UniqueID {
return ret return ret
} }
func (pt *ParamTable) initProxyID() {
proxyID, err := pt.Load("_proxyID")
if err != nil {
panic(err)
}
ID, err := strconv.Atoi(proxyID)
if err != nil {
panic(err)
}
pt.ProxyID = UniqueID(ID)
}
func (pt *ParamTable) initTimeTickInterval() { func (pt *ParamTable) initTimeTickInterval() {
intervalStr, err := pt.Load("proxyNode.timeTickInterval") intervalStr, err := pt.Load("proxyNode.timeTickInterval")
if err != nil { if err != nil {
...@@ -311,11 +298,6 @@ func (pt *ParamTable) initProxySubName() { ...@@ -311,11 +298,6 @@ func (pt *ParamTable) initProxySubName() {
if err != nil { if err != nil {
panic(err) panic(err)
} }
pt.ProxySubName = prefix
// proxyIDStr, err := pt.Load("_proxyID")
// if err != nil {
// panic(err)
// }
pt.ProxySubName = prefix + "-" + strconv.Itoa(int(pt.ProxyID)) pt.ProxySubName = prefix + "-" + strconv.Itoa(int(pt.ProxyID))
} }
...@@ -393,12 +375,12 @@ func (pt *ParamTable) initMaxDimension() { ...@@ -393,12 +375,12 @@ func (pt *ParamTable) initMaxDimension() {
pt.MaxDimension = maxDimension pt.MaxDimension = maxDimension
} }
func (pt *ParamTable) initDefaultPartitionTag() { func (pt *ParamTable) initDefaultPartitionName() {
tag, err := pt.Load("common.defaultPartitionTag") name, err := pt.Load("common.defaultPartitionName")
if err != nil { if err != nil {
panic(err) panic(err)
} }
pt.DefaultPartitionTag = tag pt.DefaultPartitionName = name
} }
func (pt *ParamTable) initDefaultIndexName() { func (pt *ParamTable) initDefaultIndexName() {
......
...@@ -159,7 +159,7 @@ func (it *InsertTask) Execute(ctx context.Context) error { ...@@ -159,7 +159,7 @@ func (it *InsertTask) Execute(ctx context.Context) error {
return err return err
} }
} else { } else {
partitionID, err = globalMetaCache.GetPartitionID(ctx, collectionName, Params.DefaultPartitionTag) partitionID, err = globalMetaCache.GetPartitionID(ctx, collectionName, Params.DefaultPartitionName)
if err != nil { if err != nil {
return err return err
} }
......
...@@ -1122,7 +1122,6 @@ func TestSegmentLoad_Search_Vector(t *testing.T) { ...@@ -1122,7 +1122,6 @@ func TestSegmentLoad_Search_Vector(t *testing.T) {
// mock write insert bin log // mock write insert bin log
keyPrefix := path.Join("query-node-seg-manager-test-minio-prefix", strconv.FormatInt(collectionID, 10), strconv.FormatInt(partitionID, 10)) keyPrefix := path.Join("query-node-seg-manager-test-minio-prefix", strconv.FormatInt(collectionID, 10), strconv.FormatInt(partitionID, 10))
Params.WriteNodeSegKvSubPath = keyPrefix
node := newQueryNodeMock() node := newQueryNodeMock()
defer node.Stop() defer node.Stop()
......
...@@ -17,7 +17,6 @@ type ParamTable struct { ...@@ -17,7 +17,6 @@ type ParamTable struct {
PulsarAddress string PulsarAddress string
ETCDAddress string ETCDAddress string
MetaRootPath string MetaRootPath string
WriteNodeSegKvSubPath string
QueryNodeIP string QueryNodeIP string
QueryNodePort int64 QueryNodePort int64
...@@ -106,7 +105,6 @@ func (p *ParamTable) Init() { ...@@ -106,7 +105,6 @@ func (p *ParamTable) Init() {
p.initPulsarAddress() p.initPulsarAddress()
p.initETCDAddress() p.initETCDAddress()
p.initMetaRootPath() p.initMetaRootPath()
p.initWriteNodeSegKvSubPath()
p.initGracefulTime() p.initGracefulTime()
p.initMsgChannelSubName() p.initMsgChannelSubName()
...@@ -312,14 +310,6 @@ func (p *ParamTable) initMetaRootPath() { ...@@ -312,14 +310,6 @@ func (p *ParamTable) initMetaRootPath() {
p.MetaRootPath = rootPath + "/" + subPath p.MetaRootPath = rootPath + "/" + subPath
} }
func (p *ParamTable) initWriteNodeSegKvSubPath() {
subPath, err := p.Load("etcd.writeNodeSegKvSubPath")
if err != nil {
panic(err)
}
p.WriteNodeSegKvSubPath = subPath + "/"
}
func (p *ParamTable) initGracefulTime() { func (p *ParamTable) initGracefulTime() {
p.GracefulTime = p.ParseInt64("queryNode.gracefulTime") p.GracefulTime = p.ParseInt64("queryNode.gracefulTime")
} }
......
...@@ -329,32 +329,14 @@ func (gp *BaseTable) ParseInt(key string) int { ...@@ -329,32 +329,14 @@ func (gp *BaseTable) ParseInt(key string) int {
return value return value
} }
// GOOSE TODO: remove writenode
func (gp *BaseTable) WriteNodeIDList() []UniqueID {
proxyIDStr, err := gp.Load("nodeID.dataNodeIDList")
if err != nil {
panic(err)
}
var ret []UniqueID
proxyIDs := strings.Split(proxyIDStr, ",")
for _, i := range proxyIDs {
v, err := strconv.Atoi(i)
if err != nil {
log.Panicf("load write node id list error, %s", err.Error())
}
ret = append(ret, UniqueID(v))
}
return ret
}
func (gp *BaseTable) DataNodeIDList() []UniqueID { func (gp *BaseTable) DataNodeIDList() []UniqueID {
proxyIDStr, err := gp.Load("nodeID.dataNodeIDList") datanodeIDStr, err := gp.Load("nodeID.dataNodeIDList")
if err != nil { if err != nil {
panic(err) panic(err)
} }
var ret []UniqueID var ret []UniqueID
proxyIDs := strings.Split(proxyIDStr, ",") datanodeIDs := strings.Split(datanodeIDStr, ",")
for _, i := range proxyIDs { for _, i := range datanodeIDs {
v, err := strconv.Atoi(i) v, err := strconv.Atoi(i)
if err != nil { if err != nil {
log.Panicf("load write node id list error, %s", err.Error()) log.Panicf("load write node id list error, %s", err.Error())
...@@ -364,23 +346,6 @@ func (gp *BaseTable) DataNodeIDList() []UniqueID { ...@@ -364,23 +346,6 @@ func (gp *BaseTable) DataNodeIDList() []UniqueID {
return ret return ret
} }
func (gp *BaseTable) ProxyIDList() []UniqueID {
proxyIDStr, err := gp.Load("nodeID.proxyIDList")
if err != nil {
panic(err)
}
var ret []UniqueID
proxyIDs := strings.Split(proxyIDStr, ",")
for _, i := range proxyIDs {
v, err := strconv.Atoi(i)
if err != nil {
log.Panicf("load proxy id list error, %s", err.Error())
}
ret = append(ret, UniqueID(v))
}
return ret
}
func (gp *BaseTable) QueryNodeIDList() []UniqueID { func (gp *BaseTable) QueryNodeIDList() []UniqueID {
queryNodeIDStr, err := gp.Load("nodeID.queryNodeIDList") queryNodeIDStr, err := gp.Load("nodeID.queryNodeIDList")
if err != nil { if err != nil {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册