Upgrade from Log Storage for Elasticsearch
Upgrade an existing ACP deployment from the legacy Elasticsearch log storage plugin to ClickHouse or OpenSearch.
Do not uninstall the legacy plugin, stop the legacy data path, or delete or unprotect its PVCs and PVs before this procedure requires it. Do not stop or scale the legacy Elasticsearch, Kafka, ZooKeeper, lanaya, or Razor workloads.
TOC
Before you startInstall the new data pathDecide on historical dataUninstall the legacy Elasticsearch pluginRetain the source volumesBefore you start
This flow upgrades a cluster running Alauda Container Platform Log Storage for Elasticsearch to the ACP 4.4 ClickHouse or OpenSearch data path. Supported source Logging plugin versions are 4.2.x and 4.3.x; earlier versions are not supported yet.
Run these checks on the workload cluster before installing the new data path:
AppRelease/logcenter is the trigger for the legacy upgrade flow. If it is missing, stop: the annotation alone does not start this flow.
Install the new data path
Install the new data path by creating the connection Secrets and the PlatformLogForward for ClickHouse or OpenSearch.
The only upgrade-specific change is this annotation on PlatformLogForward:
Keep installMode: Fresh; Adopt is not part of this flow.
Wait until PlatformLogForward/platform-default is Ready and the LegacyESUpgrade condition has reason LegacyESUpgradeCompleted:
For details or troubleshooting:
Wait until the queued data in the legacy Kafka is consumed; the platform records LegacyKafkaDrained when the old consumer lag reaches zero. Before continuing, confirm that new log, event, and audit records are queryable from the new storage.
Check the drain status (True/LagZero means drained):
Decide on historical data
Uninstalling the legacy plugin is the point of no return for the pre-cutover history. The new data path already carries everything written after cutover, but the older data still lives only on the legacy Elasticsearch volumes.
- If you need that history in the new storage, set it up now: follow Historical Data Migration to create the migration resource and wait until it reports
PrecaptureReady, which captures the source. Then return here to uninstall. - If you do not need it, continue.
Uninstall the legacy Elasticsearch plugin
Before this step, verify all of the following:
PlatformLogForward/platform-defaultisReadyand theLegacyESUpgradecondition has reasonLegacyESUpgradeCompleted.- The legacy Elasticsearch PVC/PV protection is complete and has not been modified.
- The
PlatformLogForwardconditionLegacyKafkaDrainedis present.
PVC/PV protection must pass. Any failure must stop the procedure; contact Alauda support. Do not modify or delete logagent or its dependencies.
Run the following two deletes in order without interruption; do not wait for ModuleInfo to disappear, check AppRelease, or perform any other check between them.
On the global cluster
Set CLUSTER to the workload cluster name as registered in the global cluster, then run:
On the workload cluster
Switch the kubectl context immediately. Do not run any wait or verification first.
Wait for the legacy data path to be removed
Switch back to the global cluster:
Switch to the workload cluster and wait for the legacy AppRelease to be removed:
Wait 60 seconds, then verify that the resources stayed gone.
On the global cluster
On the workload cluster
Also confirm that the following stable entry-point resources still exist:
Resource reappearance handling:
- For
ClusterPluginInstance/logcenter, delete it first, then delete any newModuleInfo, and repeat the 60-second check. - Do not restore the cleared discovery fields manually.
AppRelease/logcenterremoval must complete. Do not remove finalizers; contact Alauda support.- A global-cluster sequence failure before
ModuleInfodeletion must be fixed and the global sequence rerun. Do not run the workload-cluster sequence for that attempt.
Retain the source volumes
Keep the protected legacy Elasticsearch PVCs and PVs until new-storage verification is complete and cleanup is approved. Do not remove their protection, and do not delete the PVCs or PVs.
Only the Elasticsearch PVCs and PVs are retained by this upgrade. Legacy Kafka and ZooKeeper volumes are not retained.
If you set up historical data migration, the worker starts copying now that the plugin is gone. Return to Historical Data Migration to watch it reach Succeeded and verify the data before these volumes are released.