shorturl-test.toml 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. version = "1.1.0"
  2. user = "nobody"
  3. pid = "/tmp/shorturl.pid"
  4. dir = "./"
  5. perf = "127.0.0.1:5101"
  6. env = "dev"
  7. [xlog]
  8. dir = "/data/log/shorturl/"
  9. [host]
  10. default = "http://b23.tv/"
  11. [mysql]
  12. name = "[bilibili_shorturl]tcp@172.16.33.205:3308"
  13. dsn = "test:test@tcp(172.16.33.205:3308)/bilibili_shorturl?timeout=5s&readTimeout=5s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  14. #dsn = "peiyifei:123456@tcp(0.0.0.0:3306)/pyfdb?timeout=5s&readTimeout=5s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  15. active = 5
  16. idle = 2
  17. queryTimeout = "100ms"
  18. execTimeout = "100ms"
  19. tranTimeout = "200ms"
  20. [mysql.breaker]
  21. window = "3s"
  22. sleep = "100ms"
  23. bucket = 10
  24. ratio = 0.5
  25. request = 100
  26. [bm]
  27. addr = "0.0.0.0:5102"
  28. timeout = "1s"
  29. [memcache]
  30. name = "shorturl/memcache"
  31. proto = "tcp"
  32. addr = "172.16.33.54:11213"
  33. active = 50
  34. idle = 10
  35. dialTimeout = "50ms"
  36. readTimeout = "100ms"
  37. writeTimeout = "100ms"
  38. idleTimeout = "80s"
  39. archiveExpire = "5m"
  40. relateExpire = "20m"