Skip to content

Commit

Permalink
Added support for parallelIngestionPipelines and forceTimebasedAutoLB
Browse files Browse the repository at this point in the history
  • Loading branch information
my2ndhead committed Jul 5, 2016
1 parent 96c5421 commit 7274635
Show file tree
Hide file tree
Showing 7 changed files with 42 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README/spec/outputs_conf.spec
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ splunk_outputs_conf:

indexerDiscovery: <name>
* Instructs the forwarder to fetch the list of indexers from the master node specified in the corresponding [indexer_discovery:<name>] stanza.

forceTimebasedAutoLB: [true|false]
* Will force existing streams to switch to newly elected indexer every AutoLB cycle.
* Defaults to false

[target_groupN:]
...
Expand Down
6 changes: 6 additions & 0 deletions README/spec/server_conf.spec
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@

splunk_server_conf:
general:

parallelIngestionPipelines: <integer>
* Data being loaded into splunk, whether for indexing or forwarding, progresses through a series of steps arranged into "pipelines".
By setting this to more than one, more processor threads can be set up to perform this work.
* Defaults to 1

pass4SymmKey: <password>
* Encrypted password

Expand Down
1 change: 1 addition & 0 deletions README/templates/group_vars/heavyforwarder/outputs.conf
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ splunk_outputs_conf:
defaultGroup: production
target_group:
production:
forceTimebasedAutoLB: true
useACK: true
indexerDiscovery: production
sslPassword: password
Expand Down
1 change: 1 addition & 0 deletions README/templates/group_vars/heavyforwarder/server.conf
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
splunk_server_conf:
general:
site: site0
parallelIngestionPipelines: 2
license:
master_uri: dynamic
sslConfig:
Expand Down
1 change: 1 addition & 0 deletions roles/conf/outputs/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
- include: touch.yml
- include: tcpout/defaultGroup.yml
- include: tcpout:target_group/forceTimebasedAutoLB.yml
- include: tcpout:target_group/indexerDiscovery.yml
- include: tcpout:target_group/server.yml
- include: tcpout:target_group/sslCertPath.yml
Expand Down
28 changes: 28 additions & 0 deletions roles/conf/server/tasks/general/parallelIngestionPipelines.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
---
#####################################################################################################################
# Configurations for Splunk server.conf
#####################################################################################################################

#####################################################################################################################
# [general]
#####################################################################################################################

# parallelIngestionPipelines

- name: "Configure server.conf [general] - parallelIngestionPipelines state=present (static)"
ini_file: dest={{ splunk_conf_path }}/server.conf
section=general
option=parallelIngestionPipelines
value={{ splunk_server_conf.general.parallelIngestionPipelines }}
state=present
when: splunk_server_conf.general.parallelIngestionPipelines is defined and
splunk_server_conf.general.parallelIngestionPipelines != "1"
notify: splunk restart

- name: "Configure server.conf [general] - parallelIngestionPipelines state=absent (default)"
ini_file: dest={{ splunk_conf_path }}/server.conf
section=general
option=parallelIngestionPipelines
state=absent
when: splunk_server_conf.general.parallelIngestionPipelines is undefined
notify: splunk restart
1 change: 1 addition & 0 deletions roles/conf/server/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
- include: clustering/search_factor.yml
- include: clustering/site_replication_factor.yml
- include: diskUsage/minFreeSpace.yml
- include: general/parallelIngestionPipelines.yml
- include: general/pass4SymmKey.yml
- include: general/site.yml
- include: general/trustedIP.yml
Expand Down

0 comments on commit 7274635

Please sign in to comment.