push-service-test.toml 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  1. version = "1.0.0"
  2. user = "nobody"
  3. pid = "/tmp/push-service.pid"
  4. dir = "./"
  5. family = "push-service"
  6. [log]
  7. dir = "/data/log/push-service/"
  8. [rpcServer]
  9. proto = "tcp"
  10. addr = "0.0.0.0:7779"
  11. [grpc]
  12. timeout = "1s"
  13. addr = "0.0.0.0:9000"
  14. [HTTPServer]
  15. addr = "0.0.0.0:7771"
  16. maxListen = 1000
  17. timeout = "1s"
  18. readTimeout = "1s"
  19. writeTimeout = "1s"
  20. [HTTPClient]
  21. dial = "50ms"
  22. timeout = "200ms"
  23. keepAlive = "60s"
  24. key = "f265dcfa28272742"
  25. secret = "437facc22dc8698b5544669bcc12348d"
  26. [HTTPClient.breaker]
  27. window ="1s"
  28. sleep ="10ms"
  29. bucket = 10
  30. ratio = 0.5
  31. request = 100
  32. [apns]
  33. poolSize = 200
  34. proxy = 0 # 0表示不使用代理
  35. proxySocket = "133.130.49.92:9091"
  36. timeout = "10s"
  37. [android]
  38. poolSize = 50
  39. timeout = "30s"
  40. pushHuaweiPart = 30
  41. miUseVip = 0
  42. [mysql]
  43. addr = "172.16.33.205"
  44. dsn = "test:test@tcp(172.16.33.205:3308)/bilibili_push?timeout=1m&readTimeout=1m&writeTimeout=1m&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  45. active = 10
  46. idle = 5
  47. queryTimeout = "1m"
  48. execTimeout = "1m"
  49. tranTimeout = "1m"
  50. [mysql.breaker]
  51. window = "3s"
  52. sleep = "100ms"
  53. bucket = 10
  54. ratio = 0.5
  55. request = 100
  56. [redis]
  57. name = "push-service"
  58. proto = "tcp"
  59. addr = "172.16.33.54:6379"
  60. idle = 1000
  61. active = 10000
  62. dialTimeout = "10s"
  63. readTimeout = "10s"
  64. writeTimeout = "10s"
  65. idleTimeout = "30s"
  66. tokenExpire = "72h"
  67. laterExpire = "72h"
  68. midsExpire = "72h"
  69. [memcache]
  70. name = "push-service"
  71. proto = "tcp"
  72. addr = "172.18.33.60:11228"
  73. idle = 1000
  74. active = 1000
  75. dialTimeout = "10s"
  76. readTimeout = "10s"
  77. writeTimeout = "10s"
  78. idleTimeout = "30s"
  79. settingExpire = "720h"
  80. reportExpire = "720h"
  81. uuidExpire = "30m"
  82. [reportPub]
  83. key = "0QEO9F8JuuIxZzNDvklH"
  84. secret="0QEO9F8JuuIxZzNDvklI"
  85. group= "PushReport-Push-P"
  86. topic= "PushReport-T"
  87. action="pub"
  88. name = "push-report-pub"
  89. proto = "tcp"
  90. addr = "172.16.33.158:6205"
  91. idle = 100
  92. active = 100
  93. dialTimeout = "1s"
  94. readTimeout = "60s"
  95. writeTimeout = "1s"
  96. idleTimeout = "10s"
  97. [callbackPub]
  98. key = "dbe67e6a4c36f877"
  99. secret="6e6eb74cc73f2c8bff02fb40ee57da59"
  100. group= "PushCallback-MainCommonArch-P"
  101. topic= "PushCallback-T"
  102. action="pub"
  103. name = "push-callback-pub"
  104. proto = "tcp"
  105. addr = "172.16.33.158:6205"
  106. idle = 100
  107. active = 100
  108. dialTimeout = "1s"
  109. readTimeout = "60s"
  110. writeTimeout = "1s"
  111. idleTimeout = "10s"
  112. [push]
  113. pickUpTask = true
  114. loadBusinessInteval = "5m"
  115. loadTaskInteval = "1s"
  116. updateTaskProgressInteval = "5s"
  117. pushChanSizeAPNS = 10000
  118. pushGoroutinesAPNS = 1000
  119. pushChanSizeMi = 10000
  120. pushGoroutinesMi = 100
  121. pushChanSizeHuawei = 10000
  122. pushGoroutinesHuawei = 100
  123. pushChanSizeOppo = 10000
  124. pushGoroutinesOppo = 100
  125. pushChanSizeJpush = 10000
  126. pushGoroutinesJpush = 100
  127. pushChanSizeFCM = 10000
  128. pushGoroutinesFCM = 100
  129. passThrough = 1
  130. retryTimes = 3
  131. pushPartInterval = "1s"
  132. pushPartChanSize = 10
  133. pushPartSize = 1000
  134. callbackSize = 3 # callback 聚合数
  135. callbackChanLen = 1024000
  136. callbackGoroutines = 10
  137. upimgURL = "http://uat-api.bilibili.co/x/internal/upload/admin/image"
  138. upimgMaxSize = 1048576 # 允许上传的最大图片 字节数
  139. updateTaskProgressProc = 10