test.toml 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. [log]
  2. dir = "/data/log/riot-search"
  3. [Riot]
  4. Dict = "/data/static/riot-search/dictionary.txt"
  5. StopToken = "/data/static/riot-search/stop_tokens.txt"
  6. NumShards = 4
  7. Timeout = 800
  8. FlushTime = 10
  9. [BM]
  10. addr = "0.0.0.0:7871"
  11. timeout = "1s"
  12. [HTTPClient]
  13. key = "test"
  14. secret = "test"
  15. dial = "1s"
  16. timeout = "1s"
  17. keepAlive = "60s"
  18. timer = 1000
  19. [httpClient.breaker]
  20. window = "10s"
  21. sleep = "100ms"
  22. bucket = 10
  23. ratio = 0.5
  24. request = 100
  25. [Databus]
  26. key = "2511663d546f1413"
  27. secret = "cde3b480836cc76df3d635470f991caa"
  28. group = "ArchiveNotify-MainSearch-S"
  29. topic = "ArchiveNotify-T"
  30. action ="sub"
  31. name = "riot"
  32. proto = "tcp"
  33. addr = "172.18.33.50:6205"
  34. idle = 1
  35. active = 1
  36. dialTimeout = "1s"
  37. readTimeout = "40s"
  38. writeTimeout = "1s"
  39. idleTimeout = "60s"
  40. [Mysql]
  41. addr = "172.22.34.101:3306"
  42. dsn = "bili_search:BzwF6Ez64RT6Yy2alSKDFGCPgGX5tMlj@tcp(172.22.34.101:3306)/bilibili_archive?timeout=5s&readTimeout=5s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8"
  43. active = 5
  44. idle = 2
  45. idleTimeout ="4h"
  46. queryTimeout = "1s"
  47. execTimeout = "1s"
  48. tranTimeout = "1s"
  49. [mysql.breaker]
  50. window = "3s"
  51. sleep = "100ms"
  52. bucket = 10
  53. ratio = 0.5
  54. request = 100