app.develop.yaml 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. farm_name: xdmy001
  2. app_name: kpt-pasture
  3. app_environment: test
  4. debug: true
  5. http_server_addr: ':8090'
  6. http_metrics_addr: ':23332'
  7. jwt_expire_time: 172800
  8. neck_ring_limit: 100
  9. store:
  10. show_sql: true
  11. driver_name: mysql
  12. kpt_rw: "kpt_pasture:4~H@InK6jK@tcp(47.92.95.119:3326)/kpt_pasture?charset=utf8mb4&parseTime=true&loc=Local&allowNativePasswords=true&timeout=300s&readTimeout=300s&writeTimeout=300s"
  13. kpt_migr: "kpt_pasture:4~H@InK6jK@tcp(47.92.95.119:3326)/kpt_pasture?charset=utf8mb4&parseTime=true&loc=Local&allowNativePasswords=true&timeout=300s&readTimeout=300s&writeTimeout=300s"
  14. redis_setting:
  15. cache_redis:
  16. addr: '47.92.95.119:6389'
  17. db: 11
  18. requirepass: "root"
  19. expiry: 120
  20. jwt_secret: "sUd7j%UfJMt59ywh"
  21. side_work_setting:
  22. asynq_setting:
  23. redis:
  24. addr: '47.92.95.119:6389'
  25. db: 0
  26. pool_size: 10
  27. password: "root"
  28. concurrency: 5
  29. queues:
  30. work: 20
  31. low: 10
  32. default: 5
  33. cron:
  34. crontab_start_run: false
  35. update_cow_info: "0 01 1 * * ?" # 每天凌晨1点01分执行
  36. generate_work_order: "0 05 1 * * ?" # 每天凌晨1点05分执行
  37. immunization_plan: "0 10 1 * * ?" # 每天凌晨1点10分执行
  38. same_time_plan: "0 15 1 * * ?" # 每天凌晨1点15分执行
  39. update_same_time: "0 20 1 * * ?" # 每天凌晨1点20分执行
  40. system_basic_crontab: "0 25 1 * * ?" # 每天凌晨1点25分执行
  41. cow_pregnant: "0 00 15 * * ?" # 每天15点执行
  42. update_active_habit: "0 */1 * * * ?" # 每2分钟执行一次
  43. neck_ring_estrus: "0 */5 * * * ?" # 每5分钟执行一次
  44. mqtt:
  45. broker: "kptyun.com:1983"
  46. username: "kptmqtt"
  47. password: "kepaiteng"
  48. sub_topic: "/user/heatwatch/neckring/post"
  49. qos: 0
  50. retain: false
  51. keep_alive: 60
  52. connect_timeout: 10
  53. auto_reconnect: true
  54. reconnect_interval: 10
  55. work_number: 1
  56. merge_data_ticker: 2 # 2分钟合并一次数据