sonic.cfg 930 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. # Sonic
  2. # Fast, lightweight and schema-less search backend
  3. # Configuration file
  4. # Example: https://github.com/valeriansaliou/sonic/blob/master/config.cfg
  5. [server]
  6. # log_level = "debug"
  7. log_level = "warn"
  8. [channel]
  9. inet = "0.0.0.0:1491"
  10. tcp_timeout = 300
  11. auth_password = "${env.SEARCH_BACKEND_PASSWORD}"
  12. [channel.search]
  13. query_limit_default = 65535
  14. query_limit_maximum = 65535
  15. query_alternates_try = 10
  16. suggest_limit_default = 5
  17. suggest_limit_maximum = 20
  18. [store]
  19. [store.kv]
  20. path = "/var/lib/sonic/store/kv/"
  21. retain_word_objects = 100000
  22. [store.kv.pool]
  23. inactive_after = 1800
  24. [store.kv.database]
  25. flush_after = 900
  26. compress = true
  27. parallelism = 2
  28. max_files = 100
  29. max_compactions = 1
  30. max_flushes = 1
  31. write_buffer = 16384
  32. write_ahead_log = true
  33. [store.fst]
  34. path = "/var/lib/sonic/store/fst/"
  35. [store.fst.pool]
  36. inactive_after = 300
  37. [store.fst.graph]
  38. consolidate_after = 180
  39. max_size = 2048
  40. max_words = 250000