2021-10-11 13:15:00 +00:00
# Licensed to the LF AI & Data foundation under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
2020-11-18 09:32:52 +00:00
# with the License. You may obtain a copy of the License at
#
2021-10-11 13:15:00 +00:00
# http://www.apache.org/licenses/LICENSE-2.0
2020-11-18 09:32:52 +00:00
#
2021-10-11 13:15:00 +00:00
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
2020-11-18 09:32:52 +00:00
2022-08-11 04:12:38 +00:00
# Related configuration of etcd, used to store Milvus metadata & service discovery.
2020-11-20 09:10:24 +00:00
etcd :
2023-02-23 03:37:46 +00:00
endpoints : localhost:2379
2021-12-07 06:14:08 +00:00
rootPath : by-dev # The root path where data is stored in etcd
2020-11-28 11:06:48 +00:00
metaSubPath : meta # metaRootPath = rootPath + '/' + metaSubPath
kvSubPath : kv # kvRootPath = rootPath + '/' + kvSubPath
2022-02-25 07:03:53 +00:00
log :
2023-02-23 03:37:46 +00:00
level : info # Only supports debug, info, warn, error, panic, or fatal. Default 'info'.
2022-03-10 02:35:59 +00:00
# path is one of:
# - "default" as os.Stderr,
# - "stderr" as os.Stderr,
# - "stdout" as os.Stdout,
# - file path to append server logs to.
2022-04-25 06:17:45 +00:00
# please adjust in embedded Milvus: /tmp/milvus/logs/etcd.log
2022-03-10 02:35:59 +00:00
path : stdout
2022-05-20 04:29:19 +00:00
ssl :
enabled : false # Whether to support ETCD secure connection mode
tlsCert : /path/to/etcd-client.pem # path to your cert file
tlsKey : /path/to/etcd-client-key.pem # path to your key file
2022-10-08 07:38:58 +00:00
tlsCACert : /path/to/ca.pem # path to your CACert file
2022-05-20 04:29:19 +00:00
# TLS min version
# Optional values: 1.0, 1.1, 1.2, 1.3。
2023-02-23 03:37:46 +00:00
# We recommend using version 1.2 and above.
2022-05-20 04:29:19 +00:00
tlsMinVersion : 1.3
2023-02-23 03:37:46 +00:00
use :
embed : false # Whether to enable embedded Etcd (an in-process EtcdServer).
data :
dir: default.etcd # Embedded Etcd only. please adjust in embedded Milvus : /tmp/milvus/etcdData/
2020-11-19 02:46:17 +00:00
2022-08-11 04:12:38 +00:00
metastore :
2023-02-23 03:37:46 +00:00
# Default value: etcd
2023-09-06 23:25:14 +00:00
# Valid values: [etcd, tikv]
2022-08-11 04:12:38 +00:00
type : etcd
2023-09-06 23:25:14 +00:00
# Related configuration of tikv, used to store Milvus metadata.
# Notice that when TiKV is enabled for metastore, you still need to have etcd for service discovery.
# TiKV is a good option when the metadata size requires better horizontal scalability.
tikv :
# Note that the default pd port of tikv is 2379, which conflicts with etcd.
endpoints : 127.0 .0 .1 : 2389
rootPath : by-dev # The root path where data is stored
metaSubPath : meta # metaRootPath = rootPath + '/' + metaSubPath
kvSubPath : kv # kvRootPath = rootPath + '/' + kvSubPath
2022-04-07 14:05:32 +00:00
localStorage :
2023-02-23 03:37:46 +00:00
path: /var/lib/milvus/data/ # please adjust in embedded Milvus : /tmp/milvus/data/
2022-04-07 14:05:32 +00:00
2022-11-01 03:07:35 +00:00
# Related configuration of MinIO/S3/GCS or any other service supports S3 API, which is responsible for data persistence for Milvus.
# We refer to the storage service as MinIO/S3 in the following description for simplicity.
2020-12-08 06:41:04 +00:00
minio :
2021-11-30 06:17:12 +00:00
address : localhost # Address of MinIO/S3
2023-02-23 03:37:46 +00:00
port : 9000 # Port of MinIO/S3
2021-11-30 06:19:10 +00:00
accessKeyID : minioadmin # accessKeyID of MinIO/S3
2021-10-28 11:51:03 +00:00
secretAccessKey : minioadmin # MinIO/S3 encryption string
2024-03-27 06:41:20 +00:00
useSSL : false # Access to MinIO/S3 with SSL
2024-03-21 03:15:20 +00:00
ssl :
tlsCACert : /path/to/public.crt # path to your CACert file, ignore when it is empty
2023-02-23 03:37:46 +00:00
bucketName : a-bucket # Bucket name in MinIO/S3
2021-12-03 05:30:16 +00:00
rootPath : files # The root path where the message is stored in MinIO/S3
2023-02-23 03:37:46 +00:00
# Whether to useIAM role to access S3/GCS instead of access/secret keys
# For more information, refer to
2022-11-01 03:07:35 +00:00
# aws: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_use.html
# gcp: https://cloud.google.com/storage/docs/access-control/iam
2023-06-07 02:00:37 +00:00
# aliyun (ack): https://www.alibabacloud.com/help/en/container-service-for-kubernetes/latest/use-rrsa-to-enforce-access-control
2023-03-09 08:33:52 +00:00
# aliyun (ecs): https://www.alibabacloud.com/help/en/elastic-compute-service/latest/attach-an-instance-ram-role
2022-08-11 04:12:38 +00:00
useIAM : false
2023-06-07 02:00:37 +00:00
# Cloud Provider of S3. Supports: "aws", "gcp", "aliyun".
2022-11-01 03:07:35 +00:00
# You can use "aws" for other cloud provider supports S3 API with signature v4, e.g.: minio
# You can use "gcp" for other cloud provider supports S3 API with signature v2
2023-06-07 02:00:37 +00:00
# You can use "aliyun" for other cloud provider uses virtual host style bucket
2023-03-09 08:33:52 +00:00
# When useIAM enabled, only "aws", "gcp", "aliyun" is supported for now
2023-02-23 03:37:46 +00:00
cloudProvider : aws
2022-11-01 03:07:35 +00:00
# Custom endpoint for fetch IAM role credentials. when useIAM is true & cloudProvider is "aws".
2022-06-02 11:42:03 +00:00
# Leave it empty if you want to use AWS default endpoint
2023-06-07 02:00:37 +00:00
iamEndpoint :
2023-09-04 09:41:48 +00:00
# Log level for aws sdk log.
2023-07-27 11:49:02 +00:00
# Supported level: off, fatal, error, warn, info, debug, trace
2023-09-04 09:25:48 +00:00
logLevel : fatal
2023-08-11 02:37:36 +00:00
# Cloud data center region
2023-11-01 01:00:14 +00:00
region : ''
2023-08-11 02:37:36 +00:00
# Cloud whether use virtual host bucket mode
useVirtualHost : false
2023-10-23 12:08:08 +00:00
# timeout for request time in milliseconds
2023-10-31 01:06:13 +00:00
requestTimeoutMs : 10000
2020-12-08 06:41:04 +00:00
2023-06-07 02:00:37 +00:00
# Milvus supports four MQ: rocksmq(based on RockDB), natsmq(embedded nats-server), Pulsar and Kafka.
# You can change your mq by setting mq.type field.
# If you don't set mq.type field as default, there is a note about enabling priority if we config multiple mq in this file.
2023-09-04 02:01:04 +00:00
# 1. standalone(local) mode: rocksmq(default) > Pulsar > Kafka
2023-06-07 02:00:37 +00:00
# 2. cluster mode: Pulsar(default) > Kafka (rocksmq and natsmq is unsupported in cluster mode)
mq :
# Default value: "default"
# Valid values: [default, pulsar, kafka, rocksmq, natsmq]
type : default
2022-04-12 11:47:33 +00:00
2021-10-11 13:21:47 +00:00
# Related configuration of pulsar, used to manage Milvus logs of recent mutation operations, output streaming log, and provide log publish-subscribe services.
2020-11-20 09:10:24 +00:00
pulsar :
2021-12-01 05:07:53 +00:00
address : localhost # Address of pulsar
2023-02-23 03:37:46 +00:00
port : 6650 # Port of Pulsar
2023-10-24 01:30:10 +00:00
webport : 80 # Web port of pulsar, if you connect directly without proxy, should use 8080
2021-10-11 13:19:40 +00:00
maxMessageSize : 5242880 # 5 * 1024 * 1024 Bytes, Maximum size of each message in pulsar.
2022-11-11 02:55:05 +00:00
tenant : public
namespace : default
2023-08-23 12:46:23 +00:00
requestTimeout : 60 # pulsar client global request timeout in seconds
2023-09-13 04:03:19 +00:00
enableClientMetrics : false # Whether to register pulsar client metrics into milvus metrics path.
2020-11-19 02:46:17 +00:00
2022-04-12 11:47:33 +00:00
# If you want to enable kafka, needs to comment the pulsar configs
2023-02-23 03:37:46 +00:00
# kafka:
2023-06-07 02:00:37 +00:00
# brokerList:
# saslUsername:
# saslPassword:
2024-03-01 10:17:03 +00:00
# saslMechanisms:
# securityProtocol:
2023-09-20 14:01:27 +00:00
# readTimeout: 10 # read message timeout in seconds
2024-02-28 10:43:07 +00:00
# ssl:
# enabled: false # Whether to support kafka secure connection mode
# tlsCert: /path/to/client.pem # path to client's public key
# tlsKey: /path/to/client.key # path to client's private key
# tlsCACert: /path/to/ca-cert # file or directory path to CA certificate
# tlsKeyPassword: "" # private key passphrase for use with private key, if any
2022-04-12 11:47:33 +00:00
2021-06-25 11:44:11 +00:00
rocksmq :
2023-02-23 03:37:46 +00:00
# The path where the message is stored in rocksmq
2022-04-25 06:17:45 +00:00
# please adjust in embedded Milvus: /tmp/milvus/rdb_data
2023-02-23 03:37:46 +00:00
path : /var/lib/milvus/rdb_data
lrucacheratio : 0.06 # rocksdb cache memory ratio
2023-04-27 06:26:35 +00:00
rocksmqPageSize : 67108864 # 64 MB, 64 * 1024 * 1024 bytes, The size of each page of messages in rocksmq
retentionTimeInMinutes : 4320 # 3 days, 3 * 24 * 60 minutes, The retention time of the message in rocksmq.
2021-12-02 10:15:44 +00:00
retentionSizeInMB : 8192 # 8 GB, 8 * 1024 MB, The retention size of the message in rocksmq.
2022-08-29 02:56:55 +00:00
compactionInterval : 86400 # 1 day, trigger rocksdb compaction every day to remove deleted data
2023-07-18 12:18:57 +00:00
# compaction compression type, only support use 0,7.
# 0 means not compress, 7 will use zstd
# len of types means num of rocksdb level.
compressionTypes : [ 0 , 0 , 7 , 7 , 7 ]
2021-06-25 11:44:11 +00:00
2023-06-07 02:00:37 +00:00
# natsmq configuration.
2023-08-14 06:21:32 +00:00
# more detail: https://docs.nats.io/running-a-nats-service/configuration
2023-06-07 02:00:37 +00:00
natsmq :
server : # server side configuration for natsmq.
port : 4222 # 4222 by default, Port for nats server listening.
storeDir : /var/lib/milvus/nats # /var/lib/milvus/nats by default, directory to use for JetStream storage of nats.
maxFileStore : 17179869184 # (B) 16GB by default, Maximum size of the 'file' storage.
maxPayload : 8388608 # (B) 8MB by default, Maximum number of bytes in a message payload.
maxPending : 67108864 # (B) 64MB by default, Maximum number of bytes buffered for a connection Applies to client connections.
initializeTimeout : 4000 # (ms) 4s by default, waiting for initialization of natsmq finished.
monitor :
2023-08-14 06:21:32 +00:00
trace : false # false by default, If true enable protocol trace log messages.
2023-06-07 02:00:37 +00:00
debug : false # false by default, If true enable debug log messages.
logTime : true # true by default, If set to false, log without timestamps.
2023-08-14 06:21:32 +00:00
logFile : /tmp/milvus/logs/nats.log # /tmp/milvus/logs/nats.log by default, Log file path relative to .. of milvus binary if use relative path.
logSizeLimit : 536870912 # (B) 512MB by default, Size in bytes after the log file rolls over to a new one.
2023-07-25 11:33:01 +00:00
retention :
maxAge : 4320 # (min) 3 days by default, Maximum age of any message in the P-channel.
maxBytes : # (B) None by default, How many bytes the single P-channel may contain. Removing oldest messages if the P-channel exceeds this size.
maxMsgs : # None by default, How many message the single P-channel may contain. Removing oldest messages if the P-channel exceeds this limit.
2023-06-07 02:00:37 +00:00
2021-10-12 00:20:33 +00:00
# Related configuration of rootCoord, used to handle data definition language (DDL) and data control language (DCL) requests
2021-06-22 11:08:03 +00:00
rootCoord :
2023-04-27 06:26:35 +00:00
dmlChannelNum : 16 # The number of dml channels created at system startup
2023-06-25 09:20:43 +00:00
maxDatabaseNum : 64 # Maximum number of database
2021-11-12 10:53:11 +00:00
maxPartitionNum : 4096 # Maximum number of partitions in a collection
minSegmentSizeToEnableIndex : 1024 # It's a threshold. When the segment size is less than this value, the segment will not be indexed
2023-02-23 03:37:46 +00:00
enableActiveStandby : false
2023-09-20 03:49:25 +00:00
# can specify ip for example
# ip: 127.0.0.1
ip : # if not specify address, will use the first unicastable address as local ip
2023-02-23 03:37:46 +00:00
port : 53100
grpc :
serverMaxSendSize : 536870912
2024-01-05 07:56:47 +00:00
serverMaxRecvSize : 268435456
2023-02-23 03:37:46 +00:00
clientMaxSendSize : 268435456
2024-01-05 07:56:47 +00:00
clientMaxRecvSize : 536870912
2024-01-16 08:32:53 +00:00
maxGeneralCapacity : 65536
2022-04-03 03:37:29 +00:00
2021-10-11 13:29:27 +00:00
# Related configuration of proxy, used to validate client requests and reduce the returned results.
2021-06-22 11:08:03 +00:00
proxy :
2021-11-12 10:53:11 +00:00
timeTickInterval : 200 # ms, the interval that proxy synchronize the time tick
2023-09-04 09:51:48 +00:00
healthCheckTimeout : 3000 # ms, the interval that to do component healthy check
2021-11-12 10:53:11 +00:00
msgStream :
timeTick :
bufSize : 512
2023-02-23 03:37:46 +00:00
maxNameLength : 255 # Maximum length of name for a collection or alias
# Maximum number of fields in a collection.
2022-12-14 02:39:22 +00:00
# As of today (2.2.0 and after) it is strongly DISCOURAGED to set maxFieldNum >= 64.
# So adjust at your risk!
2023-02-23 03:37:46 +00:00
maxFieldNum : 64
2023-12-28 08:40:46 +00:00
maxVectorFieldNum : 4 # Maximum number of vector fields in a collection, (0, 10].
2023-04-27 14:20:35 +00:00
maxShardNum : 16 # Maximum number of shards in a collection
2023-02-23 03:37:46 +00:00
maxDimension : 32768 # Maximum dimension of a vector
# Whether to produce gin logs.\n
2022-04-25 06:17:45 +00:00
# please adjust in embedded Milvus: false
2023-02-23 03:37:46 +00:00
ginLogging : true
2023-12-06 02:26:35 +00:00
ginLogSkipPaths : "/" # skipped url path for gin log split by comma
2023-02-23 03:37:46 +00:00
maxTaskNum : 1024 # max task number of proxy task queue
2024-03-05 06:50:59 +00:00
connectionCheckIntervalSeconds : 120 # the interval time(in seconds) for connection manager to scan inactive client info
connectionClientInfoTTLSeconds : 86400 # inactive client info TTL duration, in seconds
2024-03-06 04:50:59 +00:00
maxConnectionNum : 10000 # the max client info numbers that proxy should manage, avoid too many client infos.
2022-11-10 09:09:06 +00:00
accessLog :
2023-12-13 10:50:42 +00:00
enable : false
2023-11-28 07:32:31 +00:00
# Log filename, set as "" to use stdout.
2023-12-13 10:50:42 +00:00
# filename: ""
2023-12-05 08:50:47 +00:00
# define formatters for access log by XXX:{format: XXX, method:[XXX,XXX]}
2023-11-28 07:32:31 +00:00
formatters :
2023-12-05 08:50:47 +00:00
# "base" formatter could not set methods
# all method will use "base" formatter default
2023-12-12 03:14:37 +00:00
base :
2023-11-28 07:32:31 +00:00
# will not print access log if set as ""
2023-12-13 10:50:42 +00:00
format : "[$time_now] [ACCESS] <$user_name: $user_addr> $method_name [status: $method_status] [code: $error_code] [sdk: $sdk_version] [msg: $error_msg] [traceID: $trace_id] [timeCost: $time_cost]"
query :
format : "[$time_now] [ACCESS] <$user_name: $user_addr> $method_name [status: $method_status] [code: $error_code] [sdk: $sdk_version] [msg: $error_msg] [traceID: $trace_id] [timeCost: $time_cost] [database: $database_name] [collection: $collection_name] [partitions: $partition_name] [expr: $method_expr]"
2023-11-28 07:32:31 +00:00
# set formatter owners by method name(method was all milvus external interface)
# all method will use base formatter default
# one method only could use one formatter
# if set a method formatter mutiple times, will use random fomatter.
2023-12-05 08:50:47 +00:00
methods : [ "Query" , "Search" , "Delete" ]
2023-10-25 02:30:10 +00:00
# localPath: /tmp/milvus_accesslog // log file rootpath
2023-11-28 07:32:31 +00:00
# maxSize: 64 # max log file size(MB) of singal log file, mean close when time <= 0.
# rotatedTime: 0 # max time range of singal log file, mean close when time <= 0;
# maxBackups: 8 # num of reserved backups. will rotate and crate a new backup when access log file trigger maxSize or rotatedTime.
# cacheSize: 10240 # write cache of accesslog in Byte
2023-12-12 03:14:37 +00:00
2023-11-28 07:32:31 +00:00
# minioEnable: false # update backups to milvus minio when minioEnable is true.
# remotePath: "access_log/" # file path when update backups to minio
# remoteMaxTime: 0 # max time range(in Hour) of backups in minio, 0 means close time retention.
2023-02-23 03:37:46 +00:00
http :
enabled : true # Whether to enable the http server
debug_mode : false # Whether to enable http server debug mode
2023-09-20 03:49:25 +00:00
# can specify ip for example
# ip: 127.0.0.1
ip : # if not specify address, will use the first unicastable address as local ip
2023-02-23 03:37:46 +00:00
port : 19530
internalPort : 19529
2022-12-07 02:07:18 +00:00
grpc :
2024-01-05 07:56:47 +00:00
serverMaxSendSize : 268435456
2023-02-23 03:37:46 +00:00
serverMaxRecvSize : 67108864
clientMaxSendSize : 268435456
2024-01-05 07:56:47 +00:00
clientMaxRecvSize : 67108864
2024-03-19 07:23:06 +00:00
# query whose executed time exceeds the `slowQuerySpanInSeconds` can be considered slow, in seconds.
slowQuerySpanInSeconds : 5
2021-11-12 10:53:11 +00:00
2021-10-11 08:28:05 +00:00
# Related configuration of queryCoord, used to manage topology and load balancing for the query nodes, and handoff from growing segments to sealed segments.
2021-06-22 08:44:09 +00:00
queryCoord :
2021-12-06 10:02:50 +00:00
autoHandoff : true # Enable auto handoff
2023-12-27 06:30:53 +00:00
autoBalance : true # Enable auto balance
2023-06-16 06:00:45 +00:00
balancer : ScoreBasedBalancer # Balancer to use
2023-05-04 04:22:40 +00:00
globalRowCountFactor : 0.1 # expert parameters, only used by scoreBasedBalancer
scoreUnbalanceTolerationFactor : 0.05 # expert parameters, only used by scoreBasedBalancer
reverseUnBalanceTolerationFactor : 1.3 #expert parameters, only used by scoreBasedBalancer
2021-12-06 10:05:32 +00:00
overloadedMemoryThresholdPercentage : 90 # The threshold percentage that memory overload
2021-11-12 10:49:10 +00:00
balanceIntervalSeconds : 60
memoryUsageMaxDifferencePercentage : 30
2023-04-27 06:56:35 +00:00
checkInterval : 1000
2022-09-15 10:48:32 +00:00
channelTaskTimeout : 60000 # 1 minute
2022-09-22 06:14:52 +00:00
segmentTaskTimeout : 120000 # 2 minute
2022-09-15 10:48:32 +00:00
distPullInterval : 500
2022-12-08 11:09:18 +00:00
heartbeatAvailableInterval : 10000 # 10s, Only QueryNodes which fetched heartbeats within the duration are available
2022-09-15 10:48:32 +00:00
loadTimeoutSeconds : 600
checkHandoffInterval : 5000
2024-01-29 06:05:02 +00:00
growingRowCountWeight : 4.0
2023-09-20 03:49:25 +00:00
# can specify ip for example
# ip: 127.0.0.1
ip : # if not specify address, will use the first unicastable address as local ip
2023-02-23 03:37:46 +00:00
port : 19531
grpc :
serverMaxSendSize : 536870912
2024-01-05 07:56:47 +00:00
serverMaxRecvSize : 268435456
2023-02-23 03:37:46 +00:00
clientMaxSendSize : 268435456
2024-01-05 07:56:47 +00:00
clientMaxRecvSize : 536870912
2023-03-26 16:42:00 +00:00
taskMergeCap : 1
taskExecutionCap : 256
2023-06-07 02:00:37 +00:00
enableActiveStandby : false # Enable active-standby
2023-07-24 06:07:00 +00:00
brokerTimeout : 5000 # broker rpc timeout in milliseconds
2021-01-22 06:28:06 +00:00
2021-10-11 13:31:16 +00:00
# Related configuration of queryNode, used to run hybrid search between vector and scalar data.
2020-11-20 09:10:24 +00:00
queryNode :
2021-11-12 10:53:11 +00:00
dataSync :
flowGraph :
2023-08-09 02:05:14 +00:00
maxQueueLength : 16 # Maximum length of task queue in flowgraph
2021-11-12 10:53:11 +00:00
maxParallelism : 1024 # Maximum number of tasks executed in parallel in the flowgraph
2023-02-23 03:37:46 +00:00
stats :
publishInterval : 1000 # Interval for querynode to report node information (milliseconds)
2021-11-12 10:53:11 +00:00
segcore :
2023-07-11 03:20:34 +00:00
cgoPoolSizeRatio : 2.0 # cgo pool size ratio to max read concurrency
2023-06-07 02:00:37 +00:00
knowhereThreadPoolNumRatio : 4
2023-04-17 02:44:29 +00:00
# Use more threads to make better use of SSD throughput in disk index.
# This parameter is only useful when enable-disk = true.
# And this value should be a number greater than 1 and less than 32.
2023-12-26 09:36:46 +00:00
chunkRows : 128 # The number of vectors in a chunk.
2023-12-18 04:04:42 +00:00
exprEvalBatchSize : 8192 # The batch size for executor get next
2023-10-31 18:20:15 +00:00
interimIndex : # build a vector temperate index for growing segment or binlog to accelerate search
2023-07-04 16:04:25 +00:00
enableIndex : true
2023-10-31 18:20:15 +00:00
nlist : 128 # segment index nlist
nprobe : 16 # nprobe to search segment, based on your accuracy requirement, must smaller than nlist
2023-12-12 03:14:37 +00:00
memExpansionRate : 1.15 # the ratio of building interim index memory usage to raw data
2024-02-29 10:15:00 +00:00
buildParallelRate : 0.5 # the ratio of building interim index parallel matched with cpu num
2023-07-25 08:37:01 +00:00
loadMemoryUsageFactor : 1 # The multiply factor of calculating the memory usage while loading segments
2023-08-04 02:07:06 +00:00
enableDisk : false # enable querynode load disk index, and search on disk index
2023-02-23 03:37:46 +00:00
maxDiskUsagePercentage : 95
2022-04-07 14:05:32 +00:00
cache :
2023-09-28 07:47:27 +00:00
enabled: true # deprecated, TODO : remove it
memoryLimit: 2147483648 # 2 GB, 2 * 1024 *1024 *1024 # deprecated, TODO : remove it
readAheadPolicy: willneed # The read ahead policy of chunk cache, options : `normal, random, sequential, willneed, dontneed`
2024-01-25 11:55:39 +00:00
# Specifies the necessity for warming up the chunk cache.
# 1. If set to "sync" or "async," the original vector data
# will be synchronously/asynchronously loaded into the
# chunk cache during the load process. This approach has
# the potential to substantially reduce query/search latency
# for a specific duration post-load, albeit accompanied
# by a concurrent increase in disk usage;
# 2. If set to "off," original vector data will only
# be loaded into the chunk cache during search/query.
warmup: async # options : `sync, async, off`
2023-02-23 03:37:46 +00:00
grouping :
enabled : true
2023-07-07 07:40:25 +00:00
maxNQ : 1000
2023-04-27 10:26:35 +00:00
topKMergeRatio : 20
2022-07-04 07:10:20 +00:00
scheduler :
2022-05-23 08:41:58 +00:00
receiveChanSize : 10240
unsolvedQueueSize : 10240
2022-08-30 11:50:57 +00:00
# maxReadConcurrentRatio is the concurrency ratio of read task (search task and query task).
2023-02-23 03:37:46 +00:00
# Max read concurrency would be the value of runtime.NumCPU * maxReadConcurrentRatio.
2022-08-30 11:50:57 +00:00
# It defaults to 2.0, which means max read concurrency would be the value of runtime.NumCPU * 2.
# Max read concurrency must greater than or equal to 1, and less than or equal to runtime.NumCPU * 100.
2023-02-23 03:37:46 +00:00
# (0, 100]
2023-04-27 10:26:35 +00:00
maxReadConcurrentRatio : 1
2023-02-23 03:37:46 +00:00
cpuRatio : 10 # ratio used to estimate read task cpu usage.
2022-12-29 07:17:30 +00:00
maxTimestampLag : 86400
2023-07-03 10:24:25 +00:00
# read task schedule policy: fifo(by default), user-task-polling.
scheduleReadPolicy :
# fifo: A FIFO queue support the schedule.
# user-task-polling:
# The user's tasks will be polled one by one and scheduled.
# Scheduling is fair on task granularity.
# The policy is based on the username for authentication.
# And an empty username is considered the same user.
# When there are no multi-users, the policy decay into FIFO
name : fifo
maxPendingTask : 10240
# user-task-polling configure:
taskQueueExpire : 60 # 1 min by default, expire time of inner user task queue since queue is empty.
enableCrossUserGrouping : false # false by default Enable Cross user grouping when using user-task-polling policy. (close it if task of any user can not merge others).
maxPendingTaskPerUser : 1024 # 50 by default, max pending task in scheduler per user.
2024-03-20 09:55:08 +00:00
mmap :
mmapEnabled : false # enable mmap global, if set true, will use mmap to load segment data
2024-03-27 12:23:10 +00:00
lazyloadEnabled : false
2023-07-03 10:24:25 +00:00
2023-09-20 03:49:25 +00:00
# can specify ip for example
# ip: 127.0.0.1
ip : # if not specify address, will use the first unicastable address as local ip
2023-02-23 03:37:46 +00:00
port : 21123
grpc :
serverMaxSendSize : 536870912
2024-01-05 07:56:47 +00:00
serverMaxRecvSize : 268435456
2023-02-23 03:37:46 +00:00
clientMaxSendSize : 268435456
2024-01-05 07:56:47 +00:00
clientMaxRecvSize : 536870912
2024-03-22 05:57:06 +00:00
enableSegmentPrune : false # use partition prune function on shard delegator
2022-05-23 08:41:58 +00:00
2023-01-31 04:07:50 +00:00
indexCoord :
bindIndexNodeMode :
enable : false
2023-02-23 03:37:46 +00:00
address : localhost:22930
2023-01-31 04:07:50 +00:00
withCred : false
nodeID : 0
2023-02-23 03:37:46 +00:00
segment :
minSegmentNumRowsToEnableIndex : 1024 # It's a threshold. When the segment num rows is less than this value, the segment will not be indexed
2023-02-05 09:21:53 +00:00
2021-02-23 10:08:17 +00:00
indexNode :
2023-02-23 03:37:46 +00:00
scheduler :
buildParallel : 1
2022-09-21 12:16:51 +00:00
enableDisk : true # enable index node build disk vector index
maxDiskUsagePercentage : 95
2023-09-20 03:49:25 +00:00
# can specify ip for example
# ip: 127.0.0.1
ip : # if not specify address, will use the first unicastable address as local ip
2023-02-23 03:37:46 +00:00
port : 21121
grpc :
serverMaxSendSize : 536870912
2024-01-05 07:56:47 +00:00
serverMaxRecvSize : 268435456
2023-02-23 03:37:46 +00:00
clientMaxSendSize : 268435456
2024-01-05 07:56:47 +00:00
clientMaxRecvSize : 536870912
2022-07-07 06:44:21 +00:00
2021-06-21 10:22:13 +00:00
dataCoord :
2022-11-29 09:19:14 +00:00
channel :
2023-06-21 13:26:42 +00:00
watchTimeoutInterval : 300 # Timeout on watching channels (in seconds). Datanode tickler update watch progress will reset timeout timer.
2023-03-20 02:01:56 +00:00
balanceSilentDuration : 300 # The duration before the channelBalancer on datacoord to run
balanceInterval : 360 #The interval for the channelBalancer on datacoord to check balance status
2021-11-12 10:53:11 +00:00
segment :
2024-01-29 02:17:02 +00:00
maxSize : 1024 # Maximum size of a segment in MB
2023-10-24 01:30:10 +00:00
diskSegmentMaxSize : 2048 # Maximum size of a segment in MB for collection which has Disk index
2024-01-29 02:17:02 +00:00
sealProportion : 0.12
2023-07-24 06:11:07 +00:00
# The time of the assignment expiration in ms
# Warning! this parameter is an expert variable and closely related to data integrity. Without specific
# target and solid understanding of the scenarios, it should not be changed. If it's necessary to alter
# this parameter, make sure that the newly changed value is larger than the previous value used before restart
# otherwise there could be a large possibility of data loss
assignmentExpiration : 2000
2022-09-29 13:53:31 +00:00
maxLife : 86400 # The max lifetime of segment in seconds, 24*60*60
2023-02-23 03:37:46 +00:00
# If a segment didn't accept dml records in maxIdleTime and the size of segment is greater than
# minSizeFromIdleToSealed, Milvus will automatically seal it.
# The max idle time of segment in seconds, 10*60.
maxIdleTime : 600
2022-09-29 13:53:31 +00:00
minSizeFromIdleToSealed : 16 # The min size in MB of segment which can be idle from sealed.
2023-02-23 03:37:46 +00:00
# The max number of binlog file for one segment, the segment will be sealed if
# the number of binlog file reaches to max value.
2023-02-13 02:24:33 +00:00
maxBinlogFileNumber : 32
2022-12-06 06:37:18 +00:00
smallProportion : 0.5 # The segment is considered as "small segment" when its # of rows is smaller than
# (smallProportion * segment max # of rows).
2023-02-23 03:37:46 +00:00
# A compaction will happen on small segments if the segment after compaction will have
2023-07-26 06:49:01 +00:00
compactableProportion : 0.85
2022-12-06 06:37:18 +00:00
# over (compactableProportion * segment max # of rows) rows.
2022-12-16 02:01:23 +00:00
# MUST BE GREATER THAN OR EQUAL TO <smallProportion>!!!
2023-06-07 02:00:37 +00:00
# During compaction, the size of segment # of rows is able to exceed segment max # of rows by (expansionRate-1) * 100%.
2023-02-23 03:37:46 +00:00
expansionRate : 1.25
2023-11-20 11:04:22 +00:00
# Whether to enable levelzero segment
2024-03-08 07:53:02 +00:00
enableLevelZero : true
2023-02-23 03:37:46 +00:00
enableCompaction : true # Enable data segment compaction
2021-11-16 03:47:10 +00:00
compaction :
2021-12-10 06:41:14 +00:00
enableAutoCompaction : true
2023-07-18 06:25:20 +00:00
rpcTimeout : 10 # compaction rpc request timeout in seconds
2023-10-25 01:40:12 +00:00
maxParallelTaskNum : 10 # max parallel compaction task number
2023-07-23 13:31:00 +00:00
indexBasedCompaction : true
2023-11-13 03:18:19 +00:00
levelzero :
forceTrigger :
2024-02-01 12:39:03 +00:00
minSize : 8388608 # The minmum size in bytes to force trigger a LevelZero Compaction, default as 8MB
2023-11-13 03:18:19 +00:00
deltalogMinNum : 10 # the minimum number of deltalog files to force trigger a LevelZero Compaction
2024-01-31 12:45:04 +00:00
import :
filesPerPreImportTask : 2 # The maximum number of files allowed per pre-import task.
taskRetention : 10800 # The retention period in seconds for tasks in the Completed or Failed state.
2024-03-22 10:13:06 +00:00
maxImportFileNumPerReq : 1024 # The maximum number of files allowed per single import request.
2023-11-13 03:18:19 +00:00
2023-02-23 03:37:46 +00:00
enableGarbageCollection : true
2021-11-18 14:29:40 +00:00
gc :
interval : 3600 # gc interval in seconds
2024-03-19 03:27:06 +00:00
scanInterval : 168 #gc residual file scan interval in hours
2023-07-23 13:31:00 +00:00
missingTolerance : 3600 # file meta missing tolerance duration in seconds, 3600
dropTolerance : 10800 # file belongs to dropped entity tolerance duration in seconds. 10800
2023-02-23 03:37:46 +00:00
enableActiveStandby : false
2023-09-20 03:49:25 +00:00
# can specify ip for example
# ip: 127.0.0.1
ip : # if not specify address, will use the first unicastable address as local ip
2023-02-23 03:37:46 +00:00
port : 13333
grpc :
serverMaxSendSize : 536870912
2024-01-05 07:56:47 +00:00
serverMaxRecvSize : 268435456
2023-02-23 03:37:46 +00:00
clientMaxSendSize : 268435456
2024-01-05 07:56:47 +00:00
clientMaxRecvSize : 536870912
2021-11-18 14:29:40 +00:00
2021-01-24 13:20:11 +00:00
dataNode :
2021-11-12 10:53:11 +00:00
dataSync :
flowGraph :
2023-08-09 02:05:14 +00:00
maxQueueLength : 16 # Maximum length of task queue in flowgraph
2021-11-12 10:53:11 +00:00
maxParallelism : 1024 # Maximum number of tasks executed in parallel in the flowgraph
2024-01-26 03:35:00 +00:00
maxParallelSyncMgrTasks : 256 #The max concurrent sync task number of datanode sync mgr globally
2023-12-06 17:00:37 +00:00
skipMode :
# when there are only timetick msg in flowgraph for a while (longer than coldTime),
# flowGraph will turn on skip mode to skip most timeticks to reduce cost, especially there are a lot of channels
enable : true
skipNum : 4
coldTime : 60
2022-11-12 13:09:04 +00:00
segment :
2023-02-23 03:37:46 +00:00
insertBufSize : 16777216 # Max buffer size to flush for a single segment.
deleteBufBytes : 67108864 # Max buffer size to flush del for a single channel
syncPeriod : 600 # The period to sync segments if buffer is not empty.
2023-09-20 03:49:25 +00:00
# can specify ip for example
# ip: 127.0.0.1
ip : # if not specify address, will use the first unicastable address as local ip
2023-02-23 03:37:46 +00:00
port : 21124
grpc :
serverMaxSendSize : 536870912
2024-01-05 07:56:47 +00:00
serverMaxRecvSize : 268435456
2023-02-23 03:37:46 +00:00
clientMaxSendSize : 268435456
2024-01-05 07:56:47 +00:00
clientMaxRecvSize : 536870912
2023-02-27 09:47:51 +00:00
memory :
forceSyncEnable : true # `true` to force sync if memory usage is too high
2023-03-21 13:37:56 +00:00
forceSyncSegmentNum : 1 # number of segments to sync, segments with top largest buffer will be synced.
watermarkStandalone : 0.2 # memory watermark for standalone, upon reaching this watermark, segments will be synced.
watermarkCluster : 0.5 # memory watermark for cluster, upon reaching this watermark, segments will be synced.
2023-06-14 06:16:38 +00:00
timetick :
byRPC : true
2023-10-19 00:28:08 +00:00
channel :
# specify the size of global work pool of all channels
# if this parameter <= 0, will set it as the maximum number of CPUs that can be executing
# suggest to set it bigger on large collection numbers to avoid blocking
workPoolSize : -1
2023-12-12 05:48:42 +00:00
# specify the size of global work pool for channel checkpoint updating
2024-03-07 12:39:02 +00:00
# if this parameter <= 0, will set it as 10
updateChannelCheckpointMaxParallel : 10
2024-01-31 12:45:04 +00:00
import :
maxConcurrentTaskNum : 16 # The maximum number of import/pre-import tasks allowed to run concurrently on a datanode.
2024-03-22 10:13:06 +00:00
maxImportFileSizeInGB : 16 # The maximum file size (in GB) for an import file, where an import file refers to either a Row-Based file or a set of Column-Based files.
2021-11-12 10:53:11 +00:00
2021-09-09 10:48:02 +00:00
# Configures the system log output.
2021-02-19 07:37:04 +00:00
log :
2023-05-24 02:15:25 +00:00
level : info # Only supports debug, info, warn, error, panic, or fatal. Default 'info'.
2021-02-19 07:37:04 +00:00
file :
2023-06-07 02:00:37 +00:00
rootPath : # root dir path to put logs, default "" means no log file will print. please adjust in embedded Milvus: /tmp/milvus/logs
2021-02-19 07:37:04 +00:00
maxSize : 300 # MB
2021-12-01 05:09:49 +00:00
maxAge : 10 # Maximum time for log retention in day.
2021-02-19 07:37:04 +00:00
maxBackups : 20
2023-02-23 03:37:46 +00:00
format : text # text or json
stdout : true # Stdout enable or not
2021-09-26 11:46:17 +00:00
2022-05-05 02:35:50 +00:00
grpc :
log :
level : WARNING
2024-01-05 07:56:47 +00:00
serverMaxSendSize : 536870912
serverMaxRecvSize : 268435456
clientMaxSendSize : 268435456
clientMaxRecvSize : 536870912
2022-05-05 02:35:50 +00:00
client :
2023-10-24 14:14:14 +00:00
compressionEnabled : false
2023-05-29 02:03:28 +00:00
dialTimeout : 200
2022-10-08 07:38:58 +00:00
keepAliveTime : 10000
2022-06-13 03:54:08 +00:00
keepAliveTimeout : 20000
2023-09-06 09:43:14 +00:00
maxMaxAttempts : 10
initialBackOff : 0.2 # seconds
maxBackoff : 10 # seconds
backoffMultiplier : 2.0 # deprecated
2022-05-05 02:35:50 +00:00
2022-05-10 12:05:53 +00:00
# Configure the proxy tls enable.
tls :
serverPemPath : configs/cert/server.pem
serverKeyPath : configs/cert/server.key
caPemPath : configs/cert/ca.pem
2022-03-04 03:17:56 +00:00
common :
2021-09-26 11:46:17 +00:00
chanNamePrefix :
2023-02-23 03:37:46 +00:00
cluster : by-dev
rootCoordTimeTick : rootcoord-timetick
rootCoordStatistics : rootcoord-statistics
rootCoordDml : rootcoord-dml
2023-10-20 06:26:09 +00:00
replicateMsg : replicate-msg
2023-02-23 03:37:46 +00:00
rootCoordDelta : rootcoord-delta
search : search
searchResult : searchResult
queryTimeTick : queryTimeTick
dataCoordStatistic : datacoord-statistics-channel
dataCoordTimeTick : datacoord-timetick-channel
dataCoordSegmentInfo : segment-info-channel
2021-09-26 11:46:17 +00:00
subNamePrefix :
2023-02-23 03:37:46 +00:00
proxySubNamePrefix : proxy
rootCoordSubNamePrefix : rootCoord
queryNodeSubNamePrefix : queryNode
dataCoordSubNamePrefix : dataCoord
dataNodeSubNamePrefix : dataNode
defaultPartitionName : _default # default partition name for a collection
defaultIndexName : _default_idx # default index name
2023-09-04 09:41:48 +00:00
entityExpiration : -1 # Entity expiration in seconds, CAUTION -1 means never expire
2023-02-23 03:37:46 +00:00
indexSliceSize : 16 # MB
2023-08-03 01:31:07 +00:00
threadCoreCoefficient :
2023-08-11 10:29:29 +00:00
highPriority : 10 # This parameter specify how many times the number of threads is the number of cores in high priority thread pool
middlePriority : 5 # This parameter specify how many times the number of threads is the number of cores in middle priority thread pool
lowPriority : 1 # This parameter specify how many times the number of threads is the number of cores in low priority thread pool
2024-01-30 08:47:03 +00:00
buildIndexThreadPoolRatio : 0.75
2023-02-23 03:37:46 +00:00
DiskIndex :
MaxDegree : 56
SearchListSize : 100
PQCodeBudgetGBRatio : 0.125
BuildNumThreadsRatio : 1
SearchCacheBudgetGBRatio : 0.1
LoadNumThreadRatio : 8
BeamWidthRatio : 4
2022-05-24 04:05:59 +00:00
gracefulTime : 5000 # milliseconds. it represents the interval (in ms) by which the request arrival time needs to be subtracted in the case of Bounded Consistency.
2023-08-22 01:04:21 +00:00
gracefulStopTimeout : 1800 # seconds. it will force quit the server if the graceful stop process is not completed during this time.
2023-11-30 03:34:27 +00:00
storageType: remote # please adjust in embedded Milvus : local, available values are [local, remote, opendal], value minio is deprecated, use remote instead
2021-11-01 02:26:03 +00:00
# Default value: auto
2021-11-08 02:21:04 +00:00
# Valid values: [auto, avx512, avx2, avx, sse4_2]
2021-11-01 02:26:03 +00:00
# This configuration is only used by querynode and indexnode, it selects CPU instruction set for Searching and Index-building.
simdType : auto
2022-04-19 08:35:39 +00:00
security :
authorizationEnabled : false
2022-12-09 08:13:20 +00:00
# The superusers will ignore some system check processes,
# like the old password verification when updating the credential
2023-04-26 13:16:34 +00:00
# superUsers: root
2022-06-02 10:56:04 +00:00
tlsMode : 0
2022-09-29 10:35:02 +00:00
session :
2023-11-06 13:21:42 +00:00
ttl : 30 # ttl value when session granting a lease to register service
2022-09-29 10:35:02 +00:00
retryTimes : 30 # retry times when session sending etcd requests
2023-11-23 09:26:24 +00:00
storage :
scheme : "s3"
enablev2 : false
2022-09-29 10:35:02 +00:00
2023-04-03 08:44:23 +00:00
# preCreatedTopic decides whether using existed topic
preCreatedTopic :
enabled : false
# support pre-created topics
# the name of pre-created topics
2023-11-01 01:00:14 +00:00
names : [ 'topic1' , 'topic2' ]
2023-04-03 08:44:23 +00:00
# need to set a separated topic to stand for currently consumed timestamp for each channel
2023-11-01 01:00:14 +00:00
timeticker : 'timetick-channel'
2023-04-03 08:44:23 +00:00
2023-08-03 07:03:06 +00:00
locks :
metrics :
enable : false
threshold :
info : 500 # minimum milliseconds for printing durations in info level
warn : 1000 # minimum milliseconds for printing durations in warn level
2023-10-20 06:26:09 +00:00
ttMsgEnabled : true # Whether the instance disable sending ts messages
2023-11-13 12:16:18 +00:00
traceLogMode: 0 # trace request info, 0: none, 1: simple request info, like collection/partition/database name, 2 : request detail
2023-12-28 10:10:46 +00:00
bloomFilterSize : 100000
maxBloomFalsePositive : 0.05
2023-08-03 07:03:06 +00:00
2022-09-16 01:56:47 +00:00
# QuotaConfig, configurations of Milvus quota and limits.
# By default, we enable:
# 1. TT protection;
# 2. Memory protection.
2022-10-12 02:03:22 +00:00
# 3. Disk quota protection.
2022-09-16 01:56:47 +00:00
# You can enable:
# 1. DML throughput limitation;
# 2. DDL, DQL qps/rps limitation;
# 3. DQL Queue length/latency protection;
2022-10-13 06:57:24 +00:00
# 4. DQL result rate protection;
2022-09-16 01:56:47 +00:00
# If necessary, you can also manually force to deny RW requests.
quotaAndLimits :
2022-10-17 08:23:25 +00:00
enabled : true # `true` to enable quota and limits, `false` to disable.
2023-04-28 03:02:35 +00:00
limits :
maxCollectionNum : 65536
2023-06-25 09:20:43 +00:00
maxCollectionNumPerDB : 65536
2022-09-16 01:56:47 +00:00
# quotaCenterCollectInterval is the time interval that quotaCenter
2022-10-09 06:30:58 +00:00
# collects metrics from Proxies, Query cluster and Data cluster.
2023-02-23 03:37:46 +00:00
# seconds, (0 ~ 65536)
quotaCenterCollectInterval : 3
ddl :
2022-09-26 08:48:53 +00:00
enabled : false
2022-10-13 06:57:24 +00:00
collectionRate : -1 # qps, default no limit, rate for CreateCollection, DropCollection, LoadCollection, ReleaseCollection
partitionRate : -1 # qps, default no limit, rate for CreatePartition, DropPartition, LoadPartition, ReleasePartition
2022-10-09 06:30:58 +00:00
indexRate :
enabled : false
2022-10-13 06:57:24 +00:00
max : -1 # qps, default no limit, rate for CreateIndex, DropIndex
2022-10-09 06:30:58 +00:00
flushRate :
enabled : false
2022-10-13 06:57:24 +00:00
max : -1 # qps, default no limit, rate for flush
2024-02-18 07:32:50 +00:00
collection :
max : -1 # qps, default no limit, rate for flush at collection level.
2022-10-09 06:30:58 +00:00
compactionRate :
enabled : false
2022-10-13 06:57:24 +00:00
max : -1 # qps, default no limit, rate for manualCompaction
2022-09-16 01:56:47 +00:00
dml :
2023-02-23 03:37:46 +00:00
# dml limit rates, default no limit.
# The maximum rate will not be greater than max.
2022-09-26 08:48:53 +00:00
enabled : false
2022-09-16 01:56:47 +00:00
insertRate :
2023-05-12 10:13:26 +00:00
collection :
max : -1 # MB/s, default no limit
2022-10-13 06:57:24 +00:00
max : -1 # MB/s, default no limit
2023-07-11 03:20:34 +00:00
upsertRate :
collection :
max : -1 # MB/s, default no limit
max : -1 # MB/s, default no limit
2022-09-16 01:56:47 +00:00
deleteRate :
2023-05-12 10:13:26 +00:00
collection :
max : -1 # MB/s, default no limit
2022-10-13 06:57:24 +00:00
max : -1 # MB/s, default no limit
2023-02-23 03:37:46 +00:00
bulkLoadRate :
2023-05-12 10:13:26 +00:00
collection :
max: -1 # MB/s, default no limit, not support yet. TODO : limit bulkLoad rate
2023-02-23 03:37:46 +00:00
max: -1 # MB/s, default no limit, not support yet. TODO : limit bulkLoad rate
2022-09-16 01:56:47 +00:00
dql :
2023-02-23 03:37:46 +00:00
# dql limit rates, default no limit.
# The maximum rate will not be greater than max.
2022-09-26 08:48:53 +00:00
enabled : false
2022-09-16 01:56:47 +00:00
searchRate :
2023-05-12 10:13:26 +00:00
collection :
max : -1 # vps (vectors per second), default no limit
2022-10-13 06:57:24 +00:00
max : -1 # vps (vectors per second), default no limit
2022-09-16 01:56:47 +00:00
queryRate :
2023-05-12 10:13:26 +00:00
collection :
max : -1 # qps, default no limit
2022-10-13 06:57:24 +00:00
max : -1 # qps, default no limit
2022-09-16 01:56:47 +00:00
limitWriting :
2023-02-23 03:37:46 +00:00
# forceDeny false means dml requests are allowed (except for some
# specific conditions, such as memory of nodes to water marker), true means always reject all dml requests.
2022-09-16 01:56:47 +00:00
forceDeny : false
2022-09-26 08:48:53 +00:00
ttProtection :
2022-11-17 12:21:14 +00:00
enabled : false
2022-09-26 08:48:53 +00:00
# maxTimeTickDelay indicates the backpressure for DML Operations.
# DML rates would be reduced according to the ratio of time tick delay to maxTimeTickDelay,
# if time tick delay is greater than maxTimeTickDelay, all DML requests would be rejected.
2023-02-23 03:37:46 +00:00
# seconds
maxTimeTickDelay : 300
2022-09-26 08:48:53 +00:00
memProtection :
# When memory usage > memoryHighWaterLevel, all dml requests would be rejected;
# When memoryLowWaterLevel < memory usage < memoryHighWaterLevel, reduce the dml rate;
# When memory usage < memoryLowWaterLevel, no action.
2023-02-23 03:37:46 +00:00
enabled : true
2022-10-09 06:30:58 +00:00
dataNodeMemoryLowWaterLevel : 0.85 # (0, 1], memoryLowWaterLevel in DataNodes
dataNodeMemoryHighWaterLevel : 0.95 # (0, 1], memoryHighWaterLevel in DataNodes
queryNodeMemoryLowWaterLevel : 0.85 # (0, 1], memoryLowWaterLevel in QueryNodes
queryNodeMemoryHighWaterLevel : 0.95 # (0, 1], memoryHighWaterLevel in QueryNodes
2023-05-17 01:57:22 +00:00
growingSegmentsSizeProtection :
2023-08-08 04:43:07 +00:00
# No action will be taken if the growing segments size is less than the low watermark.
# When the growing segments size exceeds the low watermark, the dml rate will be reduced,
# but the rate will not be lower than `minRateRatio * dmlRate`.
2023-05-17 01:57:22 +00:00
enabled : false
2023-08-08 04:43:07 +00:00
minRateRatio : 0.5
2023-05-17 01:57:22 +00:00
lowWaterLevel : 0.2
highWaterLevel : 0.4
2022-10-12 02:03:22 +00:00
diskProtection :
2023-02-23 03:37:46 +00:00
enabled : true # When the total file size of object storage is greater than `diskQuota`, all dml requests would be rejected;
2022-10-19 07:13:26 +00:00
diskQuota : -1 # MB, (0, +inf), default no limit
2023-04-26 13:52:36 +00:00
diskQuotaPerCollection : -1 # MB, (0, +inf), default no limit
2022-09-16 01:56:47 +00:00
limitReading :
2023-02-23 03:37:46 +00:00
# forceDeny false means dql requests are allowed (except for some
# specific conditions, such as collection has been dropped), true means always reject all dql requests.
2022-09-16 01:56:47 +00:00
forceDeny : false
2022-09-26 08:48:53 +00:00
queueProtection :
enabled : false
# nqInQueueThreshold indicated that the system was under backpressure for Search/Query path.
# If NQ in any QueryNode's queue is greater than nqInQueueThreshold, search&query rates would gradually cool off
# until the NQ in queue no longer exceeds nqInQueueThreshold. We think of the NQ of query request as 1.
2023-02-23 03:37:46 +00:00
# int, default no limit
nqInQueueThreshold : -1
2022-09-26 08:48:53 +00:00
# queueLatencyThreshold indicated that the system was under backpressure for Search/Query path.
# If dql latency of queuing is greater than queueLatencyThreshold, search&query rates would gradually cool off
# until the latency of queuing no longer exceeds queueLatencyThreshold.
# The latency here refers to the averaged latency over a period of time.
2023-02-23 03:37:46 +00:00
# milliseconds, default no limit
queueLatencyThreshold : -1
2022-10-13 06:57:24 +00:00
resultProtection :
enabled : false
# maxReadResultRate indicated that the system was under backpressure for Search/Query path.
# If dql result rate is greater than maxReadResultRate, search&query rates would gradually cool off
# until the read result rate no longer exceeds maxReadResultRate.
2023-02-23 03:37:46 +00:00
# MB/s, default no limit
maxReadResultRate : -1
# colOffSpeed is the speed of search&query rates cool off.
# (0, 1]
coolOffSpeed : 0.9
2023-01-12 08:09:39 +00:00
trace :
2023-02-23 03:37:46 +00:00
# trace exporter type, default is stdout,
2023-12-12 03:14:37 +00:00
# optional values: ['stdout', 'jaeger', 'otlp']
2023-02-23 03:37:46 +00:00
exporter : stdout
2023-01-12 08:09:39 +00:00
# fraction of traceID based sampler,
# optional values: [0, 1]
# Fractions >= 1 will always sample. Fractions < 0 are treated as zero.
sampleFraction : 0
2023-12-12 03:14:37 +00:00
otlp :
endpoint : # "127.0.0.1:4318"
secure : true
2023-01-12 08:09:39 +00:00
jaeger :
2023-08-30 06:15:01 +00:00
url : # "http://127.0.0.1:14268/api/traces"
# when exporter is jaeger should set the jaeger's URL
2023-05-29 12:35:28 +00:00
autoIndex :
params :
2023-06-19 01:54:41 +00:00
build : '{"M": 18,"efConstruction": 240,"index_type": "HNSW", "metric_type": "IP"}'
2023-12-26 03:04:47 +00:00
2024-03-25 06:41:07 +00:00
#when using GPU indexing, Milvus will utilize a memory pool to avoid frequent memory allocation and deallocation.
#here, you can set the size of the memory occupied by the memory pool, with the unit being MB.
#note that there is a possibility of Milvus crashing when the actual memory demand exceeds the value set by maxMemSize.
#if initMemSize and MaxMemSize both set zero,
#milvus will automatically initialize half of the available GPU memory,
#maxMemSize will the whole available GPU memory.
2023-12-26 03:04:47 +00:00
gpu :
2024-03-25 06:41:07 +00:00
initMemSize : 0 #sets the initial memory pool size.
maxMemSize : 0 #when the memory pool is not large enough for the first time, Milvus will attempt to expand the memory pool once. maxMemSize sets the maximum memory usage limit.