How do I set up a 3-server SearchBlox Cluster (1 index server + 2 search servers)?

To create a 3-server SearchBlox Cluster (1 indexing server and 2 search servers), follow these step-by-step instructions:
 
1.) Install 3 instances of SearchBlox 8.x on different physical or virtual servers.
 
2.) Ensure the 3 servers are able to see each other on the network.
 
3.) After start up of all SearchBlox servers,delete the default HTTP collection that is preconfigured on the SearchBlox servers. 
 
4.) Apply the SearchBlox license keys to all servers. Request trial license keys if you are testing the cluster setup.
 
5.) Edit the Elasticsearch.yml file under /opt/searchblox/webapps/searchblox/WEB-INF/ or C:\SearchBloxServer\webapps\searchblox\WEB-INF\ found on the Indexing server to add/update the following lines:
 
Set index.number_of_replicas to 3
Set node.master: true
Set node.data: true
 
Add the following lines at the end of file:
 
index.refresh_interval: 3s
indices.memory.index_buffer_size: 30%
index.translog.flush_threshold: 50000
 
Save the elasticsearch.yml file for the indexing server.
 
6.) Edit the elasticsearch.yml file under /opt/searchblox/webapps/searchblox/WEB-INF/ or C:\SearchBloxServer\webapps\searchblox\WEB-INF\ found on the Search servers to add/update the following lines:
 
Set index.number_of_replicas to 3
Set node.master: true
Set node.data: true
 
Add the following lines at the end of file:
 
index.refresh_interval: 3s
indices.memory.index_buffer_size: 30%
index.translog.flush_threshold: 50000
 
Save the elasticsearch.yml file for the search server.
 
7.) Edit the start.ini file under /opt/searchblox or C:\SearchBloxServer\ on the indexing and search servers to update the memory allocation:
 
Replace -Xmx2048m within the start.ini file the following lines
 
-Xms6g
-Xmx6g
-XX:PermSize=256M
-XX:MaxPermSize=512M
 
Save the start.ini file on all servers.
 
8.) Restart all servers.
 
9.) Wait 5-7 minutes before going to the SearchBlox admin console. 
 
10.) Run the following command on all servers to check the cluster status:
 
11.) If the cluster health shows a yellow or green status, then the setup has been successful.
 
12.) Create the same collection on both the index server and the search servers. Kick off the indexing process on the indexing server, and see if the search results show up on the search servers for the same collection. 
 
Note: Please allow traffic on ports 9200 and 9300 between these 3 servers only, and not external access due to security. Open port 8080 to the SearchBlox search service.

 

Have more questions? Submit a request

Comments