Splunk® Data Stream Processor

Install and administer the Data Stream Processor

On October 30, 2022, all 1.2.x versions of the Splunk Data Stream Processor will reach its end of support date. See the Splunk Software Support Policy for details. For information about upgrading to a supported version, see the Upgrade the Splunk Data Stream Processor topic.
This documentation does not apply to the most recent version of Splunk® Data Stream Processor. For documentation on the most recent version, go to the latest release.

Increase internal partitions to improve pipeline throughput

The throughput of your pipelines is highly correlated with the parallelism of the pipeline. You can increase the parallelism of certain pipelines by increasing the number of input partitions of the internal Apache Pulsar message bus. The Splunk Data Stream Processor uses Apache Pulsar as the message bus for the following data sources: Read from Splunk Firehose, Read from Forwarders Service, and Read from the Ingest REST API.

Data loss may occur when decreasing the number of partitions later on. Therefore, if you want to increase the number of input partitions, make sure that you do not overallocate input partitions in the process. If you do need to decrease the number of partitions, contact Splunk Support.

Steps:

  1. From a controller node in your cluster, get a list of running Apache Pulsar broker pods.
    kubectl get pods -n pulsar
  2. Log into a running broker pod.
    kubectl exec -it broker-0 -n pulsar /bin/bash
    
  3. (Optional) Get the current number of partitions.
    pulsar-admin topics get-partitioned-topic-metadata DSP/default-ingest/input
  4. Use the pulsar-admin CLI tool to update the number of partitions.
    pulsar-admin topics update-partitioned-topic -p <Number-of-Partitions> DSP/default-ingest/input  
  5. Confirm that the number of partitions has been changed by using the pulsar-admin CLI tool again.
    pulsar-admin topics get-partitioned-topic-metadata DSP/default-ingest/input
    
  6. Log in to the Data Stream Processor and restart your pipelines for changes to take effect.

To further improve pipeline throughput, you can add a batching function in your pipeline. See batch bytes or batch records.

Last modified on 14 November, 2023
Back up your Splunk Data Stream Processor deployment   About the Splunk App for DSP

This documentation applies to the following versions of Splunk® Data Stream Processor: 1.2.1, 1.2.2-patch02, 1.2.4, 1.2.5, 1.3.0, 1.3.1


Was this topic useful?







You must be logged into splunk.com in order to post comments. Log in now.

Please try to keep this discussion focused on the content covered in this documentation topic. If you have a more general question about Splunk functionality or are experiencing a difficulty with Splunk, consider posting a question to Splunkbase Answers.

0 out of 1000 Characters