To configure the secondary server to be an additional web server and Solr Cloud node, follow these steps.
...
Prerequisites
- Planning your Locator Search SolrCloud setup
- Installing/configuring a Primary Server in a multi-server environment
- Installing/Configuring a Secondary Search Server
Configuration
This is a guide to set up SolrCloud on multiple search servers. It's assumed that you have completed configuring the primary server and all secondary search servers, see Prerequisites. You need to have decided on the number of shards for your SolrCloud. This guide will create 6 shards without replication
Note: This guide requires the current index to be deleted, requiring a re-index of all data.
- Start by opening Command Prompts in administrator mode on both machines and stop the index service on all machines.
- Primary: Add new inbound firewall rule. Execute following line in command prompt:
netsh advfirewall firewall add rule name="ViaWorks Zookeeper" protocol=TCP localport=9983 action=allow dir=IN profile=domain
- Primary: Remove all data EXCEPT "configsets" from ProgramData\VirtualWorks\ViaWorks\Solr
- Primary: Remove all data from ProgramData\VirtualWorks\ViaWorks\ZooKeeper
- Secondary: In Program Files\VirtualWorks\ViaWorks\SOLR\bin\Solr.in.cmd replace line "
REM set ZK_HOST=
" with "set ZK_HOST=
On Locator upgrades this will be loaded from the Secondary's DataAccess.config<<PrimaryIP>>
:9983". - Secondary: Add new inbound firewall rule. Execute following line in command prompt:
netsh advfirewall firewall add rule name="ViaWorks index admin dashboard" protocol=TCP localport=8983 remoteip=<<PrimaryIP>> action=allow dir=IN profile=domain
- Secondary: Remove all data from ProgramData\VirtualWorks\ViaWorks\Solr. The config sets will now be loaded from ZooKeeper/Primary
- Secondary: Remove all data from ProgramData\VirtualWorks\ViaWorks\ZooKeeper
- Primary: Start the index service and upload the config with the command: (In Program Files\VirtualWorks\ViaWorks\SOLR\bin)
solr zk upconfig -z localhost:9983 -n ViaWorksCloud -d C:\ProgramData\VirtualWorks\ViaWorks\Solr\configsets\ViaWorksCloud\conf
- Secondary: Start index service
- PrimaryGo to http://localhost:8983/solr/#/~collections/ViaWorksCloud
- Delete the ViaWorksCloud collection, by clicking Delete and confirming the deletion.
On the primary server: Run the command (this will create 6 shards divided on the
twoservers WITHOUT replication) (In Program Files\
VirtualWorksayfie\
ViaWorksLocator\SOLR\bin)
VirtualWorksCode Block language xml solr create -c ViaWorksCloud -d "C:\ProgramData\
ViaWorksayfie\
Locator\Solr\configsets\ViaWorksCloud" -shards 6 -replicationFactor 1 -p 8983
- PrimaryOn the primary server: Verify that logs are OK (http://localhost:8983/solr/#/~logging) and the SOLR dashboard now shows 6 shards divided between the servers (http://localhost:8983/solr/#/~cloud)
Primary - On the primary server: Reindex all data using the Via.repository tool and and monitor the reindexing.