Documentation

Upgrade InfluxDB Enterprise clusters

To successfully perform a rolling upgrade of InfluxDB Enterprise clusters to 1.11.8, complete the following steps:

  1. Back up your cluster.
  2. Upgrade meta nodes.
  3. Upgrade data nodes.

Note: A rolling upgrade lets you update your cluster with zero downtime. To downgrade to an earlier version, complete the following procedures, replacing the version numbers with the version that you want to downgrade to.

Back up your cluster

Before performing an upgrade, create a full backup of your InfluxDB Enterprise cluster. Also, if you create incremental backups, trigger a final incremental backup.

Note: For information on performing a final incremental backup or a full backup, see Back up and restore InfluxDB Enterprise clusters.

Upgrade meta nodes

Complete the following steps to upgrade meta nodes:

  1. Download the meta node package.
  2. Install the meta node package.
  3. Update the meta node configuration file.
  4. Restart the influxdb-meta service.
  5. Repeat steps 1-4 for each meta node in your cluster.
  6. Confirm the meta nodes upgrade.

Download the meta node package

Ubuntu and Debian (64-bit)
wget https://dl.influxdata.com/enterprise/releases/influxdb-meta_1.11.8-c1.11.8-1_amd64.deb
RedHat and CentOS (64-bit)
wget https://dl.influxdata.com/enterprise/releases/influxdb-meta-1.11.8_c1.11.8-1.x86_64.rpm

Install the meta node package

Ubuntu and Debian (64-bit)
sudo dpkg -i influxdb-meta_1.11.8-c1.11.8-1_amd64.deb
RedHat and CentOS (64-bit)
sudo yum localinstall influxdb-meta-1.11.8-c1.11.8-1.x86_64.rpm

Update the meta node configuration file

Migrate any custom settings from your previous meta node configuration file.

To enable HTTPS, you must update the meta node configuration file (influxdb-meta.conf). For information, see Enable HTTPS within the configuration file for each Meta Node.

Restart the influxdb-meta service

sysvinit systems
service influxdb-meta restart
systemd systems
sudo systemctl restart influxdb-meta

Confirm the meta nodes upgrade

After upgrading all meta nodes, check your node version numbers using the influxd-ctl show command. The influxd-ctl utility is available on all meta nodes.

~# influxd-ctl show

Data Nodes
==========
ID	TCP Address		Version
4	rk-upgrading-01:8088	1.8.x_c1.8.y
5	rk-upgrading-02:8088	1.8.x_c1.8.y
6	rk-upgrading-03:8088	1.8.x_c1.8.y

Meta Nodes
==========
TCP Address		Version
rk-upgrading-01:8091	1.11.8-c1.11.8   # 1.11.8-c1.11.8 = 👍
rk-upgrading-02:8091	1.11.8-c1.11.8
rk-upgrading-03:8091	1.11.8-c1.11.8

Ensure that the meta cluster is healthy before upgrading the data nodes.

Upgrade data nodes

Complete the following steps to upgrade data nodes:

  1. Stop traffic to data nodes.
  2. Download the data node package.
  3. Install the data node package.
  4. Update the data node configuration file.
  5. For Time Series Index (TSI) only. Rebuild TSI indexes.
  6. Restart the influxdb service.
  7. Restart traffic to data nodes.
  8. Repeat steps 1-7 for each data node in your cluster.
  9. Confirm the data nodes upgrade.

Stop traffic to the data node

To stop traffic to data nodes, do one of the following:

  • Disable traffic to data nodes in the node balancer

    • If you have access to the load balancer configuration, use your load balancer to stop routing read and write requests to the data node server (port 8086).
    • If you cannot access the load balancer configuration, work with your networking team to prevent traffic to the data node server before continuing to upgrade.

    Disabling traffic to a data node in the load balancer still allows other data node in the cluster to write to current data node.

  • Stop the influxdb service on the data node

    service influxdb stop
    
    sudo systemctl stop influxdb
    

    Stopping the influxdb process the data node takes longer than disabling traffic at the load balancer, but it ensures all writes stop, including writes from other data nodes in the cluster.

