Automating WebSphere Commerce Search replication configuration (with or without the repeater)
You can automate updating your replication configuration for your search index data on both your master and subordinate servers to help improve reliability, fault-tolerance, and performance. Replicating WebSphere Commerce Search maintains your search index data in more than one location, and involves copying designated changes for one location to another and synchronizing the data in both locations.
The repeater is used in the following scenarios:
- The repeater is required for replication when you make emergency fixes or when indexing inventory from the production database.
- The repeater is not required (but is recommended) for replication when managed content is indexed from the Quality Assurance or Staging database.
Important: The repeater must reside in Production, as it relies on the production
database to perform emergency updates.
Before you begin
Ensure that you update the replication configuration XML
file, or created a new one, to match your WebSphere Commerce Search server information. The default
template file is at:
-
solrhome/replication-config.xml.
The replication-config.xml file includes the following usage:
- The search index server configuration is defined in the file, and then passed into the configSearchReplication utility for automatic configuration.
- The same replication configuration XML file can be used on master, subordinate, and repeater search servers.
- The information in the file includes the server name, port number, and core names. Define all search server-related information in the file according to the default template.
- The default file contains repeater configuration information. The repeater configuration includes information for the master and subordinate servers. If you do not use the repeater, remove the sample repeater configuration information that is contained in the file.
It contains sample configurations for the following
sections by default:
- Master configuration
- Contains configuration information for the master server.
- Subordinate configuration
- Contains configuration information for the subordinate servers.
- Repeater configuration
- Contains configuration information for the master and subordinate servers.
Procedure
-
Complete one of the following tasks:
- Log on as a WebSphere Commerce non-root user.
- Log on with a user profile that has *SECOFR authority.
- Log on with a user ID that is a member of the Windows Administration group.
-
Go to the following directory:
- WC_installdir/components/foundation/subcomponents/search/bin
- WCDE_installdir\components\foundation\subcomponents\search\bin
-
Run the configSearchReplication utility:
-
configSearchReplication.bat -instance instance_name -searchServerName searchServerName -solrhome solrhome [-replicationConfig xml_file_path] [-wasHome wasHome]
-
configSearchReplication.sh -instance instance_name -searchServerName searchServerName -solrhome solrhome [-replicationConfig xml_file_path] [-wasHome wasHome]
configSearchReplication.bat -searchServerName searchServerName [-replicationConfig xml_file_path]
- searchServerName
- The search server host name that will be used as a selector for the <server><name> element in the replication-config.xml file.
- replicationConfig
- The XML file that contains the search server information.
- solrhome
- The location of the Solr home directory path that contains the index data of Solr. The value must be an absolute path.
- wasHome
- Optional: The installation path for WebSphere Application Server.
-
-
Ensure that the utility runs successfully.
To get more logging information, update the logging level from
INFO
toFINEST
in the WC_eardir\components\foundation\subcomponents\search\config\configure-solr-replication-logging.properties file:com.ibm.commerce.level=FINEST