mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-12-02 03:48:37 +08:00
Signed-off-by: MrPresent-Han <chun.han@zilliz.com>
This commit is contained in:
parent
1fff8d2c66
commit
68ecf49ed5
@ -311,7 +311,7 @@ func (loader *segmentLoader) requestResource(ctx context.Context, infos ...*quer
|
||||
loader.mut.Lock()
|
||||
defer loader.mut.Unlock()
|
||||
|
||||
poolCap := runtime.NumCPU() * paramtable.Get().CommonCfg.ThreadCoreCoefficient.GetAsInt()
|
||||
poolCap := runtime.NumCPU() * paramtable.Get().CommonCfg.MiddlePriorityThreadCoreCoefficient.GetAsInt()
|
||||
if loader.committedResource.WorkNum >= poolCap {
|
||||
return resource, 0, merr.WrapErrServiceRequestLimitExceeded(int32(poolCap))
|
||||
} else if loader.committedResource.MemorySize+memoryUsage >= totalMemory {
|
||||
|
Loading…
Reference in New Issue
Block a user