Download the data node package

Ubuntu and Debian (64-bit)
wget https://dl.influxdata.com/enterprise/releases/influxdb-data_1.11.8-c1.11.8-1_amd64.deb
RedHat and CentOS (64-bit)
wget https://dl.influxdata.com/enterprise/releases/influxdb-data-1.11.8_c1.11.8-1.x86_64.rpm

Install the data node package

When you run the install command, you’re prompted to keep or overwrite your current configuration file with the file for version 1.11.8. Enter N or O to keep your current configuration file. You’ll make the configuration changes for version 1.11.8 in the next procedure, Update the data node configuration file.

Ubuntu & Debian (64-bit)
sudo dpkg -i influxdb-data_1.11.8-c1.11.8-1_amd64.deb
RedHat & CentOS (64-bit)
sudo yum localinstall influxdb-data-1.11.8-c1.11.8.x86_64.rpm

Update the data node configuration file

Migrate any custom settings from your previous data node configuration file.

Rebuild TSI indexes

Complete the following steps for Time Series Index (TSI) only.

  1. Delete all _series directories in the /data directory (by default, stored at /data/<dbName>/_series).

  2. Delete all TSM-based shard index directories (by default, located at /data/<dbName/<rpName>/<shardID>/index).

  3. Use the influx_inspect buildtsi utility to rebuild the TSI index. For example, run the following command:

    influx_inspect buildtsi -datadir /yourDataDirectory -waldir /wal
    

    Replacing yourDataDirectory with the name of your directory. Running this command converts TSM-based shards to TSI shards or rebuilds existing TSI shards.

    Note: Run the buildtsi command using the same system user that runs the influxd service, or a user with the same permissions.

Restart the influxdb service

Restart the influxdb service to restart the data nodes. Do one of the following:

  • If the influxdb service is still running, but isn’t receiving traffic from the load balancer:

    service influxdb restart
    
    sudo systemctl restart influxdb
    
  • If the influxdb service is stopped:

    service influxdb start
    
    sudo systemctl start influxdb
    

Restart traffic to data nodes

Restart routing read and write requests to the data node server (port 8086) through your load balancer.

Note: Allow the hinted handoff queue (HHQ) to write all missed data to the updated node before upgrading the next data node. Once all data has been written, the disk space used in the hinted handoff queue should be 0. Check the disk space on your hh directory by running the [du] command, for example, du /var/lib/influxdb/hh.

Confirm the data nodes upgrade

After upgrading all data nodes, check your node version numbers using the influxd-ctl show command. The influxd-ctl utility is available on all meta nodes.

~# influxd-ctl show

Data Nodes
==========
ID	TCP Address		Version
4	rk-upgrading-01:8088	1.11.8-c1.11.8   # 1.11.8-c1.11.8 = 👍
5	rk-upgrading-02:8088	1.11.8-c1.11.8
6	rk-upgrading-03:8088	1.11.8-c1.11.8

Meta Nodes
==========
TCP Address		Version
rk-upgrading-01:8091	1.11.8-c1.11.8
rk-upgrading-02:8091	1.11.8-c1.11.8
rk-upgrading-03:8091	1.11.8-c1.11.8

If you have any issues upgrading your cluster, contact InfluxData support.


Was this page helpful?

Thank you for your feedback!


The future of Flux

Flux is going into maintenance mode. You can continue using it as you currently are without any changes to your code.

Read more

InfluxDB v3 enhancements and InfluxDB Clustered is now generally available

New capabilities, including faster query performance and management tooling advance the InfluxDB v3 product line. InfluxDB Clustered is now generally available.

InfluxDB v3 performance and features

The InfluxDB v3 product line has seen significant enhancements in query performance and has made new management tooling available. These enhancements include an operational dashboard to monitor the health of your InfluxDB cluster, single sign-on (SSO) support in InfluxDB Cloud Dedicated, and new management APIs for tokens and databases.

Learn about the new v3 enhancements


InfluxDB Clustered general availability

InfluxDB Clustered is now generally available and gives you the power of InfluxDB v3 in your self-managed stack.

Talk to us about InfluxDB Clustered