app.develop.yaml 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  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=600s&readTimeout=600s&writeTimeout=600s"
  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=600s&readTimeout=600s&writeTimeout=600s"
  14. kpt_mqtt: "kpt_mqtt:kpt_mqtt!1234@tcp(47.92.95.119:3326)/kpt_pasture?charset=utf8mb4&parseTime=true&loc=Local&allowNativePasswords=true&timeout=600s&readTimeout=600s&writeTimeout=600s"
  15. redis_setting:
  16. cache_redis:
  17. addr: '47.92.95.119:6389'
  18. db: 11
  19. requirepass: "root"
  20. expiry: 120
  21. jwt_secret: "sUd7j%UfJMt59ywh"
  22. side_work_setting:
  23. asynq_setting:
  24. redis:
  25. addr: '47.92.95.119:6389'
  26. db: 0
  27. pool_size: 10
  28. password: "root"
  29. concurrency: 5
  30. queues:
  31. work: 20
  32. low: 10
  33. default: 5
  34. cron:
  35. crontab_start_run: false
  36. update_cow_info: "0 01 1 * * ?" # 每天凌晨1点01分执行
  37. indicators: "0 30 11 * * ?" # 每天凌晨1点03分执行
  38. generate_work_order: "0 05 1 * * ?" # 每天凌晨1点05分执行
  39. immunization_plan: "0 10 1 * * ?" # 每天凌晨1点10分执行
  40. same_time_plan: "0 15 1 * * ?" # 每天凌晨1点15分执行
  41. update_same_time: "0 20 1 * * ?" # 每天凌晨1点20分执行
  42. system_basic_crontab: "0 25 1 * * ?" # 每天凌晨1点25分执行
  43. delete_old_original: "0 30 1 * * ?" # 每天凌晨1点30分执行
  44. cow_pregnant: "0 00 15 * * ?" # 每天15点执行
  45. neck_ring_estrus: "0 45 * * * ?" # 更新脖环发情数据
  46. neck_ring_merge: "*/5 * * * * ?" # 合并脖环原始2小时数据(5分钟)
  47. neck_ring_calculate: "*/10 * * * * ?" # 计算脖环数据
  48. mqtt:
  49. broker: "kptyun.com:1983"
  50. username: "kptmqtt"
  51. password: "kepaiteng"
  52. sub_topic: "/user/heatwatch/neckring/post"
  53. qos: 0
  54. retain: false
  55. keep_alive: 60
  56. connect_timeout: 10
  57. auto_reconnect: true
  58. reconnect_interval: 10
  59. work_number: 1
  60. merge_data_ticker: 2 # 2分钟合并一次数据