config.yaml 1.9 KB

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