mirror of
https://github.com/Alfresco/SearchServices.git
synced 2025-09-17 14:21:20 +00:00
SEARCH-2011 Update README about slave replica config setup
This commit is contained in:
@@ -41,3 +41,9 @@ More details are available at [search-services](/search-services) folder.
|
|||||||
**Following resources will not be available for Community users**
|
**Following resources will not be available for Community users**
|
||||||
|
|
||||||
More details are available at [insight-engine](/insight-engine) folder.
|
More details are available at [insight-engine](/insight-engine) folder.
|
||||||
|
|
||||||
|
### Enable Search Slave Replica config
|
||||||
|
|
||||||
|
To enable slave node specify environment value `REPLICATION_TYPE=slave`, by default Master config is enabled and slave is disabled.
|
||||||
|
|
||||||
|
During deployment time whenever Search Services or Insight Engine image starts, it will execute the script [search_config_setup.sh](/insight-engine/packaging/src/docker) which will configure the slave config setup based on the value specified in the script.
|
||||||
|
@@ -1,5 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
set -e
|
set -e
|
||||||
|
# By default its going to deploy "Master" setup configuration with "REPLICATION_TYPE=master".
|
||||||
|
# Slave replica service can be enabled using "REPLICATION_TYPE=slave" environment value.
|
||||||
|
|
||||||
SOLR_CONFIG_FILE=$PWD/solrhome/templates/rerank/conf/solrconfig.xml
|
SOLR_CONFIG_FILE=$PWD/solrhome/templates/rerank/conf/solrconfig.xml
|
||||||
if [[ $REPLICATION_TYPE == "master" ]]; then
|
if [[ $REPLICATION_TYPE == "master" ]]; then
|
||||||
@@ -17,7 +19,7 @@ if [[ $REPLICATION_TYPE == "master" ]]; then
|
|||||||
replaceStringMaster+="\t\t<str name=\"confFiles\">$REPLICATION_CONFIG_FILES<\/str> \n"
|
replaceStringMaster+="\t\t<str name=\"confFiles\">$REPLICATION_CONFIG_FILES<\/str> \n"
|
||||||
fi
|
fi
|
||||||
replaceStringMaster+="\t<\/lst>"
|
replaceStringMaster+="\t<\/lst>"
|
||||||
sed -i -e "s/$findStringMaster/$findStringMaster$replaceStringMaster/g" $SOLR_CONFIG_FILE
|
sed -i "s/$findStringMaster/$findStringMaster$replaceStringMaster/g" $SOLR_CONFIG_FILE
|
||||||
fi
|
fi
|
||||||
if [[ $REPLICATION_TYPE == "slave" ]]; then
|
if [[ $REPLICATION_TYPE == "slave" ]]; then
|
||||||
if [[ $REPLICATION_MASTER_PROTOCOL == "" ]]; then
|
if [[ $REPLICATION_MASTER_PROTOCOL == "" ]]; then
|
||||||
|
Reference in New Issue
Block a user