Sample Configuration File
The sample configuration file is stored in ${MX_SDK_HOME}/config/streamserver.conf. The configuration items are as follows.
- If the paths of the streamserver.conf file, configRepository directory, pipeline file, OM file, and model configuration file are set to relative paths, they must be set based on the startup path of the inference service process.
- Each line in the streamserver.conf file can contain a maximum of 1000 characters. The entire file cannot contain more than 100 lines. Otherwise, the file fails to be read.
- Do not set multiple same configuration items in one configuration file. If multiple configuration items exist, the first one is used.
# inference server name, defalut 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 IP address that the server is listening on, the default is 127.0.0.1 ip=127.0.0.1 # The port that the service is listening on, range [1025, 65535], default is 8080 port=8080 # Communication protocol, currently supports http and https, the default is https protocol=https # If you use 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 # IP whitelists, use ',' to separate multiple IPs ip_white_lists=
Parent topic: Service Configuration