Documentation

influxd-ctl leave

The influxd-ctl leave command removes a meta or data node from an InfluxDB Enterprise cluster. The command searches for influxd and influxd-meta processes running on the local machine bound to specific ports and determines if that process is an InfluxDB meta or data node.

  • 8088: Data node
  • 8091: Meta node

If the InfluxDB data or meta processes are running on non-default ports, the leave operation cannot detect them.

This command is destructive

influxd-ctl leave erases all metastore information from meta nodes and all data from data nodes. Only use this command if you want to permanently remove a node from your InfluxDB Enterprise cluster.

Usage

influxd-ctl leave [flags]
  • Copy
  • Fill window

Flags

FlagDescription
-yAssume yes to all prompts

Examples

Remove nodes from a cluster

In the following example, influxd-ctl leave detects the meta node running at cluster-node-03:8091 and the data node running at cluster-node-03:8088 in an existing InfluxDB Enterprise cluster and prompts the user to remove them.

influxd-ctl leave
  • Copy
  • Fill window
Command output and interactive prompts
Searching for data node on cluster-node-03:8088...
Remove data node cluster-node-03:8088 from the cluster [y/N]: y
Removed cluster-node-03:8088 from the cluster
Searching for meta node on cluster-node-03:8091...
Remove meta node cluster-node-03:8091 from the cluster [y/N]: y

Successfully left cluster

  * Removed data node cluster-node-03:8088 from cluster
  * Removed meta node cluster-node-03:8091 from cluster
  • Copy
  • Fill window

Remove nodes from a cluster and assume yes to all prompts

In the following example, influxd-ctl leave detects the meta node running at cluster-node-03:8091 and the data node running at cluster-node-03:8088 in an existing InfluxDB Enterprise cluster and then, without prompting for input, removes them from the cluster:

influxd-ctl leave -y
  • Copy
  • Fill window
Command output
Searching for data node on cluster-node-03:8088...
Removed cluster-node-03:8088 from the cluster
Searching for meta node on cluster-node-03:8091...

Successfully left cluster

  * Removed data node cluster-node-03:8088 from cluster
  * Removed meta node cluster-node-03:8091 from cluster
  • Copy
  • Fill window

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 3 Core and Enterprise are now in Beta

InfluxDB 3 Core and Enterprise are now available for beta testing, available under MIT or Apache 2 license.

InfluxDB 3 Core is a high-speed, recent-data engine that collects and processes data in real-time, while persisting it to local disk or object storage. InfluxDB 3 Enterprise is a commercial product that builds on Core’s foundation, adding high availability, read replicas, enhanced security, and data compaction for faster queries. A free tier of InfluxDB 3 Enterprise will also be available for at-home, non-commercial use for hobbyists to get the full historical time series database set of capabilities.

For more information, check out: