Indexer cluster deployment
Indexer cluster deployment overview
Index replication offers benefits such as data availability, data fidelity, data recovery, disaster recovery, and search affinity. It ensures that an indexer is always available to handle data, and the indexed data is searchable. It also guarantees data consistency and fault tolerance.
An indexer cluster consists of:
A single
manager nodeto manage the cluster.Several to many
peer nodesto index data and maintain multiple copies, providing redundancy and data availability.One or more
search headsto coordinate searches across the set of peer nodes and provide a unified search experience
Here is a diagram of a basic, single-site indexer cluster, containing three peer nodes and supporting a replication factor of 3:
Deploy a cluster
Configure the manager node with the CLI
Configure a peer node with the CLI
Verifying the cluster configuration using the CLI
Configure the search head with the CLI
All cluster configuration data is stored in server.conf
Configure indexes on manager node
Note: Each indexer handles retention independently
nano /opt/splunk/etc/master-apps/_cluster/local/indexes.conf
Enabling Phased Bundle Downloads
▶ This is recommended if a cluster master is pushing large bundles or even a smaller bundle but to a large cluster (20 or more indexers).
▶ To enable, set the following configuration within server.conf
Restarting Indexer Cluster Components:
Restart the master node using
/opt/splunk/bin/splunk restartRestart the search head using
/opt/splunk/bin/splunk restartPerform a rolling restart of peer nodes:
Indexer Discovery
Capability of indexer clusters that enables forwarders to connect dynamically to the full set of available peer nodes.
How?
Peer nodes provide their receiving ports to the master.
Forwarders poll the master for the list of available peer nodes.
Master transmits the peer nodes list to the forwarders.
The forwarders send data to the peer nodes using load balancing.
Indexer Discovery Configuration Master Node (Edit server.conf)
Forwarders (Edit outputs.conf)
Indexer Cluster Upgrade
Indexer Cluster Upgrade Considerations:
Peer nodes must have the same OS family.
Peer nodes must run exactly the same Splunk version.
Master node must run the highest Splunk version.
Search head must run higher Splunk version than the peer nodes.
Indexer Cluster Upgrade High-level Overview:
Upgrade the master node.
Upgrade the search heads.
Enable maintenance mode.
Upgrade the peer nodes.
Disable maintenance mode.
Maintenance mode enabled/disabled on master node.
Remove Excess Buckets
Using the master dashboard (GUI)
Using the CLI:
List of commands and parameters related to clustering
Configuration Bundle Deployment
Deployed from master node using Splunk Web or CLI
Initiates rolling restart of all peer nodes if needed
Make data rebalance search-safe
Master Node (Edit server.conf)
Best practice: Forward manager node data to the indexer layer
Ensure necessary indexes exist on the indexers:
Check if indexes like _audit and _internal are present on both the manager node and the indexers.
If custom indexes exist only on the manager node, make sure to create the same indexes on the indexers to hold the corresponding manager data.
Configure the manager node as a forwarder:
Create an outputs.conf file on the manager node.
Configure load-balanced forwarding across the set of peer nodes.
Turn off indexing on the manager node to prevent it from retaining data locally and forwarding it to the peers.
Note: Ensure that the manager node is also set up as a search head in the indexer cluster. This allows it to perform searches and access the data it forwards to the peers.
Here is an example outputs.conf file:
This example assumes that each peer node's receiving port is set to 9997.
Configure the peers for index replication:
Ensure that all necessary indexes are available on the peers.
If you need to install apps or change configurations, apply the changes to all peers in a consistent manner, ensuring that they use a common set of indexes.
If you need to add indexes (including indexes defined by an app), configure the peers to use the same set of indexes.
Note: After configuring the peers, you can start replicating data between the manager node and the peers.
Forwarder Outputs Example
Resources
Last updated