sms-service-test.toml 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. # This is a TOML document. Boom.
  2. version = "1.0.0"
  3. user = "nobody"
  4. dir = "./"
  5. family = "sms-service"
  6. [xlog]
  7. dir = "/data/log/sms-service/"
  8. [httpServer]
  9. addr = "0.0.0.0:7121"
  10. maxListen = 1000
  11. timeout = "1s"
  12. readTimeout = "1s"
  13. writeTimeout = "1s"
  14. [httpClient]
  15. key = "4699a07e59d7149e"
  16. secret = "test"
  17. dial = "100ms"
  18. timeout = "1s"
  19. keepAlive = "60s"
  20. timer = 128
  21. [httpClient.breaker]
  22. window = "3s"
  23. sleep = "100ms"
  24. bucket = 10
  25. ratio = 0.5
  26. request = 100
  27. [grpc]
  28. timeout = "1s"
  29. addr = "0.0.0.0:9000"
  30. [mysql]
  31. addr = "172.16.33.205:3306"
  32. dsn = "sms:s2eEdt4kAPW4SEOk@tcp(172.16.33.205:3306)/sms?timeout=5s&readTimeout=5s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  33. active = 5
  34. idle = 2
  35. IdleTimeout ="4h"
  36. queryTimeout = "1s"
  37. execTimeout = "1s"
  38. tranTimeout = "1s"
  39. [mysql.breaker]
  40. window = "3s"
  41. sleep = "100ms"
  42. bucket = 10
  43. ratio = 0.5
  44. request = 100
  45. [databus]
  46. key = "9765cdac5894f2ba"
  47. secret="f4237d712c3ed1e7fab0137b81418b14"
  48. group= "Sms-MainWebSvr-P"
  49. topic= "Sms-T"
  50. action="pub"
  51. name = "sms-pub"
  52. proto = "tcp"
  53. addr = "172.18.33.50:6205"
  54. idle = 100
  55. active = 100
  56. dialTimeout = "1s"
  57. readTimeout = "60s"
  58. writeTimeout = "1s"
  59. idleTimeout = "10s"
  60. [userReport]
  61. key = "2511663d546f1413"
  62. secret = "cde3b480836cc76df3d635470f991caa"
  63. group = "LogUserAction-MainSearch-P"
  64. topic = "LogUserAction-T"
  65. action = "pub"
  66. buffer = 10240
  67. name = "log-user-action/log-sub"
  68. proto = "tcp"
  69. addr = "172.18.33.50:6205"
  70. active = 100
  71. idle = 100
  72. dialTimeout = "200ms"
  73. readTimeout = "200ms"
  74. writeTimeout = "200ms"
  75. idleTimeout = "80s"
  76. [sms]
  77. pickUpTask = true
  78. loadTaskInteval = "5s"
  79. taskWorker = 10
  80. batchSize = 100