server_config.yaml 1.3 KB
Newer Older
G
groot 已提交
1 2
server_config:
  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
  db_path: /tmp/vecwise
G
groot 已提交
7
  db_backend_url: http://127.0.0.1
G
groot 已提交
8
  db_flush_interval: 5   #unit: second
G
groot 已提交
9 10 11 12

log_config:
  global:
    format: "%datetime | %level | %logger | %msg"
G
groot 已提交
13
    filename: "/tmp/vecwise/logs/vecwise_engine-%datetime{%h:%m}-global.log"
G
groot 已提交
14 15 16 17 18 19 20
    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 已提交
21
    filename: "/tmp/vecwise/logs/vecwise_engine-%datetime{%h:%m}-debug.log"
G
groot 已提交
22 23
    enabled: true
  warning:
G
groot 已提交
24
    filename: "/tmp/vecwise/logs/vecwise_engine-%datetime{%h:%m}-warning.log"
G
groot 已提交
25
  trace:
G
groot 已提交
26
    filename: "/tmp/vecwise/logs/vecwise_engine-%datetime{%h:%m}-trace.log"
G
groot 已提交
27 28 29 30 31 32
  verbose:
    format: "%datetime{%d/%m/%y} | %level-%vlevel | %msg"
    to_file: false
    to_standard_output: true
  error:
    enabled: false
G
groot 已提交
33
    filename: "/tmp/vecwise/logs/vecwise_engine-%datetime{%h:%m}-error.log"
G
groot 已提交
34 35
  fatal:
    enabled: false
G
groot 已提交
36
    filename: "/tmp/vecwise/logs/vecwise_engine-%datetime{%h:%m}-fatal.log"
G
groot 已提交
37 38

cache_config:
G
groot 已提交
39 40
    cpu_cache_capacity: 16   # unit: GB
    gpu_cache_capacity:  2   # unit: GB