kvo-test.toml 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. # toml config
  2. version = "1.0.0"
  3. user = "nobody"
  4. pid= "/tmp/kvo.pid"
  5. perf = "127.0.0.1:6690"
  6. checkFile = "/data/www/kvo.html"
  7. dir = "./"
  8. family = "kvo"
  9. address = ""
  10. env = "test"
  11. docLimit = 102400
  12. [mysql]
  13. addr = "172.16.33.54:3306"
  14. dsn = "test:test@tcp(172.16.33.54:3306)/bilibili_kvo?timeout=5s&readTimeout=5s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  15. active = 5
  16. idle = 2
  17. [xlog]
  18. dir = "/data/log/kvo/"
  19. # [xlog.elk]
  20. # project = "kvo"
  21. # addr = "172.18.20.17:8520"
  22. # chanSize = 10240
  23. [tracer]
  24. proto = "udp"
  25. addr = "172.16.33.46:5140"
  26. tag = "platform/kvo"
  27. [multiHttp]
  28. [multiHttp.outer]
  29. addrs = ["0.0.0.0:6691"]
  30. maxListen = 100
  31. [multiHttp.local]
  32. addrs = ["0.0.0.0:6692"]
  33. maxListen = 100
  34. [identify]
  35. whiteAccessKey = ""
  36. whiteMid = 0
  37. [identify.app]
  38. key = "e7482d29be4a95b8"
  39. secret = "9e803791cdef756e75faee68e12b7442"
  40. [identify.memcache]
  41. name = "go-business/identify"
  42. proto = "tcp"
  43. addr = "172.16.33.54:11211"
  44. active = 5
  45. idle = 10
  46. dialTimeout = "1s"
  47. readTimeout = "1s"
  48. writeTimeout = "1s"
  49. idleTimeout = "80s"
  50. [identify.host]
  51. auth = "http://passport.bilibili.com"
  52. secret = "http://open.bilibili.com"
  53. [identify.authHTTPClient]
  54. dial = "1s"
  55. timeout = "1s"
  56. keepAlive = "60s"
  57. timer = 1000
  58. [identify.authHTTPClient.breaker]
  59. window ="10s"
  60. sleep ="10ms"
  61. bucket = 10
  62. ratio = 0.5
  63. request = 100
  64. [identify.secretHTTPClient]
  65. dial = "1s"
  66. timeout = "1s"
  67. keepAlive = "60s"
  68. timer = 1000
  69. [identify.secretHTTPClient.breaker]
  70. window ="10s"
  71. sleep ="10ms"
  72. bucket = 10
  73. ratio = 0.5
  74. request = 100
  75. [memcache]
  76. expire = "720h"
  77. [memcache.kvo]
  78. name = "kvo"
  79. proto = "tcp"
  80. addr = "172.16.33.54:11213"
  81. idle = 5
  82. active = 10
  83. dialTimeout = "1s"
  84. readTimeout = "1s"
  85. writeTimeout = "1s"
  86. idleTimeout = "80s"