§ 010 · MySQL

How to Add a New MySQL Server Node to an InnoDB Cluster

Introduction

It is possible to expand the capacity and the availability of an InnoDB Cluster by adding more MySQL servers. For example, a 5-node InnoDB cluster can tolerate up to 2 node failures, while a 3-node InnoDB cluster can tolerate only a single failure.

Objective

This guide will navigate you through the process of integrating a new MySQL server into an existing InnoDB Cluster, leveraging the MySQL Shell to execute the requisite commands. Initially, the cluster encompasses the following servers:

  • vinnie-mysql-8-01
  • vinnie-mysql-8-02

The node to be introduced is:

  • vinnie-mysql-8-03

Preconditions

Before the server integration, it’s important to establish the following prerequisites:

  • Existing Cluster: The InnoDB Cluster is operational, with all nodes functioning optimally.
  • Network Configurations: The new MySQL server is configured for seamless network integration with the existing cluster nodes.
  • MySQL Versions: The new server operates on the identical MySQL version as the other cluster nodes.
  • Data Backup: Data backups are conducted regularly and verified for integrity.

Adding a New Node to the InnoDB Cluster

Preparation

  • MySQL Installation: Verify MySQL’s installation and proper configuration on the new server, ensuring version consistency with the cluster’s existing nodes.
  • Network Configuration: Confirm the new server’s network compatibility and communication capabilities with the existing cluster nodes.

Adding the node

  • Connecting to the Cluster: Establish a connection to the MySQL Shell on one of the existing cluster nodes:
  • Adding the New Server: Seamlessly integrate the new server into the cluster:

    And you should see a similar output:

Conclusion

Incorporating a new server into an InnoDB Cluster is a process that has been greatly facilitated by MySQL shell. The process is relatively straightforward and MySQL will handle the initial sync by itself.

Please do not hesitate to reach out if you require additional insights, modifications, or further information.

Useful Links

For further guidance, refer to the MySQL documentation on adding instances to a cluster: MySQL Documentation on Adding Instances to a Cluster.

Written by

Vinicius Grippa

Writes this blog. Mostly about databases. Boring on purpose.

More about me →

The floor is yours.

0 comments · Moderated · civil & on-topic

First comment appears here once approved. Questions, corrections, and counterpoints welcome — just no self-promotion.

Add a comment

Your email address is never published. * required

Subscribe · Posted when ready

A quiet, technical email about databases.

One post per send, corrections when I’m wrong, nothing else. No social-media cross-posts. No “what we learned.”

Unsubscribe with any reply