server_config.yaml 1.3 KB
Newer Older
G
groot 已提交
1
server_config:
G
groot 已提交
2
  address: 127.0.0.1
G
groot 已提交
3
  port: 33001
G
groot 已提交
4 5
  transfer_protocol: json   #optional: binary, compact, json, debug
  server_mode: thread_pool    #optional: simple, thread_pool
G
groot 已提交
6 7

db_config:
G
groot 已提交
8
  db_path: /tmp/vecwise
G
groot 已提交
9
  db_backend_url: http://127.0.0.1
G
groot 已提交
10
  db_flush_interval: 5   #unit: second
G
groot 已提交
11
  idmapper_max_open_file: 128
G
groot 已提交
12 13 14 15

log_config:
  global:
    format: "%datetime | %level | %logger | %msg"
G
groot 已提交
16
    filename: "/tmp/vecwise/logs/vecwise_engine-%datetime{%h:%m}-global.log"
G
groot 已提交
17 18 19 20 21 22 23
    enabled: true
    to_file: true
    to_standard_output: true
    subsecond_precision: 3
    performance_tracking: false
    max_log_file_size: 2097152  # throw log files away after 2mb
  debug:
G
groot 已提交
24
    filename: "/tmp/vecwise/logs/vecwise_engine-%datetime{%h:%m}-debug.log"
G
groot 已提交
25 26
    enabled: true
  warning:
G
groot 已提交
27
    filename: "/tmp/vecwise/logs/vecwise_engine-%datetime{%h:%m}-warning.log"
G
groot 已提交
28
  trace:
G
groot 已提交
29
    filename: "/tmp/vecwise/logs/vecwise_engine-%datetime{%h:%m}-trace.log"
G
groot 已提交
30 31 32 33 34 35
  verbose:
    format: "%datetime{%d/%m/%y} | %level-%vlevel | %msg"
    to_file: false
    to_standard_output: true
  error:
    enabled: false
G
groot 已提交
36
    filename: "/tmp/vecwise/logs/vecwise_engine-%datetime{%h:%m}-error.log"
G
groot 已提交
37 38
  fatal:
    enabled: false
G
groot 已提交
39
    filename: "/tmp/vecwise/logs/vecwise_engine-%datetime{%h:%m}-fatal.log"
G
groot 已提交
40 41

cache_config:
G
groot 已提交
42 43
    cpu_cache_capacity: 16   # unit: GB
    gpu_cache_capacity:  2   # unit: GB