配额与限制配置
QuotaConfig,Milvus 配额和限制的配置。
默认情况下,我们启用
-
TT 保护;
-
内存保护
-
磁盘配额保护。
可以启用
-
DML 吞吐量限制;
-
DDL、DQL qps/rps 限制;
-
DQL 队列长度/延迟保护;
-
DQL 结果速率保护;
如有必要,也可以手动强制拒绝 RW 请求。
quotaAndLimits.enabled
| 说明 | 默认值 |
|---|---|
| true "表示启用配额和限制,"false "表示禁用。 | false |
quotaAndLimits.quotaCenterCollectInterval
| 说明 | 默认值 |
|---|---|
| 3 |
quotaAndLimits.limits.allocRetryTimes
| 说明 | 默认值 |
|---|---|
| 从速率限制删除分配转发数据失败时的重试次数 | 15 |
quotaAndLimits.limits.allocWaitInterval
| 说明 | 默认值 |
|---|---|
| 删除分配转发数据速率失败时的重试等待时间,毫秒 | 1000 |
quotaAndLimits.limits.complexDeleteLimitEnable
| 说明 | 默认值 |
|---|---|
| 是否通过限制器复杂删除检查前向数据 | false |
quotaAndLimits.limits.maxCollectionNumPerDB
| 说明 | 默认值 |
|---|---|
| 每个数据库的最大 Collection 数量。 | 65536 |
quotaAndLimits.limits.maxInsertSize
| 说明 | 默认值 |
|---|---|
| 单个插入请求的最大大小,以字节为单位,-1 表示无限制 | -1 |
quotaAndLimits.limits.maxResourceGroupNumOfQueryNode
| 说明 | 默认值 |
|---|---|
| QueryNode 资源组的最大数量 | 1024 |
quotaAndLimits.limits.maxGroupSize
| 说明 | 默认值 |
|---|---|
| 按搜索分组时单个组的最大大小 | 10 |
quotaAndLimits.ddl.enabled
| 说明 | 默认值 |
|---|---|
| 是否启用 DDL 请求限流。 | false |
quotaAndLimits.ddl.collectionRate
| 说明 | 默认值 |
|---|---|
| -1 |
quotaAndLimits.ddl.partitionRate
| 说明 | 默认值 |
|---|---|
| -1 |
quotaAndLimits.ddl.db.collectionRate
| 说明 | 默认值 |
|---|---|
| db 级别的 qps,默认无限制,用于 CreateCollection、DropCollection、LoadCollection、ReleaseCollection 的速率 | -1 |
quotaAndLimits.ddl.db.partitionRate
| 说明 | 默认值 |
|---|---|
| 数据库级别的 qps,默认无限制,创建 Partition、删除 Partition、加载 Partition、释放 Partition 的速率 | -1 |
quotaAndLimits.indexRate.enabled
| 说明 | 默认值 |
|---|---|
| 是否启用与索引相关的请求节流。 | false |
quotaAndLimits.indexRate.max
| 说明 | 默认值 |
|---|---|
| -1 |
quotaAndLimits.indexRate.db.max
| 说明 | 默认值 |
|---|---|
| db 级别的 qps,默认无限制,CreateIndex、DropIndex 的速率 | -1 |
quotaAndLimits.flushRate.enabled
| 说明 | 默认值 |
|---|---|
| 是否启用 Flush 请求节流。 | true |
quotaAndLimits.flushRate.max
| 说明 | 默认值 |
|---|---|
| -1 |
quotaAndLimits.flushRate.collection.max
| 说明 | 默认值 |
|---|---|
| qps,默认无限制,在 Collection 级别的 Flush 率。 | 0.1 |
quotaAndLimits.flushRate.db.max
| 说明 | 默认值 |
|---|---|
| 数据库级的 qps,默认无限制,Flush 速率 | -1 |
quotaAndLimits.compactionRate.enabled
| 说明 | 默认值 |
|---|---|
| 是否启用手动 Compaction 请求节流。 | false |
quotaAndLimits.compactionRate.max
| 说明 | 默认值 |
|---|---|
| -1 |
quotaAndLimits.compactionRate.db.max
| 说明 | 默认值 |
|---|---|
| db 级别的 qps,默认无限制,用于手动 Compaction 的速率 | -1 |
quotaAndLimits.dml.enabled
| 说明 | 默认值 |
|---|---|
| 是否启用 DML 请求节流。 | false |
quotaAndLimits.dml.insertRate.max
| 说明 | 默认值 |
|---|---|
| -1 |
quotaAndLimits.dml.insertRate.db.max
| 说明 | 默认值 |
|---|---|
| MB/秒,默认无限制 | -1 |
quotaAndLimits.dml.insertRate.collection.max
| 说明 | 默认值 |
|---|---|
| -1 |
quotaAndLimits.dml.insertRate.partition.max
| 说明 | 默认值 |
|---|---|
| MB/s,默认无限制 | -1 |
quotaAndLimits.dml.upsertRate.max
| 说明 | 默认值 |
|---|---|
| MB/s,默认无限制 | -1 |
quotaAndLimits.dml.upsertRate.db.max
| 说明 | 默认值 |
|---|---|
| MB/s,默认无限制 | -1 |
quotaAndLimits.dml.upsertRate.collection.max
| 说明 | 默认值 |
|---|---|
| MB/s,默认无限制 | -1 |
quotaAndLimits.dml.upsertRate.partition.max
| 说明 | 默认值 |
|---|---|
| MB/s,默认无限制 | -1 |
quotaAndLimits.dml.deleteRate.max
| 说明 | 默认值 |
|---|---|
| -1 |
quotaAndLimits.dml.deleteRate.db.max
| 说明 | 默认值 |
|---|---|
| MB/s, 默认无限制 | -1 |
quotaAndLimits.dml.deleteRate.collection.max
| 说明 | 默认值 |
|---|---|
| -1 |
quotaAndLimits.dml.deleteRate.partition.max
| 说明 | 默认值 |
|---|---|
| MB/s,默认无限制 | -1 |
quotaAndLimits.dml.bulkLoadRate.max
| 说明 | 默认值 |
|---|---|
| MB/s,默认无限制,暂不支持。TODO:限制 bulkLoad 速率 | -1 |
quotaAndLimits.dml.bulkLoadRate.db.max
| 说明 | 默认值 |
|---|---|
| MB/s,默认无限制,暂不支持。TODO:限制数据库批量加载速率 | -1 |
quotaAndLimits.dml.bulkLoadRate.collection.max
| 说明 | 默认值 |
|---|---|
| MB/s,默认无限制,暂不支持。TODO:限制 Collection 批量加载速率 | -1 |
quotaAndLimits.dml.bulkLoadRate.partition.max
| 说明 | 默认值 |
|---|---|
| MB/s,默认无限制,暂不支持。TODO:限制 Partition 批量加载速率 | -1 |
quotaAndLimits.dql.enabled
| 说明 | 默认值 |
|---|---|
| 是否启用 DQL 请求节流。 | false |
quotaAndLimits.dql.searchRate.max
| 说明 | 默认值 |
|---|---|
| -1 |
quotaAndLimits.dql.searchRate.db.max
| 说明 | 默认值 |
|---|---|
| vps(每秒向量数),默认无限制 | -1 |
quotaAndLimits.dql.searchRate.collection.max
| 说明 | 默认值 |
|---|---|
| -1 |
quotaAndLimits.dql.searchRate.partition.max
| 说明 | 默认值 |
|---|---|
| vps(每秒向量数),默认无限制 | -1 |
quotaAndLimits.dql.queryRate.max
| 说明 | 默认值 |
|---|---|
| -1 |
quotaAndLimits.dql.queryRate.db.max
| 说明 | 默认值 |
|---|---|
| qps,默认无限制 | -1 |
quotaAndLimits.dql.queryRate.collection.max
| 说明 | 默认值 |
|---|---|
| -1 |
quotaAndLimits.dql.queryRate.partition.max
| 说明 | 默认值 |
|---|---|
| qps,默认无限制 | -1 |
quotaAndLimits.limitWriting.forceDeny
| 说明 | 默认值 |
|---|---|
| false |
quotaAndLimits.limitWriting.ttProtection.maxTimeTickDelay
| 描述 | 默认值 |
|---|---|
| 300 |
quotaAndLimits.limitWriting.memProtection.enabled
| 说明 | 默认值 |
|---|---|
| true |
quotaAndLimits.limitWriting.memProtection.dataNodeMemoryLowWaterLevel
| 说明 | 默认值 |
|---|---|
| (0,1],DataNode 中的内存低水位 | 0.85 |
quotaAndLimits.limitWriting.memProtection.dataNodeMemoryHighWaterLevel
| 说明 | 默认值 |
|---|---|
| (0,1],DataNode 中的内存高水位 | 0.95 |
quotaAndLimits.limitWriting.memProtection.queryNodeMemoryLowWaterLevel
| 说明 | 默认值 |
|---|---|
| (0,1],QueryNode 中的内存低水位 | 0.85 |
quotaAndLimits.limitWriting.memProtection.queryNodeMemoryHighWaterLevel
| 说明 | 默认值 |
|---|---|
| (0,1],QueryNode 中的内存高水位 | 0.95 |
quotaAndLimits.limitWriting.growingSegmentsSizeProtection.enabled
| 说明 | 默认值 |
|---|---|
| false |
quotaAndLimits.limitWriting.diskProtection.enabled
| 说明 | 默认值 |
|---|---|
| 当 Object Storage 的总文件大小大于 `diskQuota` 时,所有 dml 请求将被拒绝; | true |
quotaAndLimits.limitWriting.diskProtection.diskQuota
| 说明 | 默认值 |
|---|---|
| MB,(0,+inf),默认无限制 | -1 |
quotaAndLimits.limitWriting.diskProtection.diskQuotaPerDB
| 说明 | 默认值 |
|---|---|
| MB,(0,+inf),默认无限制 | -1 |
quotaAndLimits.limitWriting.diskProtection.diskQuotaPerCollection
| 说明 | 默认值 |
|---|---|
| MB,(0,+inf),默认无限制 | -1 |
quotaAndLimits.limitWriting.diskProtection.diskQuotaPerPartition
| 说明 | 默认值 |
|---|---|
| MB,(0,+inf),默认无限制 | -1 |
quotaAndLimits.limitWriting.l0SegmentsRowCountProtection.enabled
| 说明 | 默认值 |
|---|---|
| 启用 l0 段行数配额的开关 | false |
quotaAndLimits.limitWriting.l0SegmentsRowCountProtection.lowWaterLevel
| 说明 | 默认值 |
|---|---|
| l0 段行数配额,低水位 | 30000000 |
quotaAndLimits.limitWriting.l0SegmentsRowCountProtection.highWaterLevel
| 说明 | 默认值 |
|---|---|
| l0 段行数配额,高水位 | 50000000 |
quotaAndLimits.limitWriting.deleteBufferRowCountProtection.enabled
| 说明 | 默认值 |
|---|---|
| 启用删除缓冲区行数配额的开关 | false |
quotaAndLimits.limitWriting.deleteBufferRowCountProtection.lowWaterLevel
| 说明 | 默认值 |
|---|---|
| 删除缓冲区行数配额,低水位 | 32768 |
quotaAndLimits.limitWriting.deleteBufferRowCountProtection.highWaterLevel
| 说明 | 默认值 |
|---|---|
| 删除缓冲区行数配额,高水位 | 65536 |
quotaAndLimits.limitWriting.deleteBufferSizeProtection.enabled
| 说明 | 默认值 |
|---|---|
| 启用删除缓冲区大小配额的开关 | false |
quotaAndLimits.limitWriting.deleteBufferSizeProtection.lowWaterLevel
| 说明 | 默认值 |
|---|---|
| 删除缓冲区大小配额,低水位 | 134217728 |
quotaAndLimits.limitWriting.deleteBufferSizeProtection.highWaterLevel
| 说明 | 默认值 |
|---|---|
| 删除缓冲区大小配额,高水位 | 268435456 |
quotaAndLimits.limitReading.forceDeny
| 说明 | 默认值 |
|---|---|
| false |