live-wallet-test.toml 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. # This is a TOML document. Boom
  2. version = "1.0.0"
  3. user = "root"
  4. dir = "/root/golang/go-project/src/go-common/business/service/live-wallet"
  5. family = "live-wallet"
  6. address = ""
  7. trace = false
  8. debug = false
  9. perf = "0.0.0.0:20201"
  10. [log]
  11. dir = "/data/log/live-wallet-service"
  12. [db]
  13. [db.wallet]
  14. addr = "172.22.34.101:3312"
  15. dsn = "livetestuat:livetestuat20180711@tcp(172.22.34.101:3312)/live_wallet?timeout=5s&readTimeout=30s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  16. active = 5
  17. idle = 5
  18. queryTimeout = "1s"
  19. execTimeout = "1s"
  20. tranTimeout = "2s"
  21. [db.wallet.breaker]
  22. window = "3s"
  23. sleep = "100ms"
  24. bucket = 10
  25. ratio = 0.5
  26. request = 100
  27. [bm]
  28. [bm.inner]
  29. addr = "0.0.0.0:9901"
  30. maxListen = 10
  31. timeout = "1s"
  32. [bm.local]
  33. addr = "0.0.0.0:9902"
  34. maxListen = 10
  35. timeout = "1s"
  36. [httpClient]
  37. key = "fb06a25c6338edbc"
  38. secret = "fd10bd177559780c2e4a44f1fa47fa83"
  39. dial = "1s"
  40. timeout = "4s"
  41. keepAlive = "60s"
  42. timer = 1000
  43. [httpClient.breaker]
  44. window = "3s"
  45. sleep = "100ms"
  46. bucket = 10
  47. ratio = 0.5
  48. request = 100
  49. [identify]
  50. whiteAccessKey = ""
  51. whiteMid = 0
  52. csrfOn = false
  53. [identify.app]
  54. key = "7c7ac0db1aa05587"
  55. secret = "9a6d62d93290c5f771ad381e9ca23f26"
  56. [identify.memcache]
  57. name = "go-business/identify"
  58. proto = "tcp"
  59. addr = "172.16.33.251:11211"
  60. active = 15
  61. idle = 10
  62. dialTimeout = "1s"
  63. readTimeout = "1s"
  64. writeTimeout = "1s"
  65. idleTimeout = "80s"
  66. [identify.host]
  67. auth = "http://passport.bilibili.co"
  68. secret = "http://open.bilibili.co"
  69. [identify.httpClient]
  70. key = "7c7ac0db1aa05587"
  71. secret = "9a6d62d93290c5f771ad381e9ca23f26"
  72. dial = "30ms"
  73. timeout = "100ms"
  74. keepAlive = "60s"
  75. [identify.httpClient.breaker]
  76. window = "10s"
  77. sleep = "100ms"
  78. bucket = 10
  79. ratio = 0.5
  80. request = 100
  81. [identify.httpClient.url]
  82. "http://passport.bilibili.co/intranet/auth/tokenInfo" = {timeout = "100ms"}
  83. "http://passport.bilibili.co/intranet/auth/cookieInfo" = {timeout = "100ms"}
  84. "http://open.bilibili.co/api/getsecret" = {timeout = "500ms"}
  85. [memcache]
  86. walletExpire = "3s"
  87. [memcache.wallet]
  88. name = "live-wallet-service/wallet"
  89. proto = "tcp"
  90. addr = "172.18.33.67:11211"
  91. idle = 5
  92. active = 10
  93. dialTimeout = "1s"
  94. readTimeout = "1s"
  95. writeTimeout = "1s"
  96. idleTimeout = "80s"
  97. [redis]
  98. [redis.wallet]
  99. name = "wallet/wallet"
  100. proto = "tcp"
  101. addr = "172.18.33.67:6379"
  102. idle = 100
  103. active = 100
  104. dialTimeout = "500ms"
  105. readTimeout = "1s"
  106. writeTimeout = "1s"
  107. idleTimeout = "80s"
  108. expire = "10m"
  109. [databus]
  110. [databus.Change]
  111. key = "ec4c0820d525d67b"
  112. secret= "2bdf3bd4ecab041b5d5640a1da4f7f81"
  113. group= "LiveWalletChange-LiveLive-P"
  114. topic= "LiveWalletChange-T"
  115. action="pub"
  116. name = "live-wallet"
  117. proto = "tcp"
  118. addr = "172.16.38.154:6205"
  119. idle = 100
  120. active = 100
  121. dialTimeout = "1s"
  122. readTimeout = "1s"
  123. writeTimeout = "1s"
  124. idleTimeout = "10s"