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.

192 lines
5.8KB

  1. dsp:
  2. active: dev
  3. kafka:
  4. topic:
  5. dsp-alg-online-tasks-topic: dsp-alg-online-tasks
  6. dsp-alg-offline-tasks-topic: dsp-alg-offline-tasks
  7. dsp-alg-image-tasks-topic: dsp-alg-image-tasks
  8. dsp-alg-results-topic: dsp-alg-task-results
  9. local:
  10. bootstrap_servers: ['192.168.10.11:9092']
  11. # dsp-alg-online-tasks:
  12. # partition: [0]
  13. # dsp-alg-offline-tasks:
  14. # partition: [0]
  15. # dsp-alg-task-results:
  16. # partition: [0]
  17. producer:
  18. acks: -1
  19. retries: 3
  20. linger_ms: 50
  21. retry_backoff_ms: 1000
  22. max_in_flight_requests_per_connection: 5
  23. consumer:
  24. client_id: dsp_ai_server
  25. group_id: dsp-ai-local
  26. auto_offset_reset: latest
  27. enable_auto_commit: False
  28. max_poll_records: 1
  29. dev:
  30. bootstrap_servers: ['192.168.11.13:9092']
  31. # dsp-alg-online-tasks:
  32. # partition: [0]
  33. # dsp-alg-offline-tasks:
  34. # partition: [0]
  35. # dsp-alg-task-results:
  36. # partition: [0]
  37. producer:
  38. acks: -1
  39. retries: 3
  40. linger_ms: 50
  41. retry_backoff_ms: 1000
  42. max_in_flight_requests_per_connection: 5
  43. consumer:
  44. client_id: dsp_ai_server
  45. group_id: dsp-ai-dev
  46. auto_offset_reset: latest
  47. enable_auto_commit: False
  48. max_poll_records: 1
  49. test:
  50. bootstrap_servers: ['106.14.96.218:19092']
  51. # dsp-alg-online-tasks:
  52. # partition: [0]
  53. # dsp-alg-offline-tasks:
  54. # partition: [0]
  55. # dsp-alg-task-results:
  56. # partition: [0]
  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-test
  66. auto_offset_reset: latest
  67. enable_auto_commit: False
  68. max_poll_records: 1
  69. prod:
  70. bootstrap_servers: ['101.132.127.1:19094', '101.132.127.1:29094', '101.132.127.1:39094']
  71. # dsp-alg-online-tasks:
  72. # partition: [1]
  73. # dsp-alg-offline-tasks:
  74. # partition: [1]
  75. # dsp-alg-task-results:
  76. # partition: [1]
  77. producer:
  78. acks: -1
  79. retries: 3
  80. linger_ms: 50
  81. retry_backoff_ms: 1000
  82. max_in_flight_requests_per_connection: 5
  83. consumer:
  84. client_id: dsp_ai_server
  85. group_id: dsp-ai-prod
  86. auto_offset_reset: latest
  87. enable_auto_commit: False
  88. max_poll_records: 1
  89. gpu:
  90. # 'first'- 按升序排列可用的 GPU 设备 ID(默认)
  91. # 'last'- 按 id 降序排列可用的 GPU 设备 id
  92. # 'random'- 随机订购可用的 GPU 设备 ID
  93. # 'load'- 按负载递增排序可用的 GPU 设备 ID
  94. # 'memory'- 通过升序内存使用来排序可用的 GPU 设备 ID
  95. order: 'memory'
  96. # 获取可用gpu数量
  97. limit: 1
  98. # 最大负载
  99. maxLoad: 0.8
  100. # 最大内存
  101. maxMemory: 0.8
  102. includeNan: False
  103. excludeID: []
  104. excludeUUID: []
  105. video:
  106. # 视频拉取失败,保存路径
  107. file_path: /home/DATA/dsp/ai/video/
  108. # 视频加水印开关
  109. video_add_water: True
  110. aliyun:
  111. access_key: LTAI5tSJ62TLMUb4SZuf285A
  112. access_secret: MWYynm30filZ7x0HqSHlU3pdLVNeI7
  113. oss:
  114. endpoint: http://oss-cn-shanghai.aliyuncs.com
  115. bucket: 'ta-tech-image'
  116. connect_timeout: 30
  117. vod:
  118. host_address: https://vod.play.t-aaron.com/
  119. ecsRegionId: "cn-shanghai"
  120. service:
  121. frame_step: 300 # 多少帧数步长之间获取一次分析图片
  122. frame_score: 0.4 # 获取最低得分以上的图片
  123. filter:
  124. # 识别相似度是否开启
  125. picture_similarity: True
  126. # 相似度阀值
  127. similarity: 0.65
  128. timeout: 21600 # 一次识别任务超时时间,单位秒,默认6个小时
  129. cv2_pull_stream_timeout: 3600 # 直播开始视频未推流超时时间
  130. cv2_read_stream_timeout: 1800 # 直播读流中超时时间
  131. baiduocr:
  132. APP_ID: 28173504
  133. API_KEY: kqrFE7VuygIaFer7z6cRxzoi
  134. SECRET_KEY: yp7xBokyl4TItyGhay7skAN1cMwfvEXf
  135. # 日志设置
  136. log:
  137. # 是否开启文件输出 True:开启 False:关闭
  138. enable_file_log: True
  139. # 是否开启控制台日志输出 True:开启 False:关闭
  140. enable_stderr: True
  141. # 日志打印文件夹
  142. base_path: /home/DATA/dsp/python/logs/
  143. # 日志文件名称
  144. log_name: dsp.log
  145. # 日志打印格式
  146. log_fmt: "{time:YYYY-MM-DD HH:mm:ss.SSS} [{level}][{process.name}-{process.id}-{thread.name}-{thread.id}][{line}] {module}-{function} - {message}"
  147. # 日志隔离级别
  148. level: INFO
  149. # 日志每天0点创建新文件
  150. rotation: 00:00
  151. # 日志保存时间15天
  152. retention: 15 days
  153. # 线程安全
  154. enqueue: True
  155. # 编码格式
  156. encoding: utf8
  157. #mysql:
  158. # # 数据库信息
  159. # dev:
  160. # host: 192.168.11.13
  161. # port: 3306
  162. # dbname: tuheng_dsp
  163. # username: root
  164. # password: idontcare
  165. # test:
  166. # host: 192.168.11.242
  167. # port: 3306
  168. # dbname: tuheng_dsp
  169. # username: root
  170. # password: idontcare
  171. # prod:
  172. # host: 172.16.1.22
  173. # port: 3306
  174. # dbname: tuheng_dsp
  175. # username: root
  176. # password: TH22#2022
  177. # db_charset: utf8
  178. # # mincached : 启动时开启的闲置连接数量(缺省值 0 开始时不创建连接)
  179. # db_min_cached: 0
  180. # # maxcached : 连接池中允许的闲置的最多连接数量(缺省值 0 代表不闲置连接池大小)
  181. # db_max_cached: 10
  182. # # maxshared : 共享连接数允许的最大数量(缺省值 0 代表所有连接都是专用的)如果达到了最大数量,被请求为共享的连接将会被共享使用
  183. # db_max_shared: 10
  184. # # maxconnecyions : 创建连接池的最大数量(缺省值 0 代表不限制)
  185. # db_max_connecyions: 20
  186. # # maxusage : 单个连接的最大允许复用次数(缺省值 0 或 False 代表不限制的复用).当达到最大数时,连接会自动重新连接(关闭和重新打开)
  187. # db_blocking: True
  188. # # maxusage : 单个连接的最大允许复用次数(缺省值 0 或 False 代表不限制的复用).当达到最大数时,连接会自动重新连接(关闭和重新打开)
  189. # db_max_usage: 0
  190. # # setsession : 一个可选的SQL命令列表用于准备每个会话,如["set datestyle to german", ...]
  191. # db_set_session: None