search-service-test.toml 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. version = "0.0.1"
  2. user = "nobody"
  3. pid = "/tmp/search-service.pid"
  4. dir = "./"
  5. perf = "127.0.0.1:7320"
  6. trace = false
  7. debug = false
  8. [xlog]
  9. dir = "/data/log/search-service/"
  10. [HTTPServer]
  11. addr = "0.0.0.0:7322"
  12. maxListen = 1000
  13. timeout = "1s"
  14. readTimeout = "1s"
  15. writeTimeout = "1s"
  16. [pagination]
  17. pageNum = 1
  18. pageSize = 30
  19. maxPageNum = 5000
  20. maxPageSize = 1000
  21. [es]
  22. [es.archiveInternal]
  23. addr = ["http://172.18.33.71:9200"]
  24. [es.dmInternal]
  25. addr = ["http://172.18.33.71:9200"]
  26. [es.dmExternal]
  27. addr = ["http://172.18.33.71:9200"]
  28. [es.replyInternal]
  29. addr = ["http://172.18.33.71:9200"]
  30. [es.replyExternal]
  31. addr = ["http://172.18.33.71:9200"]
  32. [es.articleInternal]
  33. addr = ["http://172.18.33.71:9200"]
  34. [redis]
  35. name = "search-api"
  36. proto = "tcp"
  37. addr = "172.18.33.71:6379"
  38. active = 10
  39. idle = 5
  40. dialTimeout = "1s"
  41. readTimeout = "1s"
  42. writeTimeout = "1s"
  43. idleTimeout = "10s"
  44. expire = "24h"
  45. [SMS]
  46. phone = "17621966518"
  47. token = "f5a658b2-5926-4b71-96c3-7d3777b7d256"
  48. [httpClient]
  49. key = "app key"
  50. secret = "app secret"
  51. dial = "100ms"
  52. timeout = "1s"
  53. keepAlive = "60s"
  54. timer = 128
  55. [httpClient.breaker]
  56. window ="10s"
  57. sleep ="10ms"
  58. bucket = 10
  59. ratio = 0.5
  60. request = 100