member-service-example.toml 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157
  1. # This is a TOML document. Boom.
  2. [xlog]
  3. stdout=true
  4. [rpcServer2]
  5. [mysql]
  6. addr = "172.16.33.205"
  7. dsn = "test:test@tcp(172.16.33.205:3308)/bilibili_member?timeout=5s&readTimeout=5s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  8. active = 5
  9. idle = 2
  10. IdleTimeout ="4h"
  11. queryTimeout = "100ms"
  12. execTimeout = "100ms"
  13. tranTimeout = "200ms"
  14. [mysql.breaker]
  15. window = "3s"
  16. sleep = "100ms"
  17. bucket = 10
  18. ratio = 0.5
  19. request = 100
  20. [accMysql]
  21. addr = "172.16.33.205:3306"
  22. dsn = "account:wx2U1MwXRyWEuURw@tcp(172.16.33.205:3306)/account?timeout=5s&readTimeout=5s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  23. active = 50
  24. idle = 5
  25. idleTimeout = "4h"
  26. queryTimeout = "2s"
  27. execTimeout = "2s"
  28. tranTimeout = "2s"
  29. [accMysql.breaker]
  30. window = "3s"
  31. sleep = "100ms"
  32. bucket = 10
  33. ratio = 0.5
  34. request = 100
  35. [memcache]
  36. name = "member-service"
  37. proto = "tcp"
  38. addr = "172.18.33.61:11219"
  39. idle = 5
  40. active = 10
  41. dialTimeout = "1s"
  42. readTimeout = "1s"
  43. writeTimeout = "1s"
  44. idleTimeout = "10s"
  45. [cacheTTL]
  46. baseTTL = "24h"
  47. moralTTL = "24h"
  48. captureTimesTTL = "1h"
  49. captureCodeTTL = "5m"
  50. captureErrTimesTTL = "5m"
  51. applyInfoTTL = "5m"
  52. [redis]
  53. name = "member-service"
  54. proto = "tcp"
  55. addr = "127.0.0.1:6379"
  56. idle = 100
  57. active = 100
  58. dialTimeout = "1s"
  59. readTimeout = "1s"
  60. writeTimeout = "1s"
  61. idleTimeout = "10s"
  62. [httpClient]
  63. key="7d9f6f6fe2a898e8"
  64. secret= "4de2ccdbd9db69be0c2c6437bfe6eb69"
  65. dial = "500ms"
  66. timeout = "1s"
  67. keepAlive = "60s"
  68. timer = 10
  69. [httpClient.breaker]
  70. window = "3s"
  71. sleep = "100ms"
  72. bucket = 10
  73. ratio = 0.5
  74. request = 100
  75. [databus]
  76. key = "4ba46ba31f9a44ef"
  77. secret = "e4c5a7fce28695209e6b4f0af8cf91c5"
  78. group = "AccountLog-MainAccount-P"
  79. topic = "AccountLog-T"
  80. action = "pub"
  81. name = "member-service/databus"
  82. proto = "tcp"
  83. addr = "172.18.33.50:6205"
  84. idle = 100
  85. active = 100
  86. dialTimeout = "1s"
  87. readTimeout = "60s"
  88. writeTimeout = "1s"
  89. idleTimeout = "10s"
  90. [accountnotify]
  91. key = "4ba46ba31f9a44ef"
  92. secret = "e4c5a7fce28695209e6b4f0af8cf91c5"
  93. group = "AccountNotify-MainAccount-P"
  94. topic = "AccountNotify-T"
  95. action = "pub"
  96. buffer = 2048
  97. name = "account-notify-job/databus"
  98. proto = "tcp"
  99. addr = "172.18.33.50:6205"
  100. idle = 1
  101. active = 1
  102. dialTimeout = "1s"
  103. readTimeout = "60s"
  104. writeTimeout = "1s"
  105. idleTimeout = "10s"
  106. [wardenServer]
  107. addr = "0.0.0.0:9000"
  108. timeout = "1s"
  109. [host]
  110. search="http://uat-bili-search.bilibili.co"
  111. [realnameProperty]
  112. imgURLTemplate = "http://uat-manager.bilibili.co/x/admin/member/realname/image/preview?token=%s&border_size=800"
  113. # block
  114. [BlockMySQL]
  115. addr = "172.16.33.205:3306"
  116. dsn = "bilibili_block:NfAKk5h6ZMkx9o3EZPO2BIX3doCqXy6H@tcp(172.16.33.205:3306)/bilibili_block?timeout=5s&readTimeout=5s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  117. active = 20
  118. idle = 10
  119. idleTimeout ="4h"
  120. queryTimeout = "1s"
  121. execTimeout = "1s"
  122. tranTimeout = "1s"
  123. [BlockMemcache]
  124. name = "block-service"
  125. proto = "tcp"
  126. addr = "172.18.33.60:11233"
  127. idle = 5
  128. active = 10
  129. dialTimeout = "1s"
  130. readTimeout = "1s"
  131. writeTimeout = "1s"
  132. idleTimeout = "10s"
  133. [blockCacheTTL]
  134. userTTL = "80m"
  135. userMaxRate = 20.0
  136. # 越大延长概率越小
  137. userT = 0.7
  138. [BlockProperty]
  139. msgURL = "http://message.bilibili.co/api/notify/send.user.notify.do"
  140. whiteList = [2, 46333]