Remove unused config item in dataservice and datanode

Signed-off-by: sunby <bingyi.sun@zilliz.com>
This commit is contained in:
sunby 2021-04-19 19:28:45 +08:00 committed by yefu.chen
parent 9ccaff8005
commit b79a408491
4 changed files with 1 additions and 14 deletions

View File

@ -30,10 +30,6 @@ dataNode:
recvBufSize: 1024 # msgPack chan buffer size
pulsarBufSize: 1024 # pulsar chan buffer size
segStatistics:
recvBufSize: 64
updateInterval: 1000 # milliseconds
flush:
# max buffer size to flush
insertBufSize: 32000 # number of rows

View File

@ -1,11 +1,8 @@
dataservice:
nodeID: 14040
address: "127.0.0.1"
port: 13333
segment:
size: 512 # MB
sizeFactor: 0.75
defaultSizePerRecord: 1024
IDAssignExpiration: 2000 # ms
insertChannelNum: 2
dataNodeNum: 1

View File

@ -33,7 +33,6 @@ type ParamTable struct {
// segment
SegmentSize float64
SegmentSizeFactor float64
DefaultRecordSize int64
SegIDAssignExpiration int64
InsertChannelPrefixName string
@ -72,7 +71,6 @@ func (p *ParamTable) Init() {
p.initSegmentSize()
p.initSegmentSizeFactor()
p.initDefaultRecordSize()
p.initSegIDAssignExpiration()
p.initInsertChannelPrefixName()
p.initInsertChannelNum()
@ -139,10 +137,6 @@ func (p *ParamTable) initSegmentSizeFactor() {
p.SegmentSizeFactor = p.ParseFloat("dataservice.segment.sizeFactor")
}
func (p *ParamTable) initDefaultRecordSize() {
p.DefaultRecordSize = p.ParseInt64("dataservice.segment.defaultSizePerRecord")
}
func (p *ParamTable) initSegIDAssignExpiration() {
p.SegIDAssignExpiration = p.ParseInt64("dataservice.segment.IDAssignExpiration") //ms
}

View File

@ -45,7 +45,7 @@ func (pt *ParamTable) LoadFromEnv() {
}
func (pt *ParamTable) initPort() {
pt.Port = pt.ParseInt("dataservice.port")
pt.Port = pt.ParseInt("dataService.port")
}
func (pt *ParamTable) initMasterAddress() {