使用 Helm 图表配置 Milvus
本主题介绍如何使用 Helm Charts 配置 Milvus 组件及其第三方依赖项。
说明
在当前版本中,所有参数仅在 Milvus 重新启动后生效。
通过配置文件配置 Milvus
您可以通过配置文件values.yaml 配置 Milvus。
下载配置文件
直接或使用以下命令下载 values.yaml 。
$ wget https://raw.githubusercontent.com/milvus-io/milvus-helm/master/charts/milvus/values.yaml
修改配置文件
通过调整values.yaml 中的相应参数,配置 Milvus 实例,以适应应用场景。
具体来说,在values.yaml 中搜索extraConfigFiles ,然后将配置文件放入该部分,如下所示:
# Extra configs for milvus.yaml
# If set, this config will merge into milvus.yaml
# Please follow the config structure in the milvus.yaml
# at https://github.com/milvus-io/milvus/blob/master/configs/milvus.yaml
# Note: this config will be the top priority which will override the config
# in the image and helm chart.
extraConfigFiles:
user.yaml: |+
# For example to set the graceful time for query nodes
# queryNodes:
# gracefulTime: 10
查看以下链接,了解有关各参数的更多信息。
排序方式
| 依赖项 | 组件 |
|---|---|
|
|
| 用途 | 参数 |
|---|---|
| 性能调整 |
queryNode.gracefulTimerootCoord.minSegmentSizeToEnableIndexdataCoord.segment.maxSizedataCoord.segment.sealProportiondataNode.flush.insertBufSizequeryCoord.autoHandoffqueryCoord.autoBalancelocalStorage.enabled
| | 数据和元 |
common.retentionDurationrocksmq.retentionTimeInMinutesdataCoord.enableCompactiondataCoord.enableGarbageCollectiondataCoord.gc.dropTolerance
| | 管理 |
| | 配额和限制 |
quotaAndLimits.ddl.enabledquotaAndLimits.ddl.collectionRatequotaAndLimits.ddl.partitionRatequotaAndLimits.indexRate.enabledquotaAndLimits.indexRate.maxquotaAndLimits.flushRate.enabledquotaAndLimits.flush.maxquotaAndLimits.compation.enabledquotaAndLimits.compaction.maxquotaAndLimits.dml.enabledquotaAndLimits.dml.insertRate.maxquotaAndLimits.dml.deleteRate.maxquotaAndLimits.dql.enabledquotaAndLimits.dql.searchRate.maxquotaAndLimits.dql.queryRate.maxquotaAndLimits.limitWriting.ttProtection.enabledquotaAndLimits.limitWriting.ttProtection.maxTimeTickDelayquotaAndLimits.limitWriting.memProtection.enabledquotaAndLimits.limitWriting.memProtection.dataNodeMemoryLowWaterLevelquotaAndLimits.limitWriting.memProtection.queryNodeMemoryLowWaterLevelquotaAndLimits.limitWriting.memProtection.dataNodeMemoryHighWaterLevelquotaAndLimits.limitWriting.memProtection.queryNodeMemoryHighWaterLevelquotaAndLimits.limitWriting.diskProtection.enabledquotaAndLimits.limitWriting.diskProtection.diskQuotaquotaAndLimits.limitWriting.forceDenyquotaAndLimits.limitReading.queueProtection.enabledquotaAndLimits.limitReading.queueProtection.nqInQueueThresholdquotaAndLimits.limitReading.queueProtection.queueLatencyThresholdquotaAndLimits.limitReading.resultProtection.enabledquotaAndLimits.limitReading.resultProtection.maxReadResultRatequotaAndLimits.limitReading.forceDeny
|
有关专门针对 Kubernetes 安装的其他参数,请参阅Milvus Helm 图表配置。
启动 Milvus
修改完配置文件后,就可以用该文件启动 Milvus。
$ helm upgrade my-release milvus/milvus -f values.yaml
通过命令行配置 Milvus
或者,你也可以使用 Helm 命令直接升级 Milvus 配置。
检查可配置参数
升级前,可以使用 Helm 图表检查可配置参数。
$ helm show values milvus/milvus
启动 Milvus
在升级命令中添加--values 或--set ,配置并启动 Milvus。
# For instance, upgrade the Milvus cluster with compaction disabled
$ helm upgrade my-release milvus/milvus --set dataCoord.enableCompaction=false
下一步
-
如果你想了解如何监控 Milvus 服务并创建警报:
-
如果您正在寻找如何分配资源的说明: