test.toml 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. [log]
  2. stdout = true
  3. [mysql]
  4. addr = "172.16.38.91:3306"
  5. dsn = "root:123456@tcp(172.16.38.91:3306)/bbq?allowNativePasswords=true&timeout=800ms&readTimeout=1200ms&writeTimeout=800ms&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  6. readDSN = ["root:123456@tcp(172.16.38.91:3306)/bbq?allowNativePasswords=true&timeout=800ms&readTimeout=1200ms&writeTimeout=800ms&parseTime=true&loc=Local&charset=utf8,utf8mb4"]
  7. active = 20
  8. idle = 10
  9. idleTimeout ="4h"
  10. queryTimeout = "800ms"
  11. execTimeout = "800ms"
  12. tranTimeout = "1000ms"
  13. [offlineMysql]
  14. addr = "172.16.38.91:3306"
  15. dsn = "root:123456@tcp(172.16.38.91:3306)/bbq?allowNativePasswords=true&timeout=800ms&readTimeout=1200ms&writeTimeout=800ms&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  16. readDSN = ["root:123456@tcp(172.16.38.91:3306)/bbq?allowNativePasswords=true&timeout=800ms&readTimeout=1200ms&writeTimeout=800ms&parseTime=true&loc=Local&charset=utf8,utf8mb4"]
  17. active = 20
  18. idle = 10
  19. idleTimeout ="4h"
  20. queryTimeout = "800ms"
  21. execTimeout = "800ms"
  22. tranTimeout = "1000ms"
  23. [cmsMysql]
  24. addr = "172.16.38.91:3306"
  25. dsn = "root:123456@tcp(172.16.38.91:3306)/bbq_cms?allowNativePasswords=true&timeout=800ms&readTimeout=1200ms&writeTimeout=800ms&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  26. readDSN = ["root:123456@tcp(172.16.38.91:3306)/bbq_cms?allowNativePasswords=true&timeout=800ms&readTimeout=1200ms&writeTimeout=800ms&parseTime=true&loc=Local&charset=utf8,utf8mb4"]
  27. active = 20
  28. idle = 10
  29. idleTimeout ="4h"
  30. queryTimeout = "800ms"
  31. execTimeout = "800ms"
  32. tranTimeout = "1000ms"
  33. [redis]
  34. name = "bbq-web"
  35. proto = "tcp"
  36. addr = "172.16.38.91:6379"
  37. idle = 10
  38. active = 10
  39. dialTimeout = "1s"
  40. readTimeout = "1s"
  41. writeTimeout = "1s"
  42. idleTimeout = "10s"
  43. expire = "1m"
  44. [bfredis]
  45. name = "bbq-bf"
  46. proto = "tcp"
  47. addr = "172.16.38.91:6379"
  48. idle = 10
  49. active = 10
  50. dialTimeout = "1s"
  51. readTimeout = "1s"
  52. writeTimeout = "1s"
  53. idleTimeout = "10s"
  54. expire = "1m"
  55. [berserker]
  56. [[berserker.keys]]
  57. owner = "daiwei"
  58. appkey = "66ed588a742c72408bc2d876afa8f7ca"
  59. secret = "7d7a63e37fe6af52a58fb4755b62360e"
  60. [[berserker.api]]
  61. name = "video_quality"
  62. url = "http://berserker.bilibili.co/avenger/api/175/query"
  63. [[berserker.api]]
  64. name = "video_view"
  65. url = "http://berserker.bilibili.co/avenger/api/154/query"
  66. [job]
  67. [job.forwardIndex]
  68. jobName = "genForwardIndex"
  69. schedule = "@every 30m"
  70. input = "/Users/daiwei/Desktop/"
  71. output = "/Users/daiwei/forward_index.txt"
  72. [job.bloomfilter]
  73. jobName = "genBloomFilter"
  74. schedule = "@every 30m"
  75. input = ""
  76. output = ""