config.yaml 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. port: ":8011"
  2. oss_accounts:
  3. - id: "main"
  4. endpoint: "oss-cn-beijing.aliyuncs.com"
  5. access_key_id: "LTAI4G5x9aoZx8dDamQ7vfZi"
  6. access_key_secret: "Bk98FsbPYXcJe72n1bG3Ssf73acuNh"
  7. buckets:
  8. - bucket_id: "detail"
  9. account_id": "main"
  10. bucket_name: "jytest2022"
  11. node:
  12. node_name: "node1"
  13. redis:
  14. address: "172.20.45.129:1712"
  15. password: ""
  16. elasticSearch:
  17. address: "http://172.20.45.129:9206,http://172.20.45.130:9306"
  18. size: 10
  19. version: "v7"
  20. userName: ""
  21. password: ""
  22. indexName: "bidding"
  23. mongodb:
  24. address: "172.20.45.128:27080"
  25. size: 5
  26. dbName: "qfw"
  27. replSet: ""
  28. userName: "JS2Z_Rbid_ProG"
  29. password: "JS2z@S1e3aR5Ch"
  30. collection: "bidding"
  31. email:
  32. mails:
  33. - addr: "smtp.exmail.qq.com"
  34. port: 465
  35. pwd: "ue9Rg9Sf4CVtdm5a"
  36. user: "public03@topnet.net.cn"
  37. mailPoolSize: 5
  38. mailReTry: 1
  39. - addr: "smtp.exmail.qq.com"
  40. port: 465
  41. pwd: "Mu^$i21673"
  42. user: "public04@topnet.net.cn"
  43. mailPoolSize: 4
  44. mailReTry: 1
  45. title: "oos代理服务告警"
  46. recipients:
  47. - "wangchuanjin@topnet.net.cn"
  48. weixin:
  49. webhook_url: "https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=295f5f6a-f58c-4765-8bae-9bd718c566a5"
  50. warnMaxNodeNum: 1
  51. warnInterval: 600
  52. logger:
  53. filename: "./logs/oss.log"
  54. maxSize: 1024
  55. maxBackups: 3
  56. maxAge: 3
  57. compress: true
  58. downLoadPoolSize: 200
  59. getDetailFromEsPoolSize: 100
  60. getDetailFromMgoPoolSize: 100
  61. onlineNodesWarn: "在线节点数少于%d,当前在线节点数:%d"
  62. downLoadQueueWarn: "下载并发数%d,排队数量超过%d,请检查!"
  63. getDetailQueueWarn: "获取正文oss并发数%d,es并发数%d,mgo并发数%d,排队数量超过%d,请检查!"
  64. downLoadLineUpWarnSize: 10
  65. getDetailLineUpWarnSize: 10
  66. getDetailOrder: #mgo es oss
  67. - es
  68. - mgo
  69. - oss