test.toml 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. [log]
  2. stdout = true
  3. [bm]
  4. addr = "0.0.0.0:8080"
  5. timeout = "1s"
  6. [mysql]
  7. addr = "172.16.38.91:3306"
  8. dsn = "root:123456@tcp(172.16.38.91:3306)/bbq?timeout=200ms&readTimeout=200ms&writeTimeout=200ms&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  9. readDSN = ["root:123456@tcp(172.16.38.91:3306)/bbq?timeout=200ms&readTimeout=200ms&writeTimeout=200ms&parseTime=true&loc=Local&charset=utf8,utf8mb4"]
  10. active = 20
  11. idle = 10
  12. idleTimeout ="4h"
  13. queryTimeout = "100ms"
  14. execTimeout = "100ms"
  15. tranTimeout = "200ms"
  16. [redis]
  17. name = "recsys-recall-service"
  18. proto = "tcp"
  19. addr = "172.16.38.91:6379"
  20. idle = 10
  21. active = 10
  22. dialTimeout = "1s"
  23. readTimeout = "1s"
  24. writeTimeout = "1s"
  25. idleTimeout = "10s"
  26. expire = "1m"
  27. [bfredis]
  28. name = "recsys-recall-service"
  29. proto = "tcp"
  30. addr = "172.16.38.91:6379"
  31. idle = 10
  32. active = 10
  33. dialTimeout = "1s"
  34. readTimeout = "1s"
  35. writeTimeout = "1s"
  36. idleTimeout = "10s"
  37. expire = "1m"
  38. [httpClient]
  39. [httpClient.normal]
  40. dial = "1s"
  41. timeout = "10s"
  42. keepAlive = "60s"
  43. timer = 10
  44. key = "7c7ac0db1aa05587"
  45. secret = "9a6d62d93290c5f771ad381e9ca23f26"
  46. [httpClient.normal.breaker]
  47. window = "3s"
  48. sleep = "100ms"
  49. bucket = 10
  50. ratio = 0.5
  51. request = 100
  52. [httpClient.slow]
  53. dial = "500ms"
  54. timeout = "1s"
  55. keepAlive = "60s"
  56. timer = 10
  57. key = "7c7ac0db1aa05587"
  58. secret = "9a6d62d93290c5f771ad381e9ca23f26"
  59. [httpClient.slow.breaker]
  60. window = "3s"
  61. sleep = "100ms"
  62. bucket = 10
  63. ratio = 0.5
  64. request = 100
  65. [workPool]
  66. capacity = 1024
  67. maxWorkers = 512
  68. maxIdleWorkers = 256
  69. minIdleWorkers = 128
  70. keepAlive = "30s"
  71. [forwardIndex]
  72. localPath = "/Users/daiwei/Downloads/idx.txt"
  73. remotePath = "http://172.16.38.91/fs/out.txt"
  74. md5Path = "http://172.16.38.91/fs/out.md5"
  75. protocol = "http"
  76. reloadDucation = "1800s"
  77. [localCache]
  78. l1Tags = []
  79. l2Tags = []
  80. level1 = "300s"
  81. level2 = "600s"
  82. level3 = "900s"
  83. maxAge = "1800s"