Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

160 linhas
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. aliyun:
  90. access_key: LTAI5tSJ62TLMUb4SZuf285A
  91. access_secret: MWYynm30filZ7x0HqSHlU3pdLVNeI7
  92. oss:
  93. endpoint: http://oss-cn-shanghai.aliyuncs.com
  94. bucket: 'ta-tech-image'
  95. connect_timeout: 30
  96. vod:
  97. host_address: https://vod.play.t-aaron.com/
  98. ecsRegionId: "cn-shanghai"
  99. service:
  100. frame_step: 270 # 多少帧数步长之间获取一次分析图片
  101. timeout: 21600 # 一次识别任务超时时间,单位秒,默认6个小时
  102. cv2_pull_stream_timeout: 3600 # 直播开始视频未推流超时时间
  103. cv2_read_stream_timeout: 1800 # 直播读流中超时时间
  104. # 日志设置
  105. log:
  106. # 是否开启文件输出 True:开启 False:关闭
  107. enable_file_log: True
  108. # 是否开启控制台日志输出 True:开启 False:关闭
  109. enable_stderr: False
  110. # 日志打印文件夹
  111. base_path: /home/DATA/dsp/python/logs/
  112. # 日志文件名称
  113. log_name: dsp.log
  114. # 日志打印格式
  115. log_fmt: "{time:YYYY-MM-DD HH:mm:ss.SSS} [{level}][{process.name}-{process.id}-{thread.name}-{thread.id}][{line}] {module}-{function} - {message}"
  116. # 日志隔离级别
  117. level: DEBUG
  118. # 日志每天0点创建新文件
  119. rotation: 00:00
  120. # 日志保存时间15天
  121. retention: 15 days
  122. # 线程安全
  123. enqueue: True
  124. # 编码格式
  125. encoding: utf8
  126. #mysql:
  127. # # 数据库信息
  128. # dev:
  129. # host: 192.168.11.13
  130. # port: 3306
  131. # dbname: tuheng_dsp
  132. # username: root
  133. # password: idontcare
  134. # test:
  135. # host: 192.168.11.242
  136. # port: 3306
  137. # dbname: tuheng_dsp
  138. # username: root
  139. # password: idontcare
  140. # prod:
  141. # host: 172.16.1.22
  142. # port: 3306
  143. # dbname: tuheng_dsp
  144. # username: root
  145. # password: TH22#2022
  146. # db_charset: utf8
  147. # # mincached : 启动时开启的闲置连接数量(缺省值 0 开始时不创建连接)
  148. # db_min_cached: 0
  149. # # maxcached : 连接池中允许的闲置的最多连接数量(缺省值 0 代表不闲置连接池大小)
  150. # db_max_cached: 10
  151. # # maxshared : 共享连接数允许的最大数量(缺省值 0 代表所有连接都是专用的)如果达到了最大数量,被请求为共享的连接将会被共享使用
  152. # db_max_shared: 10
  153. # # maxconnecyions : 创建连接池的最大数量(缺省值 0 代表不限制)
  154. # db_max_connecyions: 20
  155. # # maxusage : 单个连接的最大允许复用次数(缺省值 0 或 False 代表不限制的复用).当达到最大数时,连接会自动重新连接(关闭和重新打开)
  156. # db_blocking: True
  157. # # maxusage : 单个连接的最大允许复用次数(缺省值 0 或 False 代表不限制的复用).当达到最大数时,连接会自动重新连接(关闭和重新打开)
  158. # db_max_usage: 0
  159. # # setsession : 一个可选的SQL命令列表用于准备每个会话,如["set datestyle to german", ...]
  160. # db_set_session: None