Upgrading a Multi-Server Environment (2.8 or newer)
On the Primary Locator server:
If using Microsoft SQL Server, complete the installer normally, then proceed to the Secondary Server section.
If using PostgreSQL, follow these steps:
Perform a full PostgreSQL backup by executing a command similar to this:
"%ProgramFiles%\ayfie\Locator \PostgreSQL\bin\pg_dump.exe" -i -h localhost -p 5432 -U postgres -F c -f "F:\Backups\Locator.bak" Locator
(where "F:\Backups\Locator.bak" is the path to the backup file)Backup the custom configuration files (although they should not be overwritten by the upgrade):
copy “%ProgramData%\ayfie\Locator\Database\pg_hba.conf” F:\Backups
copy %ProgramData%\ayfie\Locator\Database\postgresql.conf F:\BackupsProceed to upgrade. During the upgrade, the Locator IndexBuilder service will be stopped, upgraded and re-started. If there many pending conversions the system may be CPU bound, slowing down the upgrade process. It’s safe to temporarily stop the Index Builder service until the system is completely upgraded.
- Verify that the custom configuration in “%ProgramData%\ayfie\Locator\Database\pg_hba.conf” and %ProgramData%\ayfie\Locator\Database\postgresql.conf are still there. These configurations were originally set in Installing/configuring a Primary Server in a multi-server environment
On the Secondary Locator server:
Note: If the secondary server is a SolrCloud node and part ot the ViaWorksCloud collection, make sure your schema_overrides.xml and solrconfig_overrides.xml in %ProgramData%\ayfie\Locator\Solr\configsets\ViaWorksCloud\conf are identical to these files on the primary node. Also make sure schema.xml and solrconfig.xml exists. There is a bug in Locator 2.11 SR2 where these files aren't created on install.
If using Microsoft SQL Server, complete the installer normally.
If using Postgres, follow these steps:
From an elevated command prompt, first make a backup copy and then edit the file %ProgramFiles%\ayfie\Locator\Config\DataAccess.config
Essentially we will revert the changes back to default settings:Change the value of the “ViaDatabaseServer” key to 127.0.0.1. Save the current value as you need it for a later step.
Remove this line before the </appSettings> line:
<add key="LicensingServiceServer" value="<IPv4_addr>" />
Start the Locator.Database.Service.
Proceed with the Locator upgrade.
- The upgrade will enable and start all of the services. Some of the services below might not exist, depending on which component was selected during install. Stop all Locator services again in this order if exist:
- All Fetch Services, in any order (e.g. ayfie/Locator FileServer Fetch Service, ayfie/Locator Exchange Fetch Service, etc.)
- Locator Index Service
- Locator IndexBuilder Service
- Locator Licensing Service
- Locator Database Service
From an elevated command prompt, first make a backup copy and then edit the file %ProgramFiles%\ayfie\Locator\Config\DataAccess.config
Change the value of the “ViaDatabaseServer” key back to reflect the IPv4 address of the Primary Locator server as opposed to the default value of 127.0.0.1.
Edit the ZookeeperHost value from "localhost:9983" to be the host name of the primary server, eg: "hostname:9983"
- Edit the LicensingServiceServer value from "localhost" to the host name of the primary server.
- Edit the Rest Service web.config: "[Drive]:\Program Files\ayfie\Locator\RestService\web.config": change <add key="LicenseHostName" value="localhost" /> to <add key="LicenseHostName value="FQDN_of_primary_server" />
- Disable the appropriate services by selecting the appropriate option for your setup below:
- If on a search server: Disable all ayfie/Locator services except Locator Index Service.
- If on a fetch server: Disable all ayfie/Locator services except ayfie/Locator Fetch Services.
- If on a search and fetch server: Disable all ayfie/Locator services except Locator Index Service and ayfie/Locator Fetch Services.
- Start all of the ayfie/Locator services that were not set as disabled in previous step.
ayfie