Upgrading ELK stack from 5.5.1 to 6.6.1

In IBM Cloud Private 3.2.1 release, the ELK stack is upgraded from version 5.5.1 to 6.6.1. The upgrade process is transparent to users.

Automatic upgrade and rollback process

Since Elasticsearch data format is not compatible between major versions, an automatic data migration process runs during upgrade. This process applies to IBM Cloud Private logging instances in both managed and standard modes. By default, on each Elasticsearch data pod, the upgrade process includes the following actions.

For each data pod, a success flag file is touched under <data-pod-pv>/MIGRATIONCOMPLETE when Elasticsearch data migration completes. This flag makes sure that data is migrated only one time.

You might want to roll back to IBM Cloud Private logging that is included in IBM Cloud Private 3.2.0 and lower. In this situation, the old logging data that is on the logging data PVs is used if the old data is left undeleted.

In addition to Elasticsearch data migration, the Kibana index data schema changed. A migration job is started as part of the upgrade process and is transparent to the user.

Disk space requirements

The disk space requirements that are needed for upgrade include a minimum of 10 GB of disk space after data copying. For example, before you upgrade, your existing disk space might be 100 GB. A total of 210 GB of disk space is needed on the PV of each Elasticsearch data pod.

100 GB (existing data) + 100 GB (6.x data copy) + 10GB (required spare space) = 210 GB (total required disk space)

Notes:

Customizing upgrade behaviors

You can change the following chart parameters to customize your IBM Cloud Private logging upgrade behavior.

 upgrade:
   elasticsearch:
     # set to true if data from old version needs to be imported
     importData: true
     # if set to true, a copy of existing data in old format will be left intact
     # under pv-mount/nodes (/usr/share/elasticsearch/data/nodes)
     # this allows data (up to point of upgrade) to be restored when rolling back
     retainOldData: true

The following options can reduce your disk requirements. Set these values to change the default upgrade behavior.