Pushing Configuration Bundles in An Indexer Cluster
Pushing Configuration Bundles in An Indexer Cluster
Pushing Configuration Bundles in An Indexer Cluster
an Indexer Cluster
The forward-looking statements made in this presentation are being made as of the time and date of its live
presentation. If reviewed after its live presentation, this presentation may not contain current or accurate
information. We do not assume any obligation to update any forward looking statements we may make. In
addition, any information about our roadmap outlines our general product direction and is subject to change
at any time without notice. It is for informational purposes only and shall not be incorporated into any contract
or other commitment. Splunk undertakes no obligation either to develop the features or functionality
described or to include any such feature or functionality in a future release.
Splunk, Splunk>, Listen to Your Data, The Engine for Machine Data, Splunk Cloud, Splunk Light and SPL are trademarks and registered trademarks of Splunk Inc. in
the United States and other countries. All other brand names, product names, or trademarks belong to their respective owners. © 2017 Splunk Inc. All rights reserved.
Agenda
▶ Cluster Master
• Manages the cluster activities (peer addition, configuration distribution)
• Maintains an in-memory state of all the peers & their corresponding buckets, configs
• Orchestrates remedial activities during peer failures
• Tells search heads where to search
▶ Cluster Peer (Indexer)
• Receive and index incoming data (typically from forwarders)
• Replicate data to other peers for data availability
• Respond to the incoming searches by providing search results
• Update cluster master on any state change (peer, buckets, configs etc.)
Configuration
Management in the
Cluster
Pushing Configuration Bundles in
an Indexer Cluster
Configuration Bundles
What is a bundle? And why should you care?
$SPLUNK_HOME/etc/master-apps $SPLUNK_HOME/etc/slave-apps
_cluster _cluster
default default
local local
app1 app1
app2 app2
© 2017 SPLUNK INC.
Bundle Pushing
It’s not like replication
Master
replication replication
12
States of a Bundle Push
States in a Bundle Push Status Report
2. Master Validation
Master
>1gb
18
© 2017 SPLUNK INC.
Master
>1gb
19
Enabling Phased Bundle Downloads
1. Configuration Bundle
2. Bundle Operations: Apply, Validate,
Check for Restart, Rollback
Recap
Bundle Push and Other 3. States during Bundle Push
Operations
DEMO
Skip Screenshots
Bundle Operations
Cluster Master UI – Indexer Clustering
Bundle Operations
Configuration Bundle Actions
Bundle Operations
Configuration Bundle Actions
Bundle Operations
Configuration change to effect bundle push
Bundle Operations
Bundle Push from the UI
Bundle Operations
Bundle Push from the UI - Stages
Bundle Operations
Bundle Push from the UI - Stages
Bundle Operations
Bundle Push from the UI - Stages
Bundle Operations
Bundle Push from the UI - Stages
Bundle Operations
Bundle Push from the UI - Complete
Bundle Operations
UI – Before Bundle Push
Bundle Operations
UI – After Bundle Push
Bundle Operations
UI – Validate and Check Restart
Bundle Operations
Configuration change to effect bundle Check Restart
Bundle Operations
Validate and Check Restart from the UI
Bundle Operations
Validate and Check Restart from the UI
Bundle Operations
Validate and Check Restart from the UI
Bundle Operations
Validate and Check Restart from the UI
Troubleshooting
and
Best Practices
Pushing Configuration Bundles in
an Indexer Cluster
Apply Bundle
Cluster Master – splunkd.log
INFO CMBundleMgr - apply bundle status transitioning from='None', to='Bundle Creation is
in progress.
INFO CMMaster - Creating a new bundle on the master.
INFO CMBundleMgr - apply bundle status transitioning from='None', to='Bundle validation
is in progress.’
INFO CMMaster - Bundle validation is in progress for peers=8A0E551F-227C-48DC-9018-
515A63F971E8,F78272B2-24DC-43BD-A402-A101123F2B4F.
Bundle validation success reported by [F78272B2-24DC-43BD-A402-A101123F2B4F
peer_name=peer1] successful for bundleid=1E704E11131BC274111CD8991E0DE621
INFO CMPeer - Bundle validation success reported by [8A0E551F-227C-48DC-9018-
515A63F971E8 peer_name=peer2] successful for bundleid=1E704E11131BC274111CD8991E0DE621
Apply Bundle
Cluster Master – splunkd.log
INFO CMBundleMgr - apply bundle status transitioning from='Bundle validation is in
progress.', to='Bundle reload is in progress. Waiting for all peers to return the
status.’
INFO CMMaster - Peers have indicated they are reload capable, issuing bundle reload.
INFO CMPeer - Bundle reload status peer=8A0E551F-227C-48DC-9018-515A63F971E8
peer_name=peer2 restart_required=1 rolling_restart=1 dryrun=0 reasons=[One or more
configs require a restart to take effect. Configs=inputs]
INFO CMPeer - Bundle reload status peer=F78272B2-24DC-43BD-A402-A101123F2B4F
peer_name=peer1 restart_required=1 rolling_restart=1 dryrun=0 reasons=[One or more
configs require a restart to take effect. Configs=inputs]
INFO CMMaster - Restart required to apply the bundle.
INFO CMBundleMgr - apply bundle status transitioning from='Bundle reload is in progress.
Waiting for all peers to return the status.', to='Rolling restart of the peers is in
progress.’
INFO CMMaster - Starting a rolling restart of the peers.
Apply Bundle
Viewing the cluster bundle
815D4F439CA468F282164B7E456154E7
_cluster
app1
1E704E11131BC274111CD8991E0DE621.tar.gz.previous
ED4C6043FBF5345DBDCD3DD304636F9C.tar.gz.active
© 2017 SPLUNK INC.
Best Practices
URLs:
https://docs.splunk.com/Documentation/Splunk/6.6.
3/Indexer/Managecommonconfigurations
https://docs.splunk.com/Documentation/Splunk/6.6.
3/Indexer/Configurationbundleissues
© 2017 SPLUNK INC.
Thank You
Don't forget to rate this session in the
.conf2017 mobile app