relation-job.toml 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. # This is a TOML document. Boom.
  2. version = "1.0.0"
  3. user = "nobody"
  4. dir = "./"
  5. perf = "0.0.0.0:6330"
  6. family = "relation-job"
  7. env = "test"
  8. [xlog]
  9. dir = "/data/log/relation-job"
  10. [multiHTTP]
  11. [multiHTTP.inner]
  12. addrs = ["0.0.0.0:6331"]
  13. maxListen = 1000
  14. [mysql]
  15. addr = "172.16.33.101:3306"
  16. dsn = "account:wx2U1MwXRyWEuURw@tcp(172.16.33.101:3306)/relation?timeout=5s&readTimeout=5s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  17. active = 5
  18. idle = 2
  19. idleTimeout ="4h"
  20. queryTimeout = "100ms"
  21. execTimeout = "100ms"
  22. tranTimeout = "200ms"
  23. [mysql.breaker]
  24. window = "3s"
  25. sleep = "100ms"
  26. bucket = 10
  27. ratio = 0.5
  28. request = 100
  29. [memcache]
  30. name = "relation-job"
  31. proto = "tcp"
  32. addr = "192.168.99.100:32777"
  33. idle = 5
  34. active = 10
  35. dialTimeout = "1s"
  36. readTimeout = "1s"
  37. writeTimeout = "1s"
  38. idleTimeout = "10s"
  39. expire = "24h"
  40. [redis]
  41. name = "go-common/app/job/main/relation"
  42. proto = "tcp"
  43. addr = "127.0.0.1:32769"
  44. idle = 100
  45. active = 100
  46. dialTimeout = "1s"
  47. readTimeout = "1s"
  48. writeTimeout = "1s"
  49. idleTimeout = "10s"
  50. expire = "720h"
  51. [relRedis]
  52. name = "relation-service"
  53. proto = "tcp"
  54. addr = "127.0.0.1:32769"
  55. idle = 100
  56. active = 100
  57. dialTimeout = "1s"
  58. readTimeout = "1s"
  59. writeTimeout = "1s"
  60. idleTimeout = "10s"
  61. expire = "720h"
  62. [clearPath]
  63. following = "http://api.bilibili.co/x/internal/relation/cache/following/update"
  64. follower = "http://api.bilibili.co/x/internal/relation/cache/follower/del"
  65. stat = "http://api.bilibili.co/x/internal/relation/cache/stat/del"
  66. [apiPath]
  67. followersNotify = "http://message.bilibili.co/api/notify/send.user.notify.do"
  68. [httpClient]
  69. key = "e7482d29be4a95b8"
  70. secret = "9e803791cdef756e75faee68e12b7442"
  71. dial = "100ms"
  72. timeout = "1s"
  73. keepAlive = "60s"
  74. timer = 128
  75. [httpClient.breaker]
  76. window = "3s"
  77. sleep = "100ms"
  78. bucket = 10
  79. ratio = 0.5
  80. request = 100
  81. [app]
  82. key = "e7482d29be4a95b8"
  83. secret = "9e803791cdef756e75faee68e12b7442"
  84. [databus]
  85. key = "0QBAaL5f8hupBjLQydZt"
  86. secret = "0QBAaL5f8hupBjLQydZu"
  87. group = "Relation-Friends-S"
  88. topic = "Relation-T"
  89. action = "sub"
  90. offset = "old"
  91. buffer = 2048
  92. name = "go-common/app/job/main/relation/databus"
  93. proto = "tcp"
  94. addr = "172.16.33.158:6205"
  95. idle = 100
  96. active = 100
  97. dialTimeout = "1s"
  98. readTimeout = "60s"
  99. writeTimeout = "1s"
  100. idleTimeout = "10s"
  101. [sms]
  102. phone="15121003430,13601914616"
  103. token="460d52f1-dafe-44a2-911a-9f308968309a"
  104. [relation]
  105. followersUnread = "1m"