MySQL Forums
Forum List  »  NDB clusters

Failed to allocate nodeid for mysqld
Posted by: Deepak Goel
Date: June 21, 2021 12:44PM

Hello

I created a NDB cluster of 4 data nodes, 1 management node, 3 server nodes. When I try to start my cluster, I get the following error:

----------------------------------------------------
2021-06-21 18:36:01 [MgmtSrvr] WARNING -- Failed to allocate nodeid for API at 172.31.63.143. Returned error: 'No free node id found for mysqld(API).' - Repeated 2 times
2021-06-21 18:36:01 [MgmtSrvr] WARNING -- Failed to allocate nodeid for API at 172.31.49.54. Returned error: 'No free node id found for mysqld(API).'
2021-06-21 18:36:01 [MgmtSrvr] WARNING -- Failed to allocate nodeid for API at 172.31.49.54. Returned error: 'No free node id found for mysqld(API).'
2021-06-21 18:36:01 [MgmtSrvr] WARNING -- Failed to allocate nodeid for API at 172.31.55.144. Returned error: 'No free node id found for mysqld(API).'
----------------------------------------------------

How can I resolve this?

Thanks!
Deepak


My Config file:

------------------------
[ndbd default]
# Options affecting ndbd processes on all data nodes:
NoOfReplicas=2 # Number of replicas
DataMemory=3500M # How much memory to allocate for data storage
IndexMemory=1000M # How much memory to allocate for index storage
MaxNoOfConcurrentOperations=1048576
MaxNoOfConcurrentTransactions= 1048576
MaxNoOfLocalOperations=1048576
MaxNoOfConcurrentIndexOperations=16384
MaxNoOfConcurrentScans=500

[ndb_mgmd]
# Management process options:
hostname=172.31.63.143 # Hostname of the manager
datadir=/var/lib/mysql-cluster # Directory for the log files

[ndbd]
hostname=172.31.50.227 # Hostname/IP of the first data node
NodeId=2 # Node ID for this data node
datadir=/usr/local/mysql/data # Remote directory for the data files

[ndbd]
hostname=172.31.48.145 # Hostname/IP of the second data node
NodeId=3 # Node ID for this data node
datadir=/usr/local/mysql/data # Remote directory for the data files

[ndbd]
hostname=172.31.52.45 # Hostname/IP of the second data node
NodeId=4 # Node ID for this data node
datadir=/usr/local/mysql/data # Remote directory for the data files

[ndbd]
hostname=172.31.49.125 # Hostname/IP of the second data node
NodeId=5 # Node ID for this data node
datadir=/usr/local/mysql/data # Remote directory for the data files

[mysqld]
# SQL node options:
hostname=172.31.63.143 # In our case the MySQL server/client is on the same Droplet as the cluster manager

[mysqld]
# SQL node options:
hostname=172.31.55.144 # In our case the MySQL server/client is not on the same Droplet as the cluster manager

[mysqld]
# SQL node options:
hostname=172.31.49.54 # In our case the MySQL server/client is not on the same Droplet as the cluster manager


------------------------

Options: ReplyQuote


Subject
Views
Written By
Posted
Failed to allocate nodeid for mysqld
1962
June 21, 2021 12:44PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.