# Enable Multi-Stream Ingestion This guide explains how to enable multi-stream ingestion for Time Series Analytics sample apps. Multi-stream ingestion processes multiple streams in parallel to improve throughput and scale testing. ## Parameter Reference Use `num_of_streams` in the deployment command: - `num_of_streams=`: Number of parallel ingestion streams. - Example: `num_of_streams=3` starts three concurrent streams. > **Note:** > > - If `num_of_streams` is not provided, the default value is `1`. > - `up_opcua_ingestion` is supported only for the `wind-turbine-anomaly-detection` sample app. ## Deploy with Docker Compose Run one of the following commands based on your sample app and ingestion mode. ::::{tab-set} :::{tab-item} **Wind Turbine Anomaly Detection** :sync: tab1 ```bash # Deploy with OPC-UA multi-stream ingestion export OPCUA_SERVER_PORT_MAPPING=30003-30100 make up_opcua_ingestion app="wind-turbine-anomaly-detection" num_of_streams= # Deploy with MQTT multi-stream ingestion make up_mqtt_ingestion app="wind-turbine-anomaly-detection" num_of_streams= ``` ::: :::{tab-item} **Weld Defect Detection** :sync: tab2 ```bash # Deploy with MQTT multi-stream ingestion make up_mqtt_ingestion app="weld-defect-detection" num_of_streams= ``` ::: :::: ## Verification After deployment, verify service status: ```bash make status ```