Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am going to benchmark MySQL Cluster using flexAsynch follow this guide, details as below:

mkdir /usr/local/mysqlc732/
cd /usr/local/src/mysql-cluster-gpl-7.3.2
cmake . -DCMAKE_INSTALL_PREFIX=/usr/local/mysqlc732/ -DWITH_NDB_TEST=ON
make install

Everything works fine until this step:

# /usr/local/mysqlc732/bin/flexAsynch -t 1 -p 80 -l 2 -o 100 -c 100 -n

FLEXASYNCH - Starting normal mode
Perform benchmark of insert, update and delete transactions
  1 number of concurrent threads 
  80 number of parallel operation per thread 
  100 transaction(s) per round 
  2 iterations 
  Load Factor is 80%
  25 attributes per table 
  1 is the number of 32 bit words per attribute 
  Tables are with logging 
  Transactions are executed with hint provided
  No force send is used, adaptive algorithm used

Key Errors are disallowed
Temporary Resource Errors are allowed
Insufficient Space Errors are disallowed
Node Recovery Errors are allowed
Overload Errors are allowed
Timeout Errors are allowed
Internal NDB Errors are allowed
User logic reported Errors are allowed
Application Errors are disallowed
Using table name TAB0

NDBT_ProgramExit: 1 - Failed


WARNING -- Failed to allocate nodeid for API at Returned eror: 'No free node id found for mysqld(API).'

I also have recompiled with -DWITH_DEBUG=1 -DWITH_NDB_DEBUG=1. How can I run flexAsynch in the debug mode?

# /usr/local/mysqlc732/bin/flexAsynch -h
   Perform benchmark of insert, update and delete transactions

   -t Number of threads to start, default 1
   -p Number of parallel transactions per thread, default 32
   -o Number of transactions per loop, default 500
   -l Number of loops to run, default 1, 0=infinite
   -load_factor Number Load factor in index in percent (40 -> 99)
   -a Number of attributes, default 25
   -c Number of operations per transaction
   -s Size of each attribute, default 1 
      (PK is always of size 1, independent of this value)
   -simple Use simple read to read from database
   -dirty Use dirty read to read from database
   -write Use writeTuple in insert and update
   -n Use standard table names
   -no_table_create Don't create tables in db
   -temp Create table(s) without logging
   -no_hint Don't give hint on where to execute transaction coordinator
   -adaptive Use adaptive send algorithm (default)
   -force Force send when communicating
   -non_adaptive Send at a 10 millisecond interval
   -local 1 = each thread its own node, 2 = round robin on node per parallel trans 3 = random node per parallel trans
   -ndbrecord Use NDB Record
   -r Number of extra loops
   -insert Only run inserts on standard table
   -read Only run reads on standard table
   -update Only run updates on standard table
   -delete Only run deletes on standard table
   -create_table Only run Create Table of standard table
   -drop_table Only run Drop Table on standard table
   -warmup_time Warmup Time before measurement starts
   -execution_time Execution Time where measurement is done
   -cooldown_time Cooldown time after measurement completed
   -table Number of standard table, default 0
share|improve this question
up vote 1 down vote accepted

Because flexAsynch uses the asynchronous NDB API, so I have to add a free slot in config.ini:

NodeId: 13         

then restart the management nodes and all data nodes:

Connected to Management Server at:
Cluster Configuration
[ndbd(NDB)]     2 node(s)
id=3    @  (mysql-5.5.30 ndb-7.2.12, Nodegroup: 0, Master)
id=4    @  (mysql-5.5.30 ndb-7.2.12, Nodegroup: 0)

[ndb_mgmd(MGM)] 2 node(s)
id=1    @  (mysql-5.5.30 ndb-7.2.12)
id=2    @  (mysql-5.5.30 ndb-7.2.12)

[mysqld(API)]   9 node(s)
id=5    @  (mysql-5.5.30 ndb-7.2.12)
id=6    @  (mysql-5.5.30 ndb-7.2.12)
id=7    @  (mysql-5.5.30 ndb-7.2.12)
id=8    @  (mysql-5.5.30 ndb-7.2.12)
id=9    @  (mysql-5.5.30 ndb-7.2.12)
id=10   @  (mysql-5.5.30 ndb-7.2.12)
id=11   @  (mysql-5.5.30 ndb-7.2.12)
id=12   @  (mysql-5.5.30 ndb-7.2.12)
id=13 (not connected, accepting connect from

Re-run the flexAsynch and now it's working fine:

insert average: 59674/s min: 59590/s max: 59759/s stddev: 0%
update average: 60077/s min: 58445/s max: 61709/s stddev: 2%
delete average: 137487/s min: 134205/s max: 140770/s stddev: 2%
read   average: 100763/s min: 98413/s max: 103013/s stddev: 2%

NDBT_ProgramExit: 0 - OK
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.