test.toml 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. [mysql]
  2. addr = "127.0.0.1:3306"
  3. dsn = "test:test@tcp(127.0.0.1:3306)/bilibili_ugcrank?timeout=200ms&readTimeout=200ms&writeTimeout=200ms&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  4. readDSN = ["test:test@tcp(127.0.0.1:3306)/bilibili_ugcrank?timeout=200ms&readTimeout=200ms&writeTimeout=200ms&parseTime=true&loc=Local&charset=utf8,utf8mb4","test:test@tcp(127.0.0.1:3306)/bilibili_ugcrank?timeout=200ms&readTimeout=200ms&writeTimeout=200ms&parseTime=true&loc=Local&charset=utf8,utf8mb4"]
  5. active = 20
  6. idle = 10
  7. idleTimeout ="4h"
  8. queryTimeout = "100ms"
  9. execTimeout = "100ms"
  10. tranTimeout = "200ms"
  11. [elecmysql]
  12. addr = "127.0.0.1:3306"
  13. dsn = "test:test@tcp(127.0.0.1:3306)/bilibili_elec?timeout=200ms&readTimeout=200ms&writeTimeout=200ms&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  14. readDSN = ["test:test@tcp(127.0.0.1:3306)/bilibili_elec?timeout=200ms&readTimeout=200ms&writeTimeout=200ms&parseTime=true&loc=Local&charset=utf8,utf8mb4","test:test@tcp(127.0.0.1:3306)/bilibili_elec?timeout=200ms&readTimeout=200ms&writeTimeout=200ms&parseTime=true&loc=Local&charset=utf8,utf8mb4"]
  15. active = 20
  16. idle = 10
  17. idleTimeout ="4h"
  18. queryTimeout = "100ms"
  19. execTimeout = "100ms"
  20. tranTimeout = "200ms"
  21. [memcache]
  22. name = "ugcpay-rank-interface"
  23. proto = "tcp"
  24. addr = "172.22.33.137:11220"
  25. active = 50
  26. idle = 10
  27. dialTimeout = "1s"
  28. readTimeout = "1s"
  29. writeTimeout = "1s"
  30. idleTimeout = "10s"
  31. expire = "24h"
  32. [LocalCache]
  33. ElecAVRankSize = 1024
  34. ElecAVRankTTL = "5s"
  35. ElecUPRankSize = 1024
  36. ElecUPRankTTL = "5s"
  37. [CacheTTL]
  38. ElecUPRankTTL = 5
  39. ElecAVRankTTL = 5
  40. ElecPrepUPRankTTL = 300
  41. ElecPrepAVRankTTL = 300
  42. ElecUserSettingTTL = 300
  43. [Biz]
  44. ElecAVRankSize = 30
  45. ElecUPRankSize = 30
  46. RAMAVIDs = [2333]
  47. RAMUPIDs = [6658426]
  48. ReloadDuration = "10s"