Skip to content

Commit d444626

Browse files
committed
qos
1 parent 480bdc2 commit d444626

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

internal/services/controllers/olap/controller.go

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -257,16 +257,19 @@ func (o *OLAPControllerImpl) Start() (func() error, error) {
257257
if err != nil {
258258
return nil, err
259259
}
260-
heavyReadMQ.SetQOS(2000)
260+
261+
migrationDisabled := os.Getenv("MIGRATION_DISABLE_EXTRA") == "true"
262+
263+
if !migrationDisabled {
264+
heavyReadMQ.SetQOS(2000)
265+
}
261266

262267
o.s.Start()
263268

264269
mqBuffer := msgqueue.NewMQSubBuffer(msgqueue.OLAP_QUEUE, heavyReadMQ, o.handleBufferedMsgs)
265270

266271
wg := sync.WaitGroup{}
267272

268-
migrationDisabled := os.Getenv("MIGRATION_DISABLE_EXTRA") == "true"
269-
270273
// if the environment variable is set, disable the table partition on startup
271274
startupPartitionCtx, cancelStartupPartition := context.WithTimeout(context.Background(), 30*time.Second)
272275
defer cancelStartupPartition()

0 commit comments

Comments
 (0)