push-live-test.toml 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  1. # This is a TOML document. Boom
  2. version = "1.0.0"
  3. user = "root"
  4. pid = "/tmp/push-live.pid"
  5. dir = "/data/dev/go/src/go-common/app/interface/live/push-live"
  6. perf = "0.0.0.0:6420"
  7. env = "dev"
  8. [log]
  9. dir = "/data/log/push-live"
  10. family = "push-live"
  11. [tracer]
  12. family = "push-live"
  13. proto = "udp"
  14. addr = "172.16.33.46:5140"
  15. [bm]
  16. [bm.inner]
  17. addr = "0.0.0.0:9901"
  18. maxListen = 10
  19. timeout = "1s"
  20. [bm.local]
  21. addr = "0.0.0.0:9902"
  22. maxListen = 10
  23. timeout = "1s"
  24. [mysql]
  25. addr = "172.22.34.101:3312"
  26. dsn = "livetestuat:livetestuat20180711@tcp(172.22.34.101:3312)/app_switch?timeout=5s&readTimeout=30s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  27. active = 5
  28. idle = 10
  29. idleTimeout ="4h"
  30. queryTimeout = "2s"
  31. execTimeout = "2s"
  32. tranTimeout = "2s"
  33. [mysql.breaker]
  34. window = "3s"
  35. sleep = "100ms"
  36. bucket = 10
  37. ratio = 0.5
  38. request = 100
  39. [hbase]
  40. master = ""
  41. meta = ""
  42. dialTimeout = "1s"
  43. readTimeout = "2s"
  44. readsTimeout = "5s"
  45. writeTimeout = "2s"
  46. writesTimeout = "5s"
  47. [hbase.zookeeper]
  48. root = ""
  49. addrs = ["172.18.33.131:2181","172.18.33.168:2181","172.18.33.169:2181"]
  50. timeout = "30s"
  51. [blackListHBase]
  52. master = ""
  53. meta = ""
  54. dialTimeout = "1s"
  55. readTimeout = "2s"
  56. readsTimeout = "5s"
  57. writeTimeout = "2s"
  58. writesTimeout = "5s"
  59. [blackListHBase.zookeeper]
  60. root = ""
  61. addrs = ["172.19.40.5:2181","172.19.40.6:2181","172.19.40.7:2181"]
  62. timeout = "30s"
  63. [liveRoomSub]
  64. key = "ec4c0820d525d67b"
  65. secret = "e20f8f664bf10722efeb6aac0cc16011"
  66. group = "StartLiveNotify-LiveLive-S"
  67. topic = "StartLiveNotify-T"
  68. action ="sub"
  69. name = "interface/push-live"
  70. proto = "tcp"
  71. addr = "172.18.33.50:6205"
  72. idle = 10
  73. active = 100
  74. dialTimeout = "10s"
  75. readTimeout = "40s"
  76. writeTimeout = "10s"
  77. idleTimeout = "60s"
  78. [liveCommonSub]
  79. key = "ec4c0820d525d67b"
  80. secret = "e20f8f664bf10722efeb6aac0cc16011"
  81. group = "LivePushCommon-LiveLive-S"
  82. topic = "LivePushCommon-T"
  83. action ="sub"
  84. name = "interface/push-live"
  85. proto = "tcp"
  86. addr = "172.18.33.50:6205"
  87. idle = 10
  88. active = 100
  89. dialTimeout = "10s"
  90. readTimeout = "40s"
  91. writeTimeout = "10s"
  92. idleTimeout = "60s"
  93. [push]
  94. multiAPI = "http://uat-api.bilibili.co/x/internal/push-strategy/task/add"
  95. appID = 1
  96. businessID = 4
  97. businessToken = "n00nso54h75t5irj8phmunvymh4cl3yt"
  98. linkType = 3
  99. pushRetryTimes = 3
  100. pushOnceLimit = 500000
  101. defaultCopyWriting = "你关注的【%s】正在直播~"
  102. specialCopyWriting = "你特别关注的【%s】正在直播~"
  103. consumerProcNum = 10
  104. intervalLimit = 5000
  105. [push.PushFilterIgnores]
  106. smooth = [101]
  107. limit = [111]
  108. [HTTPClient]
  109. dial = "1s"
  110. timeout = "5s"
  111. keepAlive = "60s"
  112. key = "fb06a25c6338edbc"
  113. secret = "fd10bd177559780c2e4a44f1fa47fa83"
  114. [HTTPClient.breaker]
  115. window ="1s"
  116. sleep ="10ms"
  117. bucket = 10
  118. ratio = 0.5
  119. request = 100
  120. [redis]
  121. [redis.pushInterval]
  122. name = "push-live/pushInterval"
  123. proto = "tcp"
  124. addr = "172.18.33.82:6379"
  125. active = 20
  126. idle = 10
  127. dialTimeout = "50ms"
  128. readTimeout = "100ms"
  129. writeTimeout = "100ms"
  130. idleTimeout = "80s"
  131. expire = "2h"