web-show-example.toml 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. # This is a TOML document. Boom.
  2. version = "1.0.0"
  3. user = "nobody"
  4. pid = "/tmp/web-show.pid"
  5. dir = "./"
  6. perf = "0.0.0.0:6120"
  7. checkFile = "/data/www/web-show.html"
  8. family = "web-show"
  9. address = "172.16.0.148"
  10. bangumiuri = "http://bangumi.bilibili.com/api/bp"
  11. [reload]
  12. jobs ="1h"
  13. notice = "300s"
  14. ad="300s"
  15. [app]
  16. key = "f022126a8a365e20"
  17. secret = "b7b86838145d634b487e67b811b8fab2"
  18. [xlog]
  19. dir = "/data/log/web-show/"
  20. [xlog.elk]
  21. project = "web-show"
  22. addr = "172.18.20.17:8520"
  23. chanSize = 10240
  24. [statsd]
  25. project = "web-show"
  26. addr = "172.18.20.15:8200"
  27. chanSize = 10240
  28. [httpClient]
  29. dial = "500ms"
  30. timeout = "2s"
  31. keepAlive = "60s"
  32. timer = 1000
  33. [httpClient.breaker]
  34. window ="10s"
  35. sleep ="10ms"
  36. bucket = 10
  37. ratio = 0.1
  38. request = 100
  39. [multiHTTP]
  40. [multiHTTP.outer]
  41. addrs = ["0.0.0.0:6121"]
  42. maxListen = 10
  43. [multiHTTP.inner]
  44. addrs = ["0.0.0.0:6122"]
  45. maxListen = 10
  46. [multiHTTP.local]
  47. addrs = ["0.0.0.0:6123"]
  48. maxListen = 10
  49. [identify]
  50. whiteAccessKey = ""
  51. whiteMid = 0
  52. [identify.app]
  53. key = "6a29f8ed87407c11"
  54. secret = "d3c5a85f5b895a03735b5d20a273bc57"
  55. [identify.memcache]
  56. name = "go-business/identify"
  57. proto = "tcp"
  58. addr = "172.16.33.54:11211"
  59. active = 5
  60. idle = 10
  61. dialTimeout = "1s"
  62. readTimeout = "1s"
  63. writeTimeout = "1s"
  64. idleTimeout = "80s"
  65. [identify.host]
  66. auth = "http://passport.bilibili.com"
  67. secret = "http://open.bilibili.com"
  68. [identify.authHTTPClient]
  69. dial = "1s"
  70. timeout = "1s"
  71. keepAlive = "60s"
  72. timer = 1000
  73. [identify.secretHTTPClient]
  74. dial = "1s"
  75. timeout = "1s"
  76. keepAlive = "60s"
  77. timer = 1000
  78. [rpcClient2]
  79. [rpcClient2.archive]
  80. pullInterval = "10s"
  81. [rpcClient2.archive.client]
  82. timeout = "1s"
  83. timer = 1000
  84. [[rpcClient2.archive.backup]]
  85. proto = "tcp"
  86. addr = "127.0.0.1:6089"
  87. timeout = "1s"
  88. timer = 1000
  89. [rpcClient2.archive.zookeeper]
  90. root = "/microservice/archive-service/"
  91. addrs = ["127.0.0.1:2181"]
  92. timeout = "30s"
  93. [mysql]
  94. [mysql.operation]
  95. addr = "172.16.0.148:3306"
  96. dsn = "test:test@tcp(172.16.0.148:3306)/bilibili_operation?timeout=5s&readTimeout=5s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  97. active = 5
  98. idle = 2
  99. [mysql.ads]
  100. addr = "172.16.0.148:3306"
  101. dsn = "test:test@tcp(172.16.0.148:3306)/bilibili_ads?timeout=5s&readTimeout=5s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  102. active = 5
  103. idle = 2
  104. [mysql.res]
  105. addr = "172.16.0.148:3306"
  106. dsn = "test:test@tcp(172.16.0.148:3306)/bilibili_resource?timeout=5s&readTimeout=5s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  107. active = 5
  108. idle = 2
  109. [mysql.crm]
  110. addr = "172.16.0.116:3306"
  111. dsn = "test:test@tcp(172.16.0.116:3306)/bilibili_crm?timeout=5s&readTimeout=5s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  112. active = 5
  113. idle = 2
  114. [tracer]
  115. proto = "udp"
  116. addr = "172.16.33.46:5140"
  117. tag = "platform/web-show"