Federating and clustering the search server in the managed configuration
After you set up the WebSphere Commerce Search server in the managed configuration, you
can federate the node to the deployment manager (DMGR) and create a cluster that contains the
WebSphere Commerce and WebSphere Commerce Search servers.
About this task
The following list shows the high-level tasks that are associated with deploying the WebSphere
Commerce search server in the managed configuration:
- The WebSphere Commerce and WebSphere Commerce Search servers are set up in the managed configuration.
- The deployment manager (DMGR) is used to federate the WebSphere Commerce and WebSphere Commerce search servers.
- On the new search nodes, custom profiles for WebSphere Commerce Search are created and then federated using the DMGR.
- The WebSphere Commerce Search cluster is created with the new cluster members, where the nodes can be reached for clustering.
Procedure
Federating the search server:
- Install the WebSphere Application Server Network Deployment product by using the media that are supplied with WebSphere Commerce. This node now hosts the deployment manager. Although you can install other application servers on the same node as the deployment manager, it is not done unless you have a node with the capacity to host both products.
-
Create a non-root WebSphere Application Server Deployment Manager profile on the WebSphere
Application Server Network Deployment machine. For more information about creating a WebSphere
Application Server Deployment Manager profile, see:
Alternatively, you can use the command line to create the deployment manager profile. For more information, see Using the manageprofiles command.
-
On the WebSphere Application Server Network Deployment machine, start the deployment manager
profile.
Alternatively, you can use the command line to start the deployment manager profile. For more information, see startManager command.
- Create the WebSphere Application Server non-root user and group if they do not exist on the WebSphere Commerce Search node.
-
Federate the WebSphere Application Server profile:
-
Ensure that the node has been created successfully:
- Check the command line output to see the result. For example, it might display a result similar
to the following
message:
Node demo_search_node has been successfully federated.
- Or, in the deployment manager, go to solrServer exists. and ensure that
Note: After you federate a WebSphere Application Server profile, the node agent must be managed by the non-root user. For more information, see Changing the process execution properties. - Check the command line output to see the result. For example, it might display a result similar
to the following
message:
- If you enabled security before you federated your WebSphere Commerce Search application, you must enable security again.
-
If the DMGR is enabled with global security, you must update the following values in the
WC_installdir\instances\instance_name\search\commerce\properties\searchServer.properties
file:
- wasAdminUser=admin_user_id
- wasAdminUserPwd=encrypted_admin_password
-
Create the cell-level documents for the search configuration on your WebSphere Commerce Search
node. Doing so ensures that additional nodes can use the same configuration at the cell-level.
- Restart the Deployment Manager and the WebSphere Commerce Search server.
- If you enabled automatic propagation of the web server configuration file (plugin-cfg.xml) before federating, you must configure it again.
-
Regenerate the Web server plug-in for your Web server:
- Log on the WebSphere Application Server Network Deployment Administration Console server.
- Expand .
- Select webserver1 and click Generate Plug-in to generate the plugin-cfg.xml file for the web server.
- Select solrWebserver1 and click Generate Plug-in to generate the plugin-cfg.xml file for the search web server.
-
Copy the updated plugin-cfg.xml file to your web server.
- Communicating with web servers
- Communicating with web servers
- Update the path to the plugin-cfg.xml file in the web server configuration file on the web server.
-
If your web server is configured to use only IPv6, change the custom properties for both the
WebSphere Commerce and search server JVMs:
- Restart your web server.
Clustering the federated environment:
After you federate your WebSphere Commerce environment, you can configure clustering. Clustering provides failover protection and workload balancing.
If you plan on replicating WebSphere Commerce Search,
ensure that you consider the following replication recommendations:
- Setup one master search index server to hold the master index, which is then replicated to all the search servers that take search traffic. That is, there typically exists a dedicated index-building machine, which is known as the master, to build the index. There can only be one master; it cannot exist on multiple nodes in clustered environments. The master replicates the index to other search engine machines, which are known as targets. The runtime search performance is not affected during the index-building.
- Set up the master search index server and subordinate search index server (separately) on the same operating system. This set up ensures easier file copy operations between servers.
- Every deployment manager that has a copy of Solr federated to it, must also have a WebSphere Commerce environment federated to it. Otherwise, fixes and maintenance must be manually applied to each node.
- Cluster your WebSphere Commerce Search environment. Follow the steps in Clustering your WebSphere Commerce environment.