Upgrade to WEM 1.6 from 1.4 or 1.5 by upgrading the WEM package, and then upgrading the host agent on every cluster node. WEM 1.6 is released with host agent 1.2.0, which you install separately from WEM. You don't need to install or change ClickHouse.
If you're upgrading from 1.4, also review the 1.5 release notes for the changes that version made, such as renamed parameters and the new file locations. See the release notes for the full list of changes in each version.
Upgrading WEM
Run the following on the host where WEM is installed:
Configure the EDB repository:
export EDB_SUBSCRIPTION_TOKEN=<your-token> export EDB_REPO=gpsupp curl -1sSLf "https://downloads.enterprisedb.com/$EDB_SUBSCRIPTION_TOKEN/$EDB_REPO/setup.rpm.sh" | sudo -E bash
export EDB_SUBSCRIPTION_TOKEN=<your-token> export EDB_REPO=gpsupp curl -1sSLf "https://downloads.enterprisedb.com/$EDB_SUBSCRIPTION_TOKEN/$EDB_REPO/setup.deb.sh" | sudo -E bash
Upgrade the WEM package:
sudo dnf upgrade whpg-enterprise-managersudo apt-get update sudo apt-get install --only-upgrade whpg-enterprise-manager
Verify the installed version:
rpm -q whpg-enterprise-manager
dpkg -s whpg-enterprise-manager | grep Version
Check the upgrade output for
[WARN]lines. WEM 1.6 removes the compatibility links that WEM 1.5 kept, and prints one warning for each link it removes. It also lists every systemd unit override, cron file, andwem.confthat still uses an old path. WEM only reads these files, so you must update them yourself.If your scripts, cron jobs, monitoring, or log tools use an old path, switch to the new one:
Old path New path /usr/local/greenplum-db/wem/wemor/usr/edb/wem/wem/usr/edb/wem/bin/wem/var/log/wem/wem.log/var/log/edb/wem/wem.log/etc/wem/wem.conf/etc/edb/wem/wem.conf- The upgrade removes only links that WEM created. It doesn't change anything in your WarehousePG installation.
- If you're upgrading from 1.4, the upgrade updates any
/etc/wem/paths in your copiedwem.confto/etc/edb/wem/.
Confirm that WEM is running. If it isn't, start it:
sudo systemctl status wem sudo systemctl restart wem
Open the WEM console in your browser and sign in with your WEM credentials.
Review your runtime settings in Management > Settings > Runtime Settings. WEM 1.6 manages these settings in the console and no longer reads them from
wem.conf.- On upgrade, WEM imports the values it finds in
wem.confor the environment once. - If you saved a value for a setting in the 1.5 console, WEM keeps that value and ignores the one in
wem.conf, even when they differ. Check each value and correct any that are wrong. - From now on, change these settings in the console. Changing the following parameters in
wem.confor the environment has no effect:LONG_RUNNING_THRESHOLD,LOG_MIN_DURATION_STATEMENT,OTEL_COLLECTION_INTERVAL,WEM_CLUSTER_NAME,WEM_CLUSTER_ENVIRONMENT,ANTHROPIC_API_KEY,ANTHROPIC_MODEL,FLOWSERVER_ADDRESS, andFLOWSERVER_ACTIVITY_RETENTION_HOURS.
See Configuring WEM.
- On upgrade, WEM imports the values it finds in
Upgrading the host agents
Upgrade acp-host-agent and its edb-otelcol dependency on every host in the cluster. Run the following on the coordinator as gpadmin:
Configure the EDB repository and download the host agent package and its
edb-otelcoldependency:export EDB_SUBSCRIPTION_TOKEN=<your-token> export EDB_REPO=gpsupp curl -1sSLf "https://downloads.enterprisedb.com/$EDB_SUBSCRIPTION_TOKEN/$EDB_REPO/setup.rpm.sh" | sudo -E bash sudo dnf download edb-acp-host-agent edb-otelcol
Transfer both packages to every host in the cluster:
gpsync -f all_hosts edb-acp-host-agent-*.rpm edb-otelcol-*.rpm =:/tmp
gpscp -f all_hosts edb-acp-host-agent-*.rpm edb-otelcol-*.rpm =:/tmp
Install both packages on every host. Installing the local
.rpmfiles upgrades the existing installation:gpssh -f all_hosts -u gpadmin -e "sudo dnf install -y /tmp/edb-acp-host-agent-*.rpm /tmp/edb-otelcol-*.rpm"
Restart the service on every host so it runs the new version:
gpssh -f all_hosts -u gpadmin -e "sudo systemctl restart acp-host-agent"
Verify every host is running 1.2.0 or later:
gpssh -f all_hosts -u gpadmin -e "rpm -q edb-acp-host-agent edb-otelcol"
In WEM, go to Management > Host Agents and confirm that every agent is approved and active.
The upgrade moves WEM_CONNECT_ADDRESS, WEM_TASK_QUEUES, and WEM_DATABASE from /etc/edb/acp-host-agent/acp-host-agent.conf to a new wem.conf in the same directory, and keeps your values. If you edit these settings with scripts, update them to use wem.conf. See Host agent configuration.
Installing the live query plan extension
WEM 1.6 adds the live query plan, which needs the optional whpg_live_query_plan extension on your WHPG cluster. To use it, see Installing the live query plan extension.
Next steps
Your upgrade is complete. See Getting started with WEM.