| Configuring an On-Premise Search Service for High-Availability / HA Search Setup Overview | |
To configure a redundant HA search environment, you will need a proxy server to load balance requests to each search server and ingress replicator.
Below is an example of two search nodes, two ingress nodes, and one proxy that load balances each pair. We also recommend setting up one reporting endpoint for the load balancer itself.
The proxy should be running on its own server. This example uses CentOS and haproxy. You may use other proxy services depending on your requirements.
frontend main
bind haproxy.yourdomain.com:20000,haproxy.yourdomain.com:19000
acl ingress-r dst_port 19000
use_backend ingress-replicator if ingress-r
default_backend search
backend search
balance roundrobin
option httpchk GET /ping
server search01 search01.yourdomain.com:30000 check
server search02 search02.yourdomain.com:30000 check
backend ingress-replicator
balance roundrobin
option httpchk GET /ping
server ir01 ir01.yourdomain.com:29000 check
server ir02 ir02.yourdomain.com:29000 check
listen status haproxy.yourdomain.com:8085
stats enable
stats uri /