Deployment Architecture

Load balancer based HA for cluster master

keerthana_k
Communicator

Hi,

We are currently running our splunk deployment with a multi-site indexer cluster with search head clustering . The cluster master is present in one site and we would like to configure a stand-by cluster master on the other site for fail-over. We want to implement automated fail-over using a load balancer like HAProxy. Has anyone implemented this? How would you configure your peer indexers and search heads in this case?

Thanks in advance,
Keerthana

0 Karma
1 Solution

keerthana_k
Communicator

We finally ended up installing a HAProxy load balancer on each of the indexer and search head nodes. All requests to the cluster master was configured to go through the load balancer. We used keepalived libraries in the cluster masters to determine which is the primary and which is standby. Based on this, splunk service will be automatically started or stopped in the cluster masters.

View solution in original post

0 Karma

keerthana_k
Communicator

We finally ended up installing a HAProxy load balancer on each of the indexer and search head nodes. All requests to the cluster master was configured to go through the load balancer. We used keepalived libraries in the cluster masters to determine which is the primary and which is standby. Based on this, splunk service will be automatically started or stopped in the cluster masters.

0 Karma

adonio
Ultra Champion

hello there,
from docs:

Although there is currently no master failover capability, you can prepare the indexer cluster for master failure by configuring a stand-by master that you can immediately bring up if the primary master goes down. You can use the same method to replace the master intentionally.

read here:
http://docs.splunk.com/Documentation/Splunk/6.6.1/Indexer/Configurethemaster#Configure_a_stand-by_ma...
will take you right way to here:
http://docs.splunk.com/Documentation/Splunk/6.6.1/Indexer/Handlemasternodefailure
hope it helps

0 Karma

keerthana_k
Communicator

Hi Adonio,

We have set up a stand-by master and we are bringing it up manually now. But in the docs, it is also mentioned that we can do a DNS based or load balancer based failover, so I wanted to know if anyone has actually implemented it.

0 Karma
Get Updates on the Splunk Community!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...