|
- dsp:
- active: dev
- kafka:
- topic:
- fk-alg-tasks-topic: fk-alg-tasks
- fk-alg-results-topic: fk-alg-results
- local:
- bootstrap_servers: ['192.168.10.11:9092']
- producer:
- acks: -1
- retries: 3
- linger_ms: 50
- retry_backoff_ms: 1000
- max_in_flight_requests_per_connection: 5
- consumer:
- client_id: fk_ai_server
- group_id: fk-ai-local
- auto_offset_reset: latest
- enable_auto_commit: False
- max_poll_records: 1
- dev:
- bootstrap_servers: ['192.168.11.13:9092']
- producer:
- acks: -1
- retries: 3
- linger_ms: 50
- retry_backoff_ms: 1000
- max_in_flight_requests_per_connection: 5
- consumer:
- client_id: fk_ai_server
- group_id: fk-ai-dev
- auto_offset_reset: latest
- enable_auto_commit: False
- max_poll_records: 1
- test:
- bootstrap_servers: ['192.168.11.242:9092']
- producer:
- acks: -1
- retries: 3
- linger_ms: 50
- retry_backoff_ms: 1000
- max_in_flight_requests_per_connection: 5
- consumer:
- client_id: fk_ai_server
- group_id: fk-ai-test
- auto_offset_reset: latest
- enable_auto_commit: False
- max_poll_records: 1
- prod:
- bootstrap_servers: ['101.132.127.1:19092']
- producer:
- acks: -1
- retries: 3
- linger_ms: 50
- retry_backoff_ms: 1000
- max_in_flight_requests_per_connection: 5
- consumer:
- client_id: fk_ai_server
- group_id: fk-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: 'memory'
- # 获取可用gpu数量
- limit: 1
- # 最大负载
- maxLoad: 0.8
- # 最大内存
- maxMemory: 0.8
- includeNan: False
- excludeID: []
- excludeUUID: []
- # 日志设置
- log:
- # 是否开启文件输出 True:开启 False:关闭
- enable_file_log: False
- # 是否开启控制台日志输出 True:开启 False:关闭
- enable_stderr: True
- # 日志打印文件夹
- base_path: /home/DATA/fk/logs/
- # 日志文件名称
- log_name: fk.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
- baiduocr:
- APP_ID: 28173504
- API_KEY: kqrFE7VuygIaFer7z6cRxzoi
- SECRET_KEY: yp7xBokyl4TItyGhay7skAN1cMwfvEXf
-
- #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
|