server_config.template 3.3 KB
Newer Older
G
groot 已提交
1
server_config:
S
starlord 已提交
2
  address: 0.0.0.0            # milvus server ip address
G
groot 已提交
3 4
  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
Z
zhiru 已提交
5
  mode: single                # milvus deployment type: single, cluster, read_only
G
groot 已提交
6 7

db_config:
G
groot 已提交
8
  db_path: @MILVUS_DB_PATH@             # milvus data storage path
S
starlord 已提交
9
  db_slave_path:                        # secondry data storage path, split by semicolon
S
starlord 已提交
10
  parallel_reduce: false                # use multi-threads to reduce topk result
Z
zhiru 已提交
11 12 13 14

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

S
starlord 已提交
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
19
  insert_buffer_size: 4            # maximum insert buffer size allowed, default: 4, unit: GB, should be at least 1 GB.
20
                                   # the sum of insert_buffer_size and cpu_cache_capacity should be less than total memory, unit: GB
G
groot 已提交
21 22

metric_config:
S
starlord 已提交
23 24 25 26 27 28
  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
G
groot 已提交
29

S
starlord 已提交
30 31 32 33 34 35 36
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
  gpu_cache_capacity: 5             # how many memory are used as cache in gpu, unit: GB, RANGE: 0 ~ less than total memory
  gpu_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
  gpu_ids: 0,1                      # gpu id
Y
yu yunfeng 已提交
37 38

engine_config:
39
  use_blas_threshold: 20
40
  metric_type: L2               # compare vectors by euclidean distance(L2) or inner product(IP), optional: L2 or IP
41
  omp_thread_num: 0             # how many compute threads be used by engine, 0 means use all cpu core to compute
W
wxyu 已提交
42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75

resource_config:
  resources:
    ssda:
      type: DISK
      memory: 2048
      device_id: 0
      enable_loader: true
      enable_executor: false

    cpu:
      type: CPU
      memory: 64
      device_id: 0
      enable_loader: true
      enable_executor: false

    gtx1060:
      type: GPU
      memory: 6
      device_id: 0
      enable_loader: true
      enable_executor: true

    gtx1660:
      type: GPU
      memory: 6
      device_id: 1
      enable_loader: true
      enable_executor: true

  connections:
    - ssda===cpu
    - cpu===gtx1060
W
wxyu 已提交
76
    - cpu===gtx1660