app.develop.yaml 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  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 * * ?"
  37. indicators: "0 0 23 * * ?" # 每天凌晨1点03分执行
  38. generate_work_order: "0 05 1 * * ?"
  39. immunization_plan: "0 10 1 * * ?"
  40. same_Time_plan: "0 15 1 * * ?"
  41. update_same_time: "0 20 1 * * ?"
  42. delete_old_original: "0 30 1 * * ?" # 每天凌晨1点30分执行
  43. system_basic_crontab: "0 35 1 * * ?"
  44. update_disease_to_calendar: "0 50 1 * * ?"
  45. cow_pregnant: "0 01 15 * * ?"
  46. neck_ring_estrus: "0 45 * * * *" # 每小时的45分钟执行一次
  47. neck_ring_merge: "*/60 * * * * ?" # 合并脖环原始2小时数据(5分钟)
  48. neck_ring_calculate: "*/300 * * * * ?" # 计算脖环数据
  49. neck_ring_estrus_warning: "* */30 * * * ?" # 脖环发情预警(每50分钟执行一次
  50. neck_ring_health_warning: "* */30 * * * ?" # 脖环健康预警
  51. update_pen_behavior: "0 */20 * * * ?" # 更新栏舍行为数据(20分钟执行一次)
  52. update_pen_behavior_daily: "0 50 15 * * ?" # 更新栏舍饲养监测数据
  53. update_milk_original: "0 */30 * * * ?" # 更新奶厅原始数据(每30分钟执行一次)
  54. insert_milk_daily: "0 05 02 * * ?" # 更新每日奶量和活动量数据
  55. cow_neck_ring_error: "0 0 */2 * * ?" # 异常脖环数据上报
  56. mqtt:
  57. broker: "kptyun.com:1983"
  58. username: "kptmqtt"
  59. password: "kepaiteng"
  60. sub_topic: "/user/heatwatch/neckring/post"
  61. qos: 0
  62. retain: false
  63. keep_alive: 60
  64. connect_timeout: 10
  65. auto_reconnect: true
  66. reconnect_interval: 10
  67. work_number: 1
  68. merge_data_ticker: 2 # 2分钟合并一次数据
  69. milk_hall:
  70. base_path: "/milk_hall"
  71. file_path:
  72. - "/file1"
  73. - "/file2"
  74. back_path: "http://your-api-endpoint"
  75. url_path: "/api/v1/milk/hall/original"
  76. brand: "gea"
  77. milk_hall_number: "三期"
  78. farm_id: "c7357ce63cc7dddf6aa75c5baa37c507"