test.toml 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. [log]
  2. stdout = true
  3. # dir = "./log/bbq"
  4. v = 5
  5. [grpc]
  6. timeout = "500ms"
  7. addr = "0.0.0.0:9003"
  8. [bm]
  9. addr = "0.0.0.0:8802"
  10. timeout = "2s"
  11. [mysql]
  12. addr = "172.16.38.91:3306"
  13. 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"
  14. 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"]
  15. active = 20
  16. idle = 10
  17. idleTimeout ="4h"
  18. queryTimeout = "2000ms"
  19. execTimeout = "2000ms"
  20. tranTimeout = "3000ms"
  21. [redis]
  22. name = "bbq-web"
  23. proto = "tcp"
  24. addr = "172.16.38.91:6379"
  25. idle = 10
  26. active = 10
  27. dialTimeout = "1s"
  28. readTimeout = "1s"
  29. writeTimeout = "1s"
  30. idleTimeout = "10s"
  31. expire = "1m"
  32. [gRPCClient]
  33. [gRPCClient.push]
  34. addr = "172.16.38.91:9093"
  35. [gRPCClient.push.wardenconf]
  36. dial = "100ms"
  37. timeout = "500ms"
  38. [l1PushStrategy]
  39. [l1PushStrategy.like]
  40. t = 1
  41. a = -1
  42. b = -1
  43. [l1PushStrategy.comment]
  44. t = 1
  45. a = -1
  46. b = -1
  47. [l1PushStrategy.follow]
  48. t = 1
  49. a = -1
  50. b = -1
  51. [l1PushStrategy.sysmsg]
  52. t = -1
  53. a = -1
  54. b = -1
  55. [l2PushStrategy]
  56. [l2PushStrategy.like]
  57. t = 1
  58. a = -1
  59. b = 5
  60. [l2PushStrategy.comment]
  61. t = 1
  62. a = -1
  63. b = 5
  64. [l2PushStrategy.follow]
  65. t = 1
  66. a = -1
  67. b = 5
  68. [l2PushStrategy.sysmsg]
  69. t = 1
  70. a = -1
  71. b = -1
  72. [infoc]
  73. taskID = "001730"
  74. proto = "tcp"
  75. addr = "172.18.33.124:15140"
  76. chanSize = 10240