|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197 |
- dsp:
- active: dev
- kafka:
- topic:
- dsp-alg-online-tasks-topic: dsp-alg-online-tasks
- dsp-alg-offline-tasks-topic: dsp-alg-offline-tasks
- dsp-alg-image-tasks-topic: dsp-alg-image-tasks
- dsp-alg-results-topic: dsp-alg-task-results
- local:
- bootstrap_servers: ['192.168.10.11:9092']
- # dsp-alg-online-tasks:
- # partition: [0]
- # dsp-alg-offline-tasks:
- # partition: [0]
- # dsp-alg-task-results:
- # partition: [0]
- producer:
- acks: -1
- retries: 3
- linger_ms: 50
- retry_backoff_ms: 1000
- max_in_flight_requests_per_connection: 5
- consumer:
- client_id: dsp_ai_server
- group_id: dsp-ai-local
- auto_offset_reset: latest
- enable_auto_commit: False
- max_poll_records: 1
- dev:
- bootstrap_servers: ['192.168.11.13:9092']
- # dsp-alg-online-tasks:
- # partition: [0]
- # dsp-alg-offline-tasks:
- # partition: [0]
- # dsp-alg-task-results:
- # partition: [0]
- producer:
- acks: -1
- retries: 3
- linger_ms: 50
- retry_backoff_ms: 1000
- max_in_flight_requests_per_connection: 5
- consumer:
- client_id: dsp_ai_server
- group_id: dsp-ai-dev
- auto_offset_reset: latest
- enable_auto_commit: False
- max_poll_records: 1
- test:
- bootstrap_servers: ['106.14.96.218:19092']
- # dsp-alg-online-tasks:
- # partition: [0]
- # dsp-alg-offline-tasks:
- # partition: [0]
- # dsp-alg-task-results:
- # partition: [0]
- producer:
- acks: -1
- retries: 3
- linger_ms: 50
- retry_backoff_ms: 1000
- max_in_flight_requests_per_connection: 5
- consumer:
- client_id: dsp_ai_server
- group_id: dsp-ai-test
- auto_offset_reset: latest
- enable_auto_commit: False
- max_poll_records: 1
- prod:
- bootstrap_servers: ['101.132.127.1:19094']
- # dsp-alg-online-tasks:
- # partition: [1]
- # dsp-alg-offline-tasks:
- # partition: [1]
- # dsp-alg-task-results:
- # partition: [1]
- producer:
- acks: -1
- retries: 3
- linger_ms: 50
- retry_backoff_ms: 1000
- max_in_flight_requests_per_connection: 5
- consumer:
- client_id: dsp_ai_server
- group_id: dsp-ai-prod
- auto_offset_reset: latest
- enable_auto_commit: False
- max_poll_records: 1
- gpu:
- # 'first'- 按升序排列可用的 GPU 设备 ID(默认)
- # 'last'- 按 id 降序排列可用的 GPU 设备 id
- # 'random'- 随机订购可用的 GPU 设备 ID
- # 'load'- 按负载递增排序可用的 GPU 设备 ID
- # 'memory'- 通过升序内存使用来排序可用的 GPU 设备 ID
- order: 'first'
- # 获取可用gpu数量
- limit: 10
- # 最大负载
- maxLoad: 0.8
- # 最大内存
- maxMemory: 0.8
- includeNan: False
- excludeID: []
- excludeUUID: []
- video:
- # 视频拉取失败,保存路径
- file_path: ../dsp/video/
- # 视频加水印开关
- video_add_water: True
- aliyun:
- access_key: LTAI5tSJ62TLMUb4SZuf285A
- access_secret: MWYynm30filZ7x0HqSHlU3pdLVNeI7
- oss:
- endpoint: http://oss-cn-shanghai.aliyuncs.com
- bucket: 'ta-tech-image'
- connect_timeout: 30
- vod:
- host_address: https://vod.play.t-aaron.com/
- ecsRegionId: "cn-shanghai"
- dev:
- CateId: 1000468341
- test:
- CateId: 1000468338
- prod:
- CateId: 1000468340
- service:
- frame_step: 300 # 多少帧数步长之间获取一次分析图片
- frame_score: 0.4 # 获取最低得分以上的图片
- filter:
- # 识别相似度是否开启
- picture_similarity: True
- # 相似度阀值
- similarity: 0.65
- timeout: 21600 # 一次识别任务超时时间,单位秒,默认6个小时
- cv2_pull_stream_timeout: 3600 # 直播开始视频未推流超时时间
- cv2_read_stream_timeout: 1800 # 直播读流中超时时间
- baiduocr:
- APP_ID: 28173504
- API_KEY: kqrFE7VuygIaFer7z6cRxzoi
- SECRET_KEY: yp7xBokyl4TItyGhay7skAN1cMwfvEXf
- # 日志设置
- log:
- # 是否开启文件输出 True:开启 False:关闭
- enable_file_log: True
- # 是否开启控制台日志输出 True:开启 False:关闭
- enable_stderr: True
- # 日志打印文件夹
- base_path: ../dsp/logs/
- # 日志文件名称
- log_name: dsp.log
- # 日志打印格式
- log_fmt: "{time:YYYY-MM-DD HH:mm:ss.SSS} [{level}][{process.name}-{process.id}-{thread.name}-{thread.id}][{line}] {module}-{function} - {message}"
- # 日志隔离级别
- level: INFO
- # 日志每天0点创建新文件
- rotation: 00:00
- # 日志保存时间15天
- retention: 15 days
- # 线程安全
- enqueue: True
- # 编码格式
- encoding: utf8
- #mysql:
- # # 数据库信息
- # dev:
- # host: 192.168.11.13
- # port: 3306
- # dbname: tuheng_dsp
- # username: root
- # password: idontcare
- # test:
- # host: 192.168.11.242
- # port: 3306
- # dbname: tuheng_dsp
- # username: root
- # password: idontcare
- # prod:
- # host: 172.16.1.22
- # port: 3306
- # dbname: tuheng_dsp
- # username: root
- # password: TH22#2022
- # db_charset: utf8
- # # mincached : 启动时开启的闲置连接数量(缺省值 0 开始时不创建连接)
- # db_min_cached: 0
- # # maxcached : 连接池中允许的闲置的最多连接数量(缺省值 0 代表不闲置连接池大小)
- # db_max_cached: 10
- # # maxshared : 共享连接数允许的最大数量(缺省值 0 代表所有连接都是专用的)如果达到了最大数量,被请求为共享的连接将会被共享使用
- # db_max_shared: 10
- # # maxconnecyions : 创建连接池的最大数量(缺省值 0 代表不限制)
- # db_max_connecyions: 20
- # # maxusage : 单个连接的最大允许复用次数(缺省值 0 或 False 代表不限制的复用).当达到最大数时,连接会自动重新连接(关闭和重新打开)
- # db_blocking: True
- # # maxusage : 单个连接的最大允许复用次数(缺省值 0 或 False 代表不限制的复用).当达到最大数时,连接会自动重新连接(关闭和重新打开)
- # db_max_usage: 0
- # # setsession : 一个可选的SQL命令列表用于准备每个会话,如["set datestyle to german", ...]
- # db_set_session: None
|