server_config.template 3.5 KB
Newer Older
G
groot 已提交
1
server_config:
Z
zhiru 已提交
2
  address: 0.0.0.0            # milvus server ip address (IPv4)
G
groot 已提交
3
  port: 19530                 # the port milvus listen to, default: 19530, range: 1025 ~ 65534
Z
zhiru 已提交
4
  mode: single                # milvus deployment type: single, cluster, read_only
5
  time_zone: UTC+8            # Use the UTC-x or UTC+x to specify a time zone. eg. UTC+8 for China Standard Time
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
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

S
starlord 已提交
16 17
  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
18
  insert_buffer_size: 4            # maximum insert buffer size allowed, default: 4, unit: GB, should be at least 1 GB.
19
                                   # the sum of insert_buffer_size and cpu_cache_capacity should be less than total memory, unit: GB
S
starlord 已提交
20
  build_index_gpu: 0               # which gpu is used to build index, default: 0, range: 0 ~ gpu number - 1
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
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
Y
yu yunfeng 已提交
36 37

engine_config:
38
  use_blas_threshold: 20
W
wxyu 已提交
39 40

resource_config:
W
wxyu 已提交
41 42 43 44 45 46 47 48 49
  # resource list, length: 0~N
  # please set a DISK resource and a CPU resource least, or system will not return query result.
  #
  # example:
  # resource_name:               # resource name, just using in connections below
  #   type: DISK                 # resource type, optional: DISK/CPU/GPU
  #   device_id: 0
  #   enable_executor: false     # if is enable executor, optional: true, false

W
wxyu 已提交
50 51 52 53 54 55 56 57 58
  resources:
    ssda:
      type: DISK
      device_id: 0
      enable_executor: false

    cpu:
      type: CPU
      device_id: 0
59
      enable_executor: false
W
wxyu 已提交
60

61
    gpu0:
W
wxyu 已提交
62 63
      type: GPU
      device_id: 0
Y
Yu Kun 已提交
64
      enable_executor: true
X
xj.lin 已提交
65 66 67
      gpu_resource_num: 2
      pinned_memory: 300
      temp_memory: 300
W
wxyu 已提交
68

W
wxyu 已提交
69
  # connection list, length: 0~N
W
wxyu 已提交
70 71 72 73
  # example:
  # connection_name:
  #   speed: 100                                        # unit: MS/s
  #   endpoint: ${resource_name}===${resource_name}
W
wxyu 已提交
74
  connections:
Y
Yu Kun 已提交
75 76 77
    io:
      speed: 500
      endpoint: ssda===cpu
W
wxyu 已提交
78
    pcie0:
Y
Yu Kun 已提交
79 80
      speed: 11000
      endpoint: cpu===gpu0
W
wxyu 已提交
81