server_config.template 1.9 KB
Newer Older
G
groot 已提交
1 2 3 4 5 6 7
server_config:
  address: 0.0.0.0
  port: 19530                 # the port milvus listen to, default: 19530, range: 1025 ~ 65534
  gpu_index: 0                # the gpu milvus use, default: 0, range: 0 ~ gpu number - 1
  mode: single                # milvus deployment type: single, cluster

db_config:
G
groot 已提交
8
  db_path: @MILVUS_DB_PATH@             # milvus data storage path
G
groot 已提交
9
  db_slave_path:                        # secondry data storage path, split by semicolon
Z
zhiru 已提交
10 11 12 13

  # 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
G
groot 已提交
14
  db_backend_url: sqlite://:@:/
Z
zhiru 已提交
15

G
groot 已提交
16
  index_building_threshold: 1024   # index building trigger threshold, default: 1024, unit: MB
G
groot 已提交
17 18
  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
G
groot 已提交
19 20 21 22 23 24 25 26 27 28 29 30

metric_config:
  is_startup: off      # if monitoring start: on, off
  collector: prometheus # metrics collector: prometheus
  prometheus_config:    # following are prometheus configure
    collect_type: pull  # prometheus collect data method
    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


license_config:         # license configure
G
groot 已提交
31
  license_path: "@MILVUS_DB_PATH@/system.license" # license file path
G
groot 已提交
32 33

cache_config:           # cache configure
Y
yu yunfeng 已提交
34 35 36
  cpu_cache_capacity: 16   # how many memory are used as cache, unit: GB, range: 0 ~ less than total memory

engine_config:
Y
yu yunfeng 已提交
37
  nprobe: 10
Y
yu yunfeng 已提交
38
  nlist: 16384
G
groot 已提交
39
  use_blas_threshold: 20
G
groot 已提交
40
  metric_type: L2       # compare vectors by euclidean distance(L2) or inner product(IP), optional: L2 or IP