playlist-job-test.toml 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  1. version = "1.0.0"
  2. user = "nobody"
  3. pid = "/tmp/playlist-job.pid"
  4. env="dev" # dev or pro
  5. dir = "./"
  6. family = "playlist-job"
  7. [log]
  8. family = "playlist-job"
  9. dir = "/data/log/playlist-job/"
  10. [app]
  11. key = "b1014d7c339a5649"
  12. secret = "75b74b612aa792b112e6504cae44c319"
  13. [HTTPServer]
  14. addr = "0.0.0.0:7201"
  15. timeout = "1s"
  16. [HTTPClient]
  17. key = "b1014d7c339a5649"
  18. secret = "75b74b612aa792b112e6504cae44c319"
  19. dial = "50ms"
  20. timeout = "1s"
  21. keepAlive = "60s"
  22. [playlistViewSub]
  23. key = "9765cdac5894f2ba"
  24. secret = "1448f5f2cd6029f6af6c5d438cd31edd"
  25. group = "StatView-MainWebSvr-S"
  26. topic = "StatView-T"
  27. action = "sub"
  28. name = "playlist-job/playlist-sub"
  29. proto = "tcp"
  30. addr = "172.16.33.158:6205"
  31. idle = 100
  32. active = 100
  33. dialTimeout = "1s"
  34. readTimeout = "60s"
  35. writeTimeout = "1s"
  36. idleTimeout = "10s"
  37. [playlistFavSub]
  38. key = "9765cdac5894f2ba"
  39. secret = "1448f5f2cd6029f6af6c5d438cd31edd"
  40. group = "StatFav-MainWebSvr-S"
  41. topic = "StatFav-T"
  42. action = "sub"
  43. name = "playlist-job/playlist-sub"
  44. proto = "tcp"
  45. addr = "172.16.33.158:6205"
  46. idle = 100
  47. active = 100
  48. dialTimeout = "1s"
  49. readTimeout = "60s"
  50. writeTimeout = "1s"
  51. idleTimeout = "10s"
  52. [playlistReplySub]
  53. key = "9765cdac5894f2ba"
  54. secret = "1448f5f2cd6029f6af6c5d438cd31edd"
  55. group = "StatReply-MainWebSvr-S"
  56. topic = "StatReply-T"
  57. action = "sub"
  58. name = "playlist-job/playlist-sub"
  59. proto = "tcp"
  60. addr = "172.16.33.158:6205"
  61. idle = 100
  62. active = 100
  63. dialTimeout = "1s"
  64. readTimeout = "60s"
  65. writeTimeout = "1s"
  66. idleTimeout = "10s"
  67. [playlistShareSub]
  68. key = "9765cdac5894f2ba"
  69. secret = "1448f5f2cd6029f6af6c5d438cd31edd"
  70. group = "StatShare-MainWebSvr-S"
  71. topic = "StatShare-T"
  72. action = "sub"
  73. name = "playlist-job/playlist-sub"
  74. proto = "tcp"
  75. addr = "172.16.33.158:6205"
  76. idle = 100
  77. active = 100
  78. dialTimeout = "1s"
  79. readTimeout = "60s"
  80. writeTimeout = "1s"
  81. idleTimeout = "10s"
  82. [playlistRPC]
  83. pullInterval = "10s"
  84. [playlistRPC.client]
  85. proto = "tcp"
  86. timeout = "1s"
  87. timer = 1000
  88. [playlistRPC.client.breaker]
  89. window ="10s"
  90. sleep ="10ms"
  91. bucket = 10
  92. ratio = 0.5
  93. request = 100
  94. [playlistRPC.zookeeper]
  95. root = "/microservice/playlist-service/"
  96. addrs = ["172.18.33.172:2181"]
  97. timeout = "30s"
  98. [mysql]
  99. addr = "172.16.33.205"
  100. dsn = "test:test@tcp(172.16.33.205:3308)/bilibili_playlist?timeout=5s&readTimeout=5s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  101. active = 5
  102. idle = 2
  103. idleTimeout = "4h"
  104. queryTimeout = "100ms"
  105. execTimeout = "100ms"
  106. tranTimeout = "200ms"
  107. [mysql.breaker]
  108. window = "3s"
  109. sleep = "100ms"
  110. bucket = 10
  111. ratio = 0.5
  112. request = 100
  113. [redis]
  114. name = "playlist-job"
  115. proto = "tcp"
  116. addr = "172.16.33.54:6379"
  117. idle = 10
  118. active = 10
  119. dialTimeout = "1s"
  120. readTimeout = "1s"
  121. writeTimeout = "1s"
  122. idleTimeout = "10s"
  123. [job]
  124. updateDbInterval = "0m"
  125. interceptOn = false
  126. viewCacheTTL = "30m"