You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

125 lines
3.5KB

  1. kafka:
  2. topic:
  3. dsp-alg-online-tasks-topic: dsp-alg-online-tasks
  4. dsp-alg-online-tasks:
  5. partition: [0]
  6. dsp-alg-offline-tasks-topic: dsp-alg-offline-tasks
  7. dsp-alg-offline-tasks:
  8. partition: [0]
  9. dsp-alg-results-topic: dsp-alg-task-results
  10. dsp-alg-task-results:
  11. partition: [0]
  12. active: dev
  13. local:
  14. bootstrap_servers: ['192.168.10.11:9092']
  15. producer:
  16. acks: -1
  17. retries: 3
  18. linger_ms: 50
  19. retry_backoff_ms: 1000
  20. max_in_flight_requests_per_connection: 5
  21. consumer:
  22. client_id: dsp_ai_server
  23. group_id: dsp-ai-local
  24. auto_offset_reset: latest
  25. enable_auto_commit: False
  26. max_poll_records: 1
  27. dev:
  28. bootstrap_servers: ['192.168.11.13:9092']
  29. producer:
  30. acks: -1
  31. retries: 3
  32. linger_ms: 50
  33. retry_backoff_ms: 1000
  34. max_in_flight_requests_per_connection: 5
  35. consumer:
  36. client_id: dsp_ai_server
  37. group_id: dsp-ai-dev
  38. auto_offset_reset: latest
  39. enable_auto_commit: False
  40. max_poll_records: 1
  41. test:
  42. bootstrap_servers: ['192.168.11.242:9092']
  43. producer:
  44. acks: -1
  45. retries: 3
  46. linger_ms: 50
  47. retry_backoff_ms: 1000
  48. max_in_flight_requests_per_connection: 5
  49. consumer:
  50. client_id: dsp_ai_server
  51. group_id: dsp-ai-test
  52. auto_offset_reset: latest
  53. enable_auto_commit: False
  54. max_poll_records: 1
  55. prod:
  56. bootstrap_servers: ['101.132.127.1:19092']
  57. producer:
  58. acks: -1
  59. retries: 3
  60. linger_ms: 50
  61. retry_backoff_ms: 1000
  62. max_in_flight_requests_per_connection: 5
  63. consumer:
  64. client_id: dsp_ai_server
  65. group_id: dsp-ai-prod
  66. auto_offset_reset: latest
  67. enable_auto_commit: False
  68. max_poll_records: 1
  69. gpu:
  70. # 'first'- 按升序排列可用的 GPU 设备 ID(默认)
  71. # 'last'- 按 id 降序排列可用的 GPU 设备 id
  72. # 'random'- 随机订购可用的 GPU 设备 ID
  73. # 'load'- 按负载递增排序可用的 GPU 设备 ID
  74. # 'memory'- 通过升序内存使用来排序可用的 GPU 设备 ID
  75. order: 'memory'
  76. # 获取可用gpu数量
  77. limit: 1
  78. # 最大负载
  79. maxLoad: 0.8
  80. # 最大内存
  81. maxMemory: 0.8
  82. includeNan: False
  83. excludeID: []
  84. excludeUUID: []
  85. video:
  86. # 视频拉取失败,保存路径
  87. file_path: /home/DATA/dsp/ai/video/
  88. aliyun:
  89. access_key: LTAI5tSJ62TLMUb4SZuf285A
  90. access_secret: MWYynm30filZ7x0HqSHlU3pdLVNeI7
  91. oss:
  92. endpoint: http://oss-cn-shanghai.aliyuncs.com
  93. bucket: 'ta-tech-image'
  94. connect_timeout: 30
  95. vod:
  96. host_address: https://vod.play.t-aaron.com/
  97. ecsRegionId: "cn-shanghai"
  98. service:
  99. frame_step: 270 # 多少帧数步长之间获取一次分析图片
  100. timeout: 21600 # 一次识别任务超时时间,单位秒,默认6个小时
  101. cv2_pull_stream_timeout: 3600 # 直播开始视频未推流超时时间
  102. cv2_read_stream_timeout: 1800 # 直播读流中超时时间
  103. # 日志设置
  104. log:
  105. # 是否开启文件输出 True:开启 False:关闭
  106. enable_file_log: True
  107. # 是否开启控制台日志输出 True:开启 False:关闭
  108. enable_stderr: False
  109. # 日志打印文件夹
  110. base_path: /home/DATA/dsp/python/logs/
  111. # 日志文件名称
  112. log_name: dsp.log
  113. # 日志打印格式
  114. log_fmt: "{time:YYYY-MM-DD HH:mm:ss.SSS} [{level}][{process.name}-{process.id}-{thread.name}-{thread.id}][{line}] {module}-{function} - {message}"
  115. # 日志隔离级别
  116. level: DEBUG
  117. # 日志每天0点创建新文件
  118. rotation: 00:00
  119. # 日志保存时间15天
  120. retention: 15 days
  121. # 线程安全
  122. enqueue: True
  123. # 编码格式
  124. encoding: utf8