server_cpu_config.template 14.2 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
# Licensed to the Apache Software Foundation (ASF) 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
# with the License.  You may obtain a copy of the License at
#
#   http://www.apache.org/licenses/LICENSE-2.0
#
# 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.
Y
yudong.cai 已提交
17

18
version: 0.1
19

20 21 22
#----------------------+------------------------------------------------------------+------------+-----------------+
# Server Config        | Description                                                | Type       | Default         |
#----------------------+------------------------------------------------------------+------------+-----------------+
C
Cai Yudong 已提交
23
# address              | IP address that Milvus server monitors.                    | IP         | 0.0.0.0         |
24 25 26 27 28 29 30 31
#----------------------+------------------------------------------------------------+------------+-----------------+
# port                 | Port that Milvus server monitors. Port range (1024, 65535) | Integer    | 19530           |
#----------------------+------------------------------------------------------------+------------+-----------------+
# deploy_mode          | Milvus deployment type:                                    | DeployMode | single          |
#                      |   single, cluster_readonly, cluster_writable               |            |                 |
#----------------------+------------------------------------------------------------+------------+-----------------+
# time_zone            | Use UTC-x or UTC+x to specify a time zone.                 | Timezone   | UTC+8           |
#----------------------+------------------------------------------------------------+------------+-----------------+
B
BossZou 已提交
32 33 34
# web_port             | Port that Milvus web server monitors.                      | Integer    | 19121           |
#                      | Port range (1024, 65535)                                   |            |                 |
#----------------------+------------------------------------------------------------+------------+-----------------+
G
groot 已提交
35
server_config:
36 37 38 39
  address: 0.0.0.0
  port: 19530
  deploy_mode: single
  time_zone: UTC+8
B
BossZou 已提交
40
  web_port: 19121
G
groot 已提交
41

42 43 44 45 46 47 48 49 50 51 52 53 54
#----------------------+------------------------------------------------------------+------------+-----------------+
# DataBase Config      | Description                                                | Type       | Default         |
#----------------------+------------------------------------------------------------+------------+-----------------+
# backend_url          | URL for metadata storage, using SQLite (for single server  | URL        | sqlite://:@:/   |
#                      | Milvus) or MySQL (for distributed cluster Milvus).         |            |                 |
#                      | Format: dialect://username:password@host:port/database     |            |                 |
#                      | Keep 'dialect://:@:/', 'dialect' can be either 'sqlite' or |            |                 |
#                      | 'mysql', replace other texts with real values.             |            |                 |
#----------------------+------------------------------------------------------------+------------+-----------------+
# preload_table        | A comma-separated list of table names that need to be pre- | StringList |                 |
#                      | loaded when Milvus server starts up.                       |            |                 |
#                      | '*' means preload all existing tables.                     |            |                 |
#----------------------+------------------------------------------------------------+------------+-----------------+
G
groot 已提交
55
db_config:
56 57
  backend_url: sqlite://:@:/
  preload_table:
S
starlord 已提交
58

59
#----------------------+------------------------------------------------------------+------------+-----------------+
C
Cai Yudong 已提交
60 61
# Storage Config       | Description                                                | Type       | Default         |
#----------------------+------------------------------------------------------------+------------+-----------------+
62 63 64 65 66 67
# primary_path         | Primary directory used to save meta data, vector data and  | Path       | /var/lib/milvus |
#                      | index data.                                                |            |                 |
#----------------------+------------------------------------------------------------+------------+-----------------+
# secondary_path       | A semicolon-separated list of secondary directories used   | Path       |                 |
#                      | to save vector data and index data.                        |            |                 |
#----------------------+------------------------------------------------------------+------------+-----------------+
68
# s3_enable            | Enable Simple Storage Service or not.                      | Boolean    | false           |
C
Cai Yudong 已提交
69
#----------------------+------------------------------------------------------------+------------+-----------------+
70
# s3_address           | Simple Storage Service IP address.                         | IP         | 127.0.0.1       |
C
Cai Yudong 已提交
71
#----------------------+------------------------------------------------------------+------------+-----------------+
72
# s3_port              | Simple Storage Service port. Port range (1024, 65535)      | Integer    | 9000            |
C
Cai Yudong 已提交
73
#----------------------+------------------------------------------------------------+------------+-----------------+
74
# s3_access_key        | Simple Storage Service access key.                         | String     | minioadmin      |
C
Cai Yudong 已提交
75
#----------------------+------------------------------------------------------------+------------+-----------------+
76
# s3_secret_key        | Simple Storage Service secret key.                         | String     | minioadmin      |
C
Cai Yudong 已提交
77
#----------------------+------------------------------------------------------------+------------+-----------------+
78
# s3_bucket            | Simple Storage Service bucket name.                        | String     | milvus-bucket   |
C
Cai Yudong 已提交
79 80
#----------------------+------------------------------------------------------------+------------+-----------------+
storage_config:
81 82
  primary_path: @MILVUS_DB_PATH@
  secondary_path:
83 84 85 86 87 88
  s3_enable: false
  s3_address: 127.0.0.1
  s3_port: 9000
  s3_access_key: minioadmin
  s3_secret_key: minioadmin
  s3_bucket: milvus-bucket
C
Cai Yudong 已提交
89 90

