空港防疫算法交互
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.

141 lines
4.2KB

  1. dsp:
  2. active: dev
  3. kafka:
  4. topic:
  5. fk-alg-tasks-topic: fk-alg-tasks
  6. fk-alg-results-topic: fk-alg-results
  7. local:
  8. bootstrap_servers: ['192.168.10.11:9092']
  9. producer:
  10. acks: -1
  11. retries: 3
  12. linger_ms: 50
  13. retry_backoff_ms: 1000
  14. max_in_flight_requests_per_connection: 5
  15. consumer:
  16. client_id: fk_ai_server
  17. group_id: fk-ai-local
  18. auto_offset_reset: latest
  19. enable_auto_commit: False
  20. max_poll_records: 1
  21. dev:
  22. bootstrap_servers: ['192.168.11.13:9092']
  23. producer:
  24. acks: -1
  25. retries: 3
  26. linger_ms: 50
  27. retry_backoff_ms: 1000
  28. max_in_flight_requests_per_connection: 5
  29. consumer:
  30. client_id: fk_ai_server
  31. group_id: fk-ai-dev
  32. auto_offset_reset: latest
  33. enable_auto_commit: False
  34. max_poll_records: 1
  35. test:
  36. bootstrap_servers: ['192.168.11.242:9092']
  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: fk_ai_server
  45. group_id: fk-ai-test
  46. auto_offset_reset: latest
  47. enable_auto_commit: False
  48. max_poll_records: 1
  49. prod:
  50. bootstrap_servers: ['101.132.127.1:19092']
  51. producer:
  52. acks: -1
  53. retries: 3
  54. linger_ms: 50
  55. retry_backoff_ms: 1000
  56. max_in_flight_requests_per_connection: 5
  57. consumer:
  58. client_id: fk_ai_server
  59. group_id: fk-ai-prod
  60. auto_offset_reset: latest
  61. enable_auto_commit: False
  62. max_poll_records: 1
  63. gpu:
  64. # 'first'- 按升序排列可用的 GPU 设备 ID(默认)
  65. # 'last'- 按 id 降序排列可用的 GPU 设备 id
  66. # 'random'- 随机订购可用的 GPU 设备 ID
  67. # 'load'- 按负载递增排序可用的 GPU 设备 ID
  68. # 'memory'- 通过升序内存使用来排序可用的 GPU 设备 ID
  69. order: 'memory'
  70. # 获取可用gpu数量
  71. limit: 1
  72. # 最大负载
  73. maxLoad: 0.8
  74. # 最大内存
  75. maxMemory: 0.8
  76. includeNan: False
  77. excludeID: []
  78. excludeUUID: []
  79. # 日志设置
  80. log:
  81. # 是否开启文件输出 True:开启 False:关闭
  82. enable_file_log: False
  83. # 是否开启控制台日志输出 True:开启 False:关闭
  84. enable_stderr: True
  85. # 日志打印文件夹
  86. base_path: /home/DATA/fk/logs/
  87. # 日志文件名称
  88. log_name: fk.log
  89. # 日志打印格式
  90. log_fmt: "{time:YYYY-MM-DD HH:mm:ss.SSS} [{level}][{process.name}-{process.id}-{thread.name}-{thread.id}][{line}] {module}-{function} - {message}"
  91. # 日志隔离级别
  92. level: INFO
  93. # 日志每天0点创建新文件
  94. rotation: 00:00
  95. # 日志保存时间15天
  96. retention: 15 days
  97. # 线程安全
  98. enqueue: True
  99. # 编码格式
  100. encoding: utf8
  101. baiduocr:
  102. APP_ID: 28173504
  103. API_KEY: kqrFE7VuygIaFer7z6cRxzoi
  104. SECRET_KEY: yp7xBokyl4TItyGhay7skAN1cMwfvEXf
  105. #mysql:
  106. # # 数据库信息
  107. # dev:
  108. # host: 192.168.11.13
  109. # port: 3306
  110. # dbname: tuheng_dsp
  111. # username: root
  112. # password: idontcare
  113. # test:
  114. # host: 192.168.11.242
  115. # port: 3306
  116. # dbname: tuheng_dsp
  117. # username: root
  118. # password: idontcare
  119. # prod:
  120. # host: 172.16.1.22
  121. # port: 3306
  122. # dbname: tuheng_dsp
  123. # username: root
  124. # password: TH22#2022
  125. # db_charset: utf8
  126. # # mincached : 启动时开启的闲置连接数量(缺省值 0 开始时不创建连接)
  127. # db_min_cached: 0
  128. # # maxcached : 连接池中允许的闲置的最多连接数量(缺省值 0 代表不闲置连接池大小)
  129. # db_max_cached: 10
  130. # # maxshared : 共享连接数允许的最大数量(缺省值 0 代表所有连接都是专用的)如果达到了最大数量,被请求为共享的连接将会被共享使用
  131. # db_max_shared: 10
  132. # # maxconnecyions : 创建连接池的最大数量(缺省值 0 代表不限制)
  133. # db_max_connecyions: 20
  134. # # maxusage : 单个连接的最大允许复用次数(缺省值 0 或 False 代表不限制的复用).当达到最大数时,连接会自动重新连接(关闭和重新打开)
  135. # db_blocking: True
  136. # # maxusage : 单个连接的最大允许复用次数(缺省值 0 或 False 代表不限制的复用).当达到最大数时,连接会自动重新连接(关闭和重新打开)
  137. # db_max_usage: 0
  138. # # setsession : 一个可选的SQL命令列表用于准备每个会话,如["set datestyle to german", ...]
  139. # db_set_session: None