样例配置文件

样例配置文件存储在“${MX_SDK_HOME}/config/streamserver.conf”,配置项如下:

  • “streamserver.conf”文件路径、“configRepository”目录的路径、pipeline文件路径、om文件路径、模型配置等相关路径如果设置的是相对路径, 则上述所有相对路径需要相对于推理服务进程的启动路径进行设置。
  • “streamserver.conf”配置文件每行需小于1000个字符,整个文件需小于100行,否则读取失败。
  • 请勿在一个配置文件中设置多个相同的配置项,如果存在多个相同的配置项,将以最后一个为准。
# inference server name, default StreamServer
server_name=StreamServer
# Inference configuration repository directory path, default ./inferConfigRepository
infer_config_repo=./inferConfigRepository
# request cache size, default 120, range [1,1000]
request_cache_size=120
# The maximum request rate of the client per second, the default is 20 requests per second, range [1,30]
max_request_rate=20
# The maximum sum length of content with its request head, set this number in KB. The default is 20MB = 20480KB, range [1, 51200](KB)
max_content_length=20480
# The port that the service is listening on, range [1025, 65535], default is 8080
port=8080
# Using the https protocol, you need to set the following items: server_crt/server_key/ca_crt/server_key_mm, crl is optional
# server.crt file path
server_crt=
# server.key file path
server_key=
# ca.crt file path
ca_crt=
# (optional) ca.crl file path, default: null 
crl=
# the encrypted server key (Managed by Huawei KMC)
server_key_mm=
# TLS ssl cipher list 
cipher_list=ECDHE-ECDSA-AES128-CCM:ECDHE-ECDSA-AES256-CCM:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384
# sdp algorithm id, default 9, options:AES128_GCM = 8, AES256_GCM = 9
sdp_algorithm_id=9