<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic How do you make HAProxy load balance for Search Head Pooling? in Security</title>
    <link>https://community.splunk.com/t5/Security/How-do-you-make-HAProxy-load-balance-for-Search-Head-Pooling/m-p/26455#M875</link>
    <description>&lt;P&gt;I'd like to use HAProxy for Search Head Pooling with SSL.   &lt;/P&gt;</description>
    <pubDate>Tue, 06 Aug 2013 16:19:22 GMT</pubDate>
    <dc:creator>rayutsw</dc:creator>
    <dc:date>2013-08-06T16:19:22Z</dc:date>
    <item>
      <title>How do you make HAProxy load balance for Search Head Pooling?</title>
      <link>https://community.splunk.com/t5/Security/How-do-you-make-HAProxy-load-balance-for-Search-Head-Pooling/m-p/26455#M875</link>
      <description>&lt;P&gt;I'd like to use HAProxy for Search Head Pooling with SSL.   &lt;/P&gt;</description>
      <pubDate>Tue, 06 Aug 2013 16:19:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/How-do-you-make-HAProxy-load-balance-for-Search-Head-Pooling/m-p/26455#M875</guid>
      <dc:creator>rayutsw</dc:creator>
      <dc:date>2013-08-06T16:19:22Z</dc:date>
    </item>
    <item>
      <title>Re: How do you make HAProxy load balance for Search Head Pooling?</title>
      <link>https://community.splunk.com/t5/Security/How-do-you-make-HAProxy-load-balance-for-Search-Head-Pooling/m-p/26456#M876</link>
      <description>&lt;P&gt;This solution relies on HAProxy to terminate the SSL connection and the Search Heads to run in non-SSL Mode.  &lt;/P&gt;

&lt;P&gt;Download HAProxy from source (Currently only 1.5 supports SSL).&lt;/P&gt;

&lt;P&gt;Build with SSL:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;make TARGET=linux2628 USE_STATIC_PCRE=1 USE_OPENSSL=1
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;haproxy.cfg:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;global
  maxconn     4096
  nbproc      1
  debug
  daemon
  log         127.0.0.1    local0
defaults
  mode        http
  option      httplog
  log         global
  timeout connect 5000ms
  timeout client 50000ms
  timeout server 50000ms

frontend splunk_secured
  mode http
  bind :443 ssl crt /etc/haproxy/splunk.pem # Includes Cert/Root/Intermediate/PrivateKey
  bind :80
  reqadd X-Forwarded-Proto:\ https
  redirect scheme https if !{ ssl_fc }
  default_backend splunk_search_heads


backend splunk_search_heads
        mode http
        balance roundrobin # Load Balancing algorithm
        cookie SRV insert indirect nocache # Allows sticky sessions
        ## Define your servers to balance
        server splnksh1 192.168.0.1:8000 cookie splnksh1 weight 1 maxconn 512 check port 8000
        server splnksh2 192.168.0.2:8000 cookie splnksh2 weight 1 maxconn 512 check port 8000
        server splnksh3 192.168.0.3:8000 cookie splnksh3 weight 1 maxconn 512 check port 8000
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Restart HAProxy.  Connect to HAProxy via https and verify everything works.  &lt;/P&gt;</description>
      <pubDate>Tue, 06 Aug 2013 16:26:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/How-do-you-make-HAProxy-load-balance-for-Search-Head-Pooling/m-p/26456#M876</guid>
      <dc:creator>rayutsw</dc:creator>
      <dc:date>2013-08-06T16:26:28Z</dc:date>
    </item>
  </channel>
</rss>

