share-service-test.toml 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. # This is a TOML document. Boom.
  2. version = "1.0.0"
  3. user = "nobody"
  4. pid = "/tmp/share-service.pid"
  5. dir = "./"
  6. perf = "127.0.0.1:6080"
  7. family = "share-service"
  8. RedisExpire = 108000
  9. tick = "5m"
  10. worker = 8
  11. AllowType = [1,2,3]
  12. Target = 2233
  13. Sources = [111,222,333,444,555,666]
  14. [xlog]
  15. dir = "/data/log/share-service/"
  16. [statsd]
  17. project = "share-service"
  18. addr = "172.18.20.15:8200"
  19. chanSize = 10240
  20. [tracer]
  21. proto = "udp"
  22. addr = "172.16.33.46:5140"
  23. tag = "platform/share-service"
  24. [app]
  25. key = "53e2fa226f5ad348"
  26. secret = "3cf6bd1b0ff671021da5f424fea4b04a"
  27. [bm]
  28. addr = "0.0.0.0:6081"
  29. timeout = "1s"
  30. [db]
  31. name = "172.16.33.205:3308"
  32. dsn = "test:test@tcp(172.16.33.205:3308)/bilibili_share?timeout=200ms&readTimeout=200ms&writeTimeout=200ms&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  33. active = 5
  34. idle = 1
  35. idleTimeout ="4h"
  36. queryTimeout = "10s"
  37. execTimeout = "10s"
  38. tranTimeout = "10s"
  39. [db.arc.breaker]
  40. window = "3s"
  41. sleep = "100ms"
  42. bucket = 10
  43. ratio = 0.5
  44. request = 100
  45. [ecode]
  46. domain = "172.16.33.248:6401"
  47. all = "1h"
  48. diff = "5m"
  49. [ecode.clientconfig]
  50. key = "test"
  51. secret = "e6c4c252dc7e3d8a90805eecd7c73396"
  52. dial = "2000ms"
  53. timeout = "2s"
  54. keepAlive = "10s"
  55. timer = 128
  56. [ecode.clientconfig.breaker]
  57. window ="3s"
  58. sleep ="100ms"
  59. bucket = 10
  60. ratio = 0.5
  61. request = 100
  62. [ecode.app]
  63. key = "test"
  64. secret = "e6c4c252dc7e3d8a90805eecd7c73396"
  65. [redis]
  66. name = "share-service/redis"
  67. proto = "tcp"
  68. addr = "172.18.33.61:6889"
  69. idle = 50
  70. active = 100
  71. dialTimeout = "10s"
  72. readTimeout = "10s"
  73. writeTimeout = "10s"
  74. idleTimeout = "80s"
  75. expire = "8h"
  76. [databus]
  77. key = "8e27ab7e39270b59"
  78. secret = "477df6a068d7332a163f95abbad2079c"
  79. group = "ShareMid-MainAppSvr-P"
  80. topic = "ShareMid-T"
  81. action = "pub"
  82. name = "share-service/pub"
  83. proto = "tcp"
  84. addr = "172.18.33.50:6205"
  85. idle = 100
  86. active = 100
  87. dialTimeout = "1s"
  88. readTimeout = "60s"
  89. writeTimeout = "1s"
  90. idleTimeout = "10s"
  91. [archiveDatabus]
  92. key = "8e27ab7e39270b59"
  93. secret = "477df6a068d7332a163f95abbad2079c"
  94. group = "StatShare-MainAppSvr-P"
  95. topic = "StatShare-T"
  96. action = "pub"
  97. name = "archive-service/StatShare"
  98. proto = "tcp"
  99. addr = "172.18.33.50:6205"
  100. idle = 10
  101. active = 50
  102. dialTimeout = "2s"
  103. readTimeout = "2s"
  104. writeTimeout = "2s"
  105. idleTimeout = "80s"