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.

162 lines
5.0KB

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