test.toml 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. [log]
  2. # dir = "/tmp/log/recsys"
  3. stdout = true
  4. [bm]
  5. addr = "0.0.0.0:8804"
  6. timeout = "2s"
  7. [mysql]
  8. addr = "127.0.0.1:3306"
  9. dsn = "test:test@tcp(127.0.0.1:3306)/test?timeout=200ms&readTimeout=200ms&writeTimeout=200ms&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  10. readDSN = ["test:test@tcp(127.0.0.2:3306)/test? timeout=200ms&readTimeout=200ms&writeTimeout=200ms&parseTime=true&loc=Local&charset=utf8,utf8mb4","test:test@tcp(127.0.0.3:3306)/test?timeout=200ms&readTimeout=200ms&writeTimeout=200ms&parseTime=true&loc=Local&charset=utf8,utf8mb4"]
  11. active = 20
  12. idle = 10
  13. idleTimeout ="4h"
  14. queryTimeout = "100ms"
  15. execTimeout = "100ms"
  16. tranTimeout = "200ms"
  17. [redis]
  18. name = "recsys-service.user_profile"
  19. proto = "tcp"
  20. addr = "172.16.38.91:6379"
  21. idle = 10
  22. active = 10
  23. dialTimeout = "1s"
  24. readTimeout = "1s"
  25. writeTimeout = "1s"
  26. idleTimeout = "10s"
  27. expire = "1m"
  28. [bfredis]
  29. name = "recsys-service.bloomfilter"
  30. proto = "tcp"
  31. addr = "172.16.38.91:6379"
  32. idle = 10
  33. active = 10
  34. dialTimeout = "1s"
  35. readTimeout = "1s"
  36. writeTimeout = "1s"
  37. idleTimeout = "10s"
  38. expire = "1m"
  39. [memcache]
  40. name = "recsys-service"
  41. proto = "tcp"
  42. addr = ""
  43. active = 50
  44. idle = 10
  45. dialTimeout = "1s"
  46. readTimeout = "1s"
  47. writeTimeout = "1s"
  48. idleTimeout = "10s"
  49. expire = "24h"
  50. [httpClient]
  51. [httpClient.normal]
  52. dial = "500ms"
  53. timeout = "1s"
  54. keepAlive = "60s"
  55. timer = 10
  56. key = "7c7ac0db1aa05587"
  57. secret = "9a6d62d93290c5f771ad381e9ca23f26"
  58. [httpClient.normal.breaker]
  59. window = "3s"
  60. sleep = "100ms"
  61. bucket = 10
  62. ratio = 0.5
  63. request = 100
  64. [httpClient.slow]
  65. dial = "500ms"
  66. timeout = "1s"
  67. keepAlive = "60s"
  68. timer = 10
  69. key = "7c7ac0db1aa05587"
  70. secret = "9a6d62d93290c5f771ad381e9ca23f26"
  71. [httpClient.slow.breaker]
  72. window = "3s"
  73. sleep = "100ms"
  74. bucket = 10
  75. ratio = 0.5
  76. request = 100
  77. [grpcClient]
  78. [grpcClient.user]
  79. addr = "discovery://default/bbq.service.user"
  80. [grpcClient.user.wardenConf]
  81. dial = "3000ms"
  82. timeout = "5000ms"
  83. [grpcClient.recall]
  84. addr = "172.22.38.129:9000"
  85. [grpcClient.recall.wardenConf]
  86. dial = "3000ms"
  87. timeout = "5000ms"
  88. [grpcClient.relation]
  89. addr = "discovery://default/account.service.relation"
  90. [grpcClient.relation.wardenConf]
  91. dial = "3000ms"
  92. timeout = "5000ms"
  93. [infoc]
  94. taskID = "001555"
  95. proto = "tcp"
  96. addr = "172.18.33.124:15140"
  97. chanSize = 10240
  98. [workerPool]
  99. maxWorkers = 512
  100. maxIdleWorkers = 256
  101. minIdleWorkers = 128
  102. keepAlive = "30s"