mcn-job-test.toml 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. [log]
  2. stdout = true
  3. [mysql]
  4. addr = "172.16.33.205:3306"
  5. dsn = "upcrm:DdL6c5JaWCYKMAQ10PURbfeImow9HXlx@tcp(172.16.33.205:3306)/bilibili_upcrm?timeout=5s&readTimeout=5s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  6. active = 5
  7. idle = 1
  8. idleTimeout ="4h"
  9. queryTimeout = "200ms"
  10. execTimeout = "300ms"
  11. tranTimeout = "400ms"
  12. [mysql.breaker]
  13. window = "3s"
  14. sleep = "100ms"
  15. bucket = 10
  16. ratio = 0.5
  17. request = 100
  18. [memcache]
  19. name = "mcn-admin"
  20. proto = "tcp"
  21. addr = "172.18.33.60:11216"
  22. active = 10
  23. idle = 10
  24. dialTimeout = "1s"
  25. readTimeout = "1s"
  26. writeTimeout = "1s"
  27. idleTimeout = "10s"
  28. [property]
  29. upMcnSignStateCron = "0 0 0 * * ?"
  30. upMcnUpStateCron = "0 0 0 * * ?"
  31. upExpirePayCron = "0 0 0 * * ?"
  32. upMcnDataSummaryCron = "0 5 0 * * ?"
  33. mcnRecommendCron = "@hourly"
  34. dealFailRecommendCron = "@hourly"
  35. checkMcnSignUpDueCron = "0 20 0 * * ?"
  36. [MailConf]
  37. host = "smtp.exmail.qq.com"
  38. port = 465
  39. username = "manager@bilibili.com"
  40. password = "123"
  41. DueMailReceivers = [""] # 需要发送的额外管理员名称
  42. DueAuthorityGroups = ["mcnplan@bilibili.com"]
  43. [GRPCClient]
  44. [GRPCClient.account]
  45. timeout = "1s"