live-userexp-service.toml 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. # This is a TOML document. Boom.
  2. version = "1.0.0"
  3. user = "root"
  4. pid = "/tmp/live-userexp-service.pid"
  5. dir = "./"
  6. perf = "0.0.0.0:20101"
  7. family = "live-userexp-service"
  8. [log]
  9. dir = "/data/log/live-userexp-service"
  10. [db]
  11. [db.exp]
  12. addr = "172.16.33.69:3306"
  13. dsn = "live:oWni@ElNs0P0C(dphdj*F1y4@tcp(172.16.33.69:3306)/live_user_exp?timeout=5s&readTimeout=30s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  14. active = 5
  15. idle = 5
  16. queryTimeout = "1s"
  17. execTimeout = "1s"
  18. tranTimeout = "2s"
  19. [db.exp.breaker]
  20. window = "3s"
  21. sleep = "100ms"
  22. bucket = 10
  23. ratio = 0.5
  24. request = 100
  25. [memcache]
  26. expExpire = "3s"
  27. [memcache.exp]
  28. name = "live-userexp-service/exp"
  29. proto = "tcp"
  30. addr = "172.16.33.251:11211"
  31. idle = 5
  32. active = 10
  33. dialTimeout = "1s"
  34. readTimeout = "1s"
  35. writeTimeout = "1s"
  36. idleTimeout = "80s"
  37. [bm]
  38. [bm.inner]
  39. addr = "0.0.0.0:8801"
  40. maxListen = 10
  41. timeout = "1s"
  42. [bm.local]
  43. addr = "0.0.0.0:8802"
  44. maxListen = 10
  45. timeout = "1s"
  46. [httpClient]
  47. [httpClient.read]
  48. key = "7c7ac0db1aa05587"
  49. secret = "9a6d62d93290c5f771ad381e9ca23f26"
  50. dial = "1s"
  51. timeout = "4s"
  52. keepAlive = "60s"
  53. timer = 1000
  54. [httpClient.read.breaker]
  55. window = "3s"
  56. sleep = "100ms"
  57. bucket = 10
  58. ratio = 0.5
  59. request = 100
  60. [httpClient.write]
  61. key = "7c7ac0db1aa05587"
  62. secret = "9a6d62d93290c5f771ad381e9ca23f26"
  63. dial = "1s"
  64. timeout = "3s"
  65. keepAlive = "60s"
  66. timer = 1000
  67. [httpClient.write.breaker]
  68. window = "3s"
  69. sleep = "100ms"
  70. bucket = 10
  71. ratio = 0.5
  72. request = 100
  73. [app]
  74. key = "7c7ac0db1aa05587"
  75. secret = "9a6d62d93290c5f771ad381e9ca23f26"
  76. [Report]
  77. key = "2511663d546f1413"
  78. secret = "cde3b480836cc76df3d635470f991caa"
  79. group = "LogUserAction-MainSearch-P"
  80. topic = "LogUserAction-T"
  81. action = "pub"
  82. buffer = 10240
  83. name = "log-user-action/log-sub"
  84. proto = "tcp"
  85. addr = "172.18.33.50:6205"
  86. active = 100
  87. idle = 100
  88. dialTimeout = "200ms"
  89. readTimeout = "200ms"
  90. writeTimeout = "200ms"
  91. idleTimeout = "80s"
  92. [identify]
  93. whiteAccessKey = ""
  94. whiteMid = 0
  95. csrfOn = false
  96. [identify.app]
  97. key = "7c7ac0db1aa05587"
  98. secret = "9a6d62d93290c5f771ad381e9ca23f26"
  99. [identify.memcache]
  100. name = "go-business/identify"
  101. proto = "tcp"
  102. addr = "172.16.33.251:11211"
  103. active = 5
  104. idle = 10
  105. dialTimeout = "1s"
  106. readTimeout = "1s"
  107. writeTimeout = "1s"
  108. idleTimeout = "80s"
  109. [identify.host]
  110. auth = "http://passport.bilibili.co"
  111. secret = "http://open.bilibili.co"
  112. [identify.httpClient]
  113. key = "7c7ac0db1aa05587"
  114. secret = "9a6d62d93290c5f771ad381e9ca23f26"
  115. dial = "30ms"
  116. timeout = "100ms"
  117. keepAlive = "60s"
  118. [identify.httpClient.breaker]
  119. window = "10s"
  120. sleep = "100ms"
  121. bucket = 10
  122. ratio = 0.5
  123. request = 100
  124. [identify.httpClient.url]
  125. "http://passport.bilibili.co/intranet/auth/tokenInfo" = {timeout = "100ms"}
  126. "http://passport.bilibili.co/intranet/auth/cookieInfo" = {timeout = "100ms"}
  127. "http://open.bilibili.co/api/getsecret" = {timeout = "500ms"}