Environment Variables#

DL Streamer Pipeline Server microservice’s configuration is defined via environment variables.

Mandatory#

Enable and specify port for REST server#

  • REST_SERVER_PORT (Integer) - Port on which REST Server is hosted

    • Example: REST_SERVER_PORT=8080

Username and ID#

  • PIPELINE_SERVER_USER (String) - Name of the user inside the dlstreamer pipeline server container

    • Example: PIPELINE_SERVER_USER=intelmicroserviceuser

  • UID (Integer) - User ID permissions for the above defined user

    • Example: UID=1999

proxy settings#

  • http_proxy (String) - IP address and port of http_proxy server.

    • Example: http_proxy=http:<ip-addr>:<port>

  • https_proxy (String) - - IP address and port of https_proxy server.

    • Example: https_proxy=http:<ip-addr>:<port>

  • no_proxy (String) - - IP address and port of no_proxy server.

    • Example: no_proxy=http:<ip-addr>:<port>

Optional#

Miscellaneous env variables#

  • GST_DEBUG (Integer) - Enable GST debug logs

    • Example: GST_DEBUG=1

  • ADD_UTCTIME_TO_METADATA (Boolean) - Add UTC timestamp in metadata by DL Streamer Pipeline Server publisher

    • Example: ADD_UTCTIME_TO_METADATA=true

    • Example: ADD_UTCTIME_TO_METADATA=false

  • HTTPS (Boolean) - Make it true to enable SSL/TLS secure mode, mount the generated certificates

    • Example: HTTPS=true

    • Example: HTTPS=false

  • MTLS_VERIFICATION (Boolean) - Enable/disable client certificate verification for mTLS Model Registry Microservice

    • Example: MTLS_VERIFICATION=true

    • Example: MTLS_VERIFICATION=false

  • MR_URL (String) - Sets the URL where the model registry microservice is accessible

    • Example: MR_URL=http://10.100.10.100:32002

    • Example: MR_URL=http://model-registry:32002

    • In order to connect to the model registry using its hostname, the DL Streamer Pipeline Server and model registry has to belong to the same shared network.

    • If not set or left empty, the DL Streamer Pipeline Server will not be able to connect to the model registry successfully.

  • MR_SAVED_MODELS_DIR (String) - Sets the directory path where the DL Streamer Pipeline Server stores models downloaded from the model registry microservice.

    • Example: MR_SAVED_MODELS_DIR=./mr_models

    • The . (dot) refers to the current working directory inside the DL Streamer Pipeline Server container.

    • For example, if the container’s working directory is /home/pipeline-server, then ./mr_models means /home/pipeline-server/mr_models.

    • You can configure the volume mount for this directory in your respective docker-compose.yml file.

    • If not set, it defaults to ./mr_models.

  • MR_REQUEST_TIMEOUT (Integer) - Sets the timeout for requests sent to the model registry microservice.

    • Example: MR_REQUEST_TIMEOUT=300

    • If not set, it defaults to 300.

  • MR_VERIFY_CERT (String) - Specifies how SSL certificate verification is handled when communicating with the model registry microservice.

    • Example: MR_VERIFY_CERT=/run/secrets/ModelRegistry_Server/ca-bundle.crt

    • Example: MR_VERIFY_CERT=yes

    • This variable is only used if MR_URL contains https

    • If not set, it defaults to /run/secrets/ModelRegistry_Server/ca-bundle.crt

    • To enable SSL certificate verification using the system’s default CA bundle, set this variable to: yes, y, true, t, or 1

    • To verify the certificates issued by CAs not included in the system’s default bundle, set it to the file or directory path that contains the custom CA bundle

    • To disable verification, set it to: no, n, false, f, 0, or leave it empty

  • LOG_LEVEL (String) - Set the logging level for DL Streamer Pipeline Server

    • Example: LOG_LEVEL=INFO

    • Example: LOG_LEVEL=DEBUG

    • Example: LOG_LEVEL=ERROR

    • Example: LOG_LEVEL=WARN

  • BASE_IMAGE (String) - Base image name to be used to build the DL Streamer Pipeline Server docker

    • Example: BASE_IMAGE=<base-image-name>

  • DLSTREAMER_PIPELINE_SERVER_IMAGE (String) - Image name to build or run DL Streamer Pipeline Server

    • Example: DLSTREAMER_PIPELINE_SERVER_IMAGE=intel/dlstreamer-pipeline-server:3.1.0-ubuntu22

  • BUILD_TARGET (String) - Option to select the target build for DL Streamer Pipeline Server. Use dlstreamer-pipeline-server for optimized image and dlstreamer-pipeline-server-extended for extended image

    • Example: BUILD_TARGET=dlstreamer-pipeline-server

    • Example: BUILD_TARGET=dlstreamer-pipeline-server-extended

  • DLSTREAMER_PIPELINE_SERVER_DOCKERFILE (String) - Path to docker file during building of DL Streamer Pipeline Server

    • Example: DLSTREAMER_PIPELINE_SERVER_DOCKERFILE=Dockerfile

  • ZE_ENABLE_ALT_DRIVERS (String) - Variable needed to run inference successfully on NPU devices

    • Example: ZE_ENABLE_ALT_DRIVERS=libze_intel_npu.so