sonic.cfg 889 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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 = "error"
  7. [channel]
  8. inet = "0.0.0.0:1491"
  9. tcp_timeout = 300
  10. auth_password = "SecretPassword1234"
  11. [channel.search]
  12. query_limit_default = 10
  13. query_limit_maximum = 100
  14. query_alternates_try = 4
  15. suggest_limit_default = 5
  16. suggest_limit_maximum = 20
  17. [store]
  18. [store.kv]
  19. path = "/var/lib/sonic/store/kv/"
  20. retain_word_objects = 1000
  21. [store.kv.pool]
  22. inactive_after = 1800
  23. [store.kv.database]
  24. flush_after = 900
  25. compress = true
  26. parallelism = 2
  27. max_files = 100
  28. max_compactions = 1
  29. max_flushes = 1
  30. write_buffer = 16384
  31. write_ahead_log = true
  32. [store.fst]
  33. path = "/var/lib/sonic/store/fst/"
  34. [store.fst.pool]
  35. inactive_after = 300
  36. [store.fst.graph]
  37. consolidate_after = 180
  38. max_size = 2048
  39. max_words = 250000