#----------------------+------------------------------------------------------------+------------+-----------------+
91 92 93 94
# Metric Config        | Description                                                | Type       | Default         |
#----------------------+------------------------------------------------------------+------------+-----------------+
# enable_monitor       | Enable monitoring function or not.                         | Boolean    | false           |
#----------------------+------------------------------------------------------------+------------+-----------------+
95 96 97
# address              | Pushgateway address                                        | IP         | 127.0.0.1       +
#----------------------+------------------------------------------------------------+------------+-----------------+
# port                 | Pushgateway port, port range (1024, 65535)                 | Integer    | 9091            |
98
#----------------------+------------------------------------------------------------+------------+-----------------+
G
groot 已提交
99
metric_config:
100
  enable_monitor: false
C
Cai Yudong 已提交
101 102
  address: 127.0.0.1
  port: 9091
G
groot 已提交
103

104 105 106
#----------------------+------------------------------------------------------------+------------+-----------------+
# Cache Config         | Description                                                | Type       | Default         |
#----------------------+------------------------------------------------------------+------------+-----------------+
C
Cai Yudong 已提交
107
# cpu_cache_capacity   | The size of CPU memory used for caching data for faster    | Integer    | 4 (GB)          |
108 109 110
#                      | query. The sum of 'cpu_cache_capacity' and                 |            |                 |
#                      | 'insert_buffer_size' must be less than system memory size. |            |                 |
#----------------------+------------------------------------------------------------+------------+-----------------+
111 112 113 114
# insert_buffer_size   | Buffer size used for data insertion.                       | Integer    | 1 (GB)          |
#                      | The sum of 'insert_buffer_size' and 'cpu_cache_capacity'   |            |                 |
#                      | must be less than system memory size.                      |            |                 |
#----------------------+------------------------------------------------------------+------------+-----------------+
115 116 117 118
# cache_insert_data    | Whether to load inserted data into cache immediately for   | Boolean    | false           |
#                      | hot query. If want to simultaneously insert and query      |            |                 |
#                      | vectors, it's recommended to enable this config.           |            |                 |
#----------------------+------------------------------------------------------------+------------+-----------------+
S
starlord 已提交
119
cache_config:
120
  cpu_cache_capacity: 4
121
  insert_buffer_size: 1
122
  cache_insert_data: false
Y
yu yunfeng 已提交
123

124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142
#----------------------+------------------------------------------------------------+------------+-----------------+
# Engine Config        | Description                                                | Type       | Default         |
#----------------------+------------------------------------------------------------+------------+-----------------+
# use_blas_threshold   | A Milvus performance tuning parameter. This value will be  | Integer    | 1100            |
#                      | compared with 'nq' to decide if OpenBLAS should be used.   |            |                 |
#                      | If nq >= use_blas_threshold, OpenBLAS will be used, search |            |                 |
#                      | response times will be stable but the search speed will be |            |                 |
#                      | slower; if nq < use_blas_threshold, SSE will be used,      |            |                 |
#                      | search speed will be faster but search response times will |            |                 |
#                      | fluctuate.                                                 |            |                 |
#----------------------+------------------------------------------------------------+------------+-----------------+
# gpu_search_threshold | A Milvus performance tuning parameter. This value will be  | Integer    | 1000            |
#                      | compared with 'nq' to decide if the search computation will|            |                 |
#                      | be executed on GPUs only.                                  |            |                 |
#                      | If nq >= gpu_search_threshold, the search computation will |            |                 |
#                      | be executed on GPUs only;                                  |            |                 |
#                      | if nq < gpu_search_threshold, the search computation will  |            |                 |
#                      | be executed on both CPUs and GPUs.                         |            |                 |
#----------------------+------------------------------------------------------------+------------+-----------------+
Y
yu yunfeng 已提交
143
engine_config:
144 145
  use_blas_threshold: 1100
  gpu_search_threshold: 1000
W
wxyu 已提交
146

147 148 149 150 151 152 153 154 155 156 157 158 159
#----------------------+------------------------------------------------------------+------------+-----------------+
# GPU Resource Config  | Description                                                | Type       | Default         |
#----------------------+------------------------------------------------------------+------------+-----------------+
# enable               | Enable GPU resources or not.                               | Boolean    | false           |
#----------------------+------------------------------------------------------------+------------+-----------------+
# cache_capacity       | The size of GPU memory per card used for cache.            | Integer    | 1 (GB)          |
#----------------------+------------------------------------------------------------+------------+-----------------+
# search_resources     | The list of GPU devices used for search computation.       | DeviceList | gpu0            |
#                      | Must be in format gpux.                                    |            |                 |
#----------------------+------------------------------------------------------------+------------+-----------------+
# build_index_resources| The list of GPU devices used for index building.           | DeviceList | gpu0            |
#                      | Must be in format gpux.                                    |            |                 |
#----------------------+------------------------------------------------------------+------------+-----------------+
Y
yudong.cai 已提交
160
gpu_resource_config:
161 162 163
  enable: false
  cache_capacity: 1
  search_resources:
Y
yudong.cai 已提交
164
    - gpu0
165
  build_index_resources:
166
    - gpu0
Z
Zhiru Zhu 已提交
167

168 169 170 171 172 173
#----------------------+------------------------------------------------------------+------------+-----------------+
# Tracing Config       | Description                                                | Type       | Default         |
#----------------------+------------------------------------------------------------+------------+-----------------+
# json_config_path     | Absolute path for tracing config file.                     | Path       |                 |
#                      | Leave it empty, a no-op tracer will be created.            |            |                 |
#----------------------+------------------------------------------------------------+------------+-----------------+
Z
Zhiru Zhu 已提交
174
tracing_config:
175
  json_config_path: