resource-service-test.toml 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  1. spLimit = "500ms"
  2. hashNum = 1000000
  3. monitorURL = true
  4. monitorArchive = true
  5. WeChatToken = "uYsRqXPjnbyXDCba"
  6. WeChatSecret = "tUILeGIXJHFSUdwfLjBHDZJXmLgYpgEy"
  7. WeChantUsers = ["zhaobingqing"]
  8. [reload]
  9. ad="10s"
  10. [note]
  11. noteNumber = 4
  12. [Host]
  13. bangumi = "http://bangumi.bilibili.com"
  14. ad = "http://cm.bilibili.co"
  15. dataPlat = "http://172.18.33.162:6193"
  16. [xlog]
  17. dir = "/data/log/resource-service/"
  18. [httpClient]
  19. key = "f022126a8a365e20"
  20. secret = "b7b86838145d634b487e67b811b8fab2"
  21. dial = "500ms"
  22. timeout = "2s"
  23. keepAlive = "60s"
  24. timer = 1000
  25. [httpClient.breaker]
  26. window ="10s"
  27. sleep ="10ms"
  28. bucket = 10
  29. ratio = 0.1
  30. request = 10
  31. [bm]
  32. [bm.inner]
  33. addr = "0.0.0.0:6421"
  34. timeout = "1s"
  35. [bm.local]
  36. addr = "0.0.0.0:6423"
  37. timeout = "1s"
  38. [rpcServer2]
  39. [[rpcServer2.servers]]
  40. proto = "tcp"
  41. addr = "0.0.0.0:6429"
  42. weight = 10
  43. [rpcServer2.zookeeper]
  44. root = "/microservice/resource-service/"
  45. addrs = ["172.18.33.50:2199","172.18.33.51:2199","172.18.33.52:2199"]
  46. timeout = "30s"
  47. [db]
  48. [db.res]
  49. addr = "172.16.33.205:3308"
  50. dsn = "test:test@tcp(172.16.33.205:3308)/bilibili_resource?timeout=5s&readTimeout=5s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  51. active = 5
  52. idle = 2
  53. idleTimeout ="4h"
  54. queryTimeout = "1s"
  55. execTimeout = "1s"
  56. tranTimeout = "1s"
  57. [db.res.breaker]
  58. window = "3s"
  59. sleep = "100ms"
  60. bucket = 10
  61. ratio = 0.5
  62. request = 100
  63. [db.ads]
  64. addr = "172.16.33.205:3308"
  65. dsn = "test:test@tcp(172.16.33.205:3308)/bilibili_ads?timeout=5s&readTimeout=5s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  66. active = 5
  67. idle = 2
  68. idleTimeout ="4h"
  69. queryTimeout = "1s"
  70. execTimeout = "1s"
  71. tranTimeout = "1s"
  72. [db.ads.breaker]
  73. window = "3s"
  74. sleep = "100ms"
  75. bucket = 10
  76. ratio = 0.5
  77. request = 100
  78. [db.show]
  79. addr = "172.16.33.205:3308"
  80. dsn = "test:test@tcp(172.16.33.205:3308)/bilibili_show?timeout=1s&readTimeout=1s&writeTimeout=1s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  81. active = 5
  82. idle = 1
  83. idleTimeout ="4h"
  84. queryTimeout = "1s"
  85. execTimeout = "1s"
  86. tranTimeout = "1s"
  87. [db.show.breaker]
  88. window = "3s"
  89. sleep = "100ms"
  90. bucket = 10
  91. ratio = 0.5
  92. request = 100
  93. [db.manager]
  94. addr = "172.16.33.205:3308"
  95. dsn = "test:test@tcp(172.16.33.205:3308)/bilibili_manager?timeout=1s&readTimeout=1s&writeTimeout=1s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  96. active = 5
  97. idle = 1
  98. idleTimeout ="4h"
  99. queryTimeout = "1s"
  100. execTimeout = "1s"
  101. tranTimeout = "1s"
  102. [db.manager.breaker]
  103. window = "3s"
  104. sleep = "100ms"
  105. bucket = 10
  106. ratio = 0.5
  107. request = 100
  108. [redis]
  109. [redis.ads]
  110. name = "resource-service"
  111. proto = "tcp"
  112. #addr = "172.16.33.54:6379"
  113. addr = "172.18.33.60:6975"
  114. idle = 10
  115. active = 10
  116. dialTimeout = "1s"
  117. readTimeout = "1s"
  118. writeTimeout = "1s"
  119. idleTimeout = "10s"
  120. expire = "1m"
  121. [archiveSub]
  122. key = "8e27ab7e39270b59"
  123. secret = "477df6a068d7332a163f95abbad2079c"
  124. group = "Archive-MainAppSvr-2-S"
  125. topic = "Archive-T"
  126. action = "sub"
  127. name = "archive-job/archivesub"
  128. proto = "tcp"
  129. addr = "172.18.33.50:6205"
  130. idle = 1
  131. active = 1
  132. dialTimeout = "1s"
  133. readTimeout = "60s"
  134. writeTimeout = "1s"
  135. idleTimeout = "10s"