Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Start by opening Command Prompts in administrator mode on both machines and stop the index service on all machines.
  2. 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
  3. Primary: Remove all data EXCEPT "configsets" from ProgramData\VirtualWorks\ViaWorks\Solr
  4. Primary: Remove all data from ProgramData\VirtualWorks\ViaWorks\ZooKeeper
  5. Secondary: In Program Files\VirtualWorks\ViaWorks\SOLR\bin\Solr.in.cmd replace line "REM set ZK_HOST=" with "set ZK_HOST=<<Primary_IPv4_Address>>:9983". On Locator upgrades this will be loaded from the Secondary's DataAccess.config
  6. 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=<<Primary_IPv4_Address>> action=allow dir=IN profile=domain
  7. Secondary: Remove all data from ProgramData\VirtualWorks\ViaWorks\Solr. The config sets will now be loaded from ZooKeeper /Primaryon the primary.
  8. Secondary: Remove all data from Remove folder ProgramData\VirtualWorks\ViaWorks\ZooKeeper
  9. 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
  10. Secondary: Start index service
  11. Primary: Run the command (this will create 6 shards divided on the two servers WITHOUT replication) (In Program Files\VirtualWorks\ViaWorks\SOLR\bin)
    solr create -c ViaWorksCloud -d "C:\ProgramData\VirtualWorks\ViaWorks\Solr\ViaWorksCloud" -shards 6 -replicationFactor 1 -p 8983
  12. Primary: Verify that logs are OK and the SOLR dashboard now shows 6 shards (http://localhost:8983/solr/#/~cloud)
  13. Primary: Reindex all data using the Via.repository tool and monitor.