app.develop.yaml 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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. generate_work_order: "0 05 1 * * ?" # 每天凌晨1点05分执行
  38. immunization_plan: "0 10 1 * * ?" # 每天凌晨1点10分执行
  39. same_time_plan: "0 15 1 * * ?" # 每天凌晨1点15分执行
  40. update_same_time: "0 20 1 * * ?" # 每天凌晨1点20分执行
  41. system_basic_crontab: "0 25 1 * * ?" # 每天凌晨1点25分执行
  42. cow_pregnant: "0 00 15 * * ?" # 每天15点执行
  43. neck_ring_estrus: "0 45 * * * ?" # 更新脖环发情数据
  44. neck_ring_merge: "*/5 * * * * ?" # 合并脖环原始2小时数据(5分钟)
  45. neck_ring_calculate: "*/10 * * * * ?" # 计算脖环数据
  46. mqtt:
  47. broker: "kptyun.com:1983"
  48. username: "kptmqtt"
  49. password: "kepaiteng"
  50. sub_topic: "/user/heatwatch/neckring/post"
  51. qos: 0
  52. retain: false
  53. keep_alive: 60
  54. connect_timeout: 10
  55. auto_reconnect: true
  56. reconnect_interval: 10
  57. work_number: 1
  58. merge_data_ticker: 2 # 2分钟合并一次数据