kvo-example.toml 2.1 KB

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