forked from milvus-io/milvus
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'caiyd_refactor_config_1' into 'branch-0.5.0'
MS-574 Milvus configuration refactor See merge request megasearch/milvus!610 Former-commit-id: 9d0f05589f4344bb029c2f65470d9b567999ae3f
- Loading branch information
Showing
33 changed files
with
1,484 additions
and
917 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,39 @@ | ||
server_config: | ||
address: 0.0.0.0 # milvus server ip address (IPv4) | ||
port: 19530 # the port milvus listen to, default: 19530, range: 1025 ~ 65534 | ||
mode: single # milvus deployment type: single, cluster, read_only | ||
time_zone: UTC+8 # Use the UTC-x or UTC+x to specify a time zone. eg. UTC+8 for China Standard Time | ||
address: 0.0.0.0 # milvus server ip address (IPv4) | ||
port: 19530 # port range: 1025 ~ 65534 | ||
mode: single # deployment type: single, cluster, read_only | ||
time_zone: UTC+8 | ||
|
||
db_config: | ||
db_path: @MILVUS_DB_PATH@ # milvus data storage path | ||
db_slave_path: # secondry data storage path, split by semicolon | ||
path: @MILVUS_DB_PATH@ # milvus database path | ||
slave_path: # secondary database path, split by semicolon | ||
|
||
# URI format: dialect://username:password@host:port/database | ||
# All parts except dialect are optional, but you MUST include the delimiters | ||
# Currently dialect supports mysql or sqlite | ||
db_backend_url: sqlite://:@:/ | ||
backend_url: sqlite://:@:/ | ||
|
||
archive_disk_threshold: 0 # triger archive action if storage size exceed this value, 0 means no limit, unit: GB | ||
archive_days_threshold: 0 # files older than x days will be archived, 0 means no limit, unit: day | ||
insert_buffer_size: 4 # maximum insert buffer size allowed, default: 4, unit: GB, should be at least 1 GB. | ||
# the sum of insert_buffer_size and cpu_cache_capacity should be less than total memory, unit: GB | ||
build_index_gpu: 0 # which gpu is used to build index, default: 0, range: 0 ~ gpu number - 1 | ||
archive_disk_threshold: 0 # GB, file will be archived when disk usage exceed, 0 for no limit | ||
archive_days_threshold: 0 # DAYS, older files will be archived, 0 for no limit | ||
buffer_size: 4 # GB, maximum insert buffer size allowed | ||
build_index_gpu: 0 # gpu id used for building index | ||
|
||
metric_config: | ||
is_startup: off # if monitoring start: on, off | ||
collector: prometheus # metrics collector: prometheus | ||
prometheus_config: # following are prometheus configure | ||
port: 8080 # the port prometheus use to fetch metrics | ||
push_gateway_ip_address: 127.0.0.1 # push method configure: push gateway ip address | ||
push_gateway_port: 9091 # push method configure: push gateway port | ||
auto_bootup: off # whether enable monitoring when bootup | ||
collector: prometheus # prometheus | ||
prometheus_config: | ||
port: 8080 # port prometheus used to fetch metrics | ||
|
||
cache_config: | ||
cpu_cache_capacity: 16 # how many memory are used as cache, unit: GB, range: 0 ~ less than total memory | ||
cpu_cache_free_percent: 0.85 # old data will be erased from cache when cache is full, this value specify how much memory should be kept, range: greater than zero ~ 1.0 | ||
insert_cache_immediately: false # insert data will be load into cache immediately for hot query | ||
cpu_mem_capacity: 16 # GB, CPU memory size used for cache | ||
cpu_mem_threshold: 0.85 # percent of data kept when cache cleanup triggered | ||
cache_insert_data: false # whether load data into cache when insert | ||
|
||
engine_config: | ||
use_blas_threshold: 20 | ||
blas_threshold: 20 | ||
|
||
resource_config: | ||
mode: simple | ||
resources: | ||
# - cpu | ||
pool: | ||
- cpu | ||
- gpu0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.