Getting Data In

How to configure load balancing on a heavy forwarder?

nce054
Path Finder

I am configuring a Heavy Forwarder to point to 3 indexers. I want load balancing to be enabled. Are the individual tcpout-server stanzas interfering with the load balancing? Are they even necessary?

[tcpout]
disabled = false
defaultGroup = default-autolb-group
indexAndForward = 1
[tcpout-server://server1:9997]
[tcpout-server://server2:9997]
[tcpout-server://server3:9997]

[tcpout:default-autolb-group]
disabled = false
autoLB = true
autoLBFrequency = 7
server = server1:9997,server2:9997,server3:9997
0 Karma

s2_splunk
Splunk Employee
Splunk Employee

The tcpout-server stanzas are redundant, given that you have a routing group configured. What's the reason you set autoLBFrequency to just 7 seconds? There's going to be a lot of connection establishment/teardown going on. Just curious.

0 Karma

nce054
Path Finder

I borrowed this setup from someone else, I did not understand what the attribute meant. What would be an advisable period?

0 Karma

s2_splunk
Splunk Employee
Splunk Employee

By default, the forwarders will switch to a different indexer (randomly) every 30 seconds, or when EOF is reached on a monitored file. There are situations where you want to tune that, specifically if you notice an uneven event distribution across your three indexers.
Having a good distribution of events across your indexing tier is ensuring optimal search performance.
Take a look here for more details on each of the outputs.conf settings.

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Can’t Make It to Boston? Stream .conf25 and Learn with Haya Husain

Boston may be buzzing this September with Splunk University and .conf25, but you don’t have to pack a bag to ...

Splunk Lantern’s Guide to The Most Popular .conf25 Sessions

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Unlock What’s Next: The Splunk Cloud Platform at .conf25

In just a few days, Boston will be buzzing as the Splunk team and thousands of community members come together ...