Prerequities
- Planning your Locator Search SolrCloud setup
- Installing/configuring a Primary Server in a multi-server environment
- Installing/Configuring a Secondary Search Server
Configuration
To configure the secondary server to be an additional web server and Solr Cloud node, follow these steps.
For version 2.8 and older:
Note: in order to add Solr Cloud shards to the secondary server, the current index needs 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="Locator Zookeeper" protocol=TCP localport=9983 action=allow dir=IN profile=domain
- Primary: Remove all data EXCEPT "configsets" from ProgramData\ayfie\Locator\Solr
- Primary: Remove all data from ProgramData\ayfie\Locator\ZooKeeper
- Secondary: In Program Files\afyie\Locator\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<<Primary_IPv4_Address>>
:9983". - Secondary: Add new inbound firewall rule. Execute following line in command prompt:
netsh advfirewall firewall add rule name="Locator index admin dashboard" protocol=TCP localport=8983 remoteip=<<Primary_IPv4_Address>> action=allow dir=IN profile=domain
- Secondary: Remove all data from ProgramData\ayfie\Locator\Solr. The config sets will now be loaded from ZooKeeper on the primary.
- Secondary: Remove folder ProgramData\ayfie\Locator\ZooKeeper
- Primary: Start the index service and upload the config with the command: (In Program Files\ayfie\Locator\SOLR\bin)
solr zk upconfig -z localhost:9983 -n ViaWorksCloud -d C:\ProgramData\ayfie\Locator\Solr\configsets\ViaWorksCloud\conf
- Secondary: Start index service
- Primary: Run the command (this will create 6 shards divided on the two servers WITHOUT replication) (In Program Files\ayfie\Locator\SOLR\bin)
solr create -c ViaWorksCloud -d "C:\ProgramData\ayfie\Locator\Solr\ViaWorksCloud" -shards 6 -replicationFactor 1 -p 8983
- Primary: Verify that logs are OK (http://localhost:8983/solr/#/~logging) and the SOLR dashboard now shows 6 shards (http://localhost:8983/solr/#/~cloud)
- Primary: Reindex all data using the Via.repository tool and monitor.
For Locator 2.9 and newer:
Note: in order to add Solr Cloud shards to the secondary server, the current index needs 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="Locator Zookeeper" protocol=TCP localport=9983 action=allow dir=IN profile=domain
- Primary: Remove all data EXCEPT "configsets" from ProgramData\ayfie\Locator\Solr
- Primary: Remove all data from ProgramData\ayfie\Locator\ZooKeeper
- Secondary: In Program Files\ayfie\Locator\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<<Primary_IPv4_Address>>
:9983". - Secondary: Add new inbound firewall rule. Execute following line in command prompt:
netsh advfirewall firewall add rule name="Locator index admin dashboard" protocol=TCP localport=8983 remoteip=<<Primary_IPv4_Address>> action=allow dir=IN profile=domain
- Secondary: Remove all data from ProgramData\ayfie\Locator\Solr. The config sets will now be loaded from ZooKeeper on the primary.
- Secondary: Remove folder ProgramData\ayfie\Locator\ZooKeeper
- Primary: Start the index service and upload the config with the command: (In Program Files\ayfie\Locator\SOLR\bin)
solr zk upconfig -z localhost:9983 -n ViaWorksCloud -d C:\ProgramData\ayfie\Locator\Solr\configsets\ViaWorksCloud\conf
- Secondary: Start index service
- Primary: Run the command (this will create 6 shards divided on the two servers WITHOUT replication) (In Program Files\ayfie\Locator\SOLR\bin)
solr create -c ViaWorksCloud -d "C:\ProgramData\ayfie\Locator\Solr\LocatorCloud" -shards 6 -replicationFactor 1 -p 8983
- Primary: Verify that logs are OK (http://localhost:8983/solr/#/~logging) and the SOLR dashboard now shows 6 shards (http://localhost:8983/solr/#/~cloud)
- Primary: Reindex all data using the Via.repository tool and monitor.