title: Cannot set IndexMemory and DataMemory on MySQL Cluster
body: <p>I am in the process of setting up a MySQL Cluster (version 7.2.4) on 64-bit Debian Linux.  The cluster has two management/SQL nodes and two data nodes.  Each server has the following in <strong>/var/lib/mysql-cluster/config.ini</strong>:</p>
  
  <pre><code>[NDBD DEFAULT]
  NoOfReplicas=2
  DataDir=/var/lib/mysql-cluster
  DataMemory=256M
  IndexMemory=64M
  
  [MYSQLD DEFAULT]
  
  [NDB_MGMD DEFAULT]
  
  [TCP DEFAULT]
  
  # Management node 1
  [NDB_MGMD]
  NodeId=1
  HostName=192.168.25.10
  DataDir=/var/lib/mysql-cluster
  
  # Management node 2
  [NDB_MGMD]
  NodeId=2
  HostName=192.168.25.11
  DataDir=/var/lib/mysql-cluster
  
  # Storage node 1
  [NDBD]
  NodeId=3
  HostName=192.168.25.12
  
  # Storage node 2
  [NDBD]
  NodeId=4
  HostName=192.168.25.13
  
  [MYSQLD]
  NodeId=5
  HostName=192.168.25.10
  
  [MYSQLD]
  NodeId=6
  HostName=192.168.25.11
  
  [MYSQLD]
  [MYSQLD]
  </code></pre>
  
  <p>The documentation and my own research on Google leads me to believe that this will set the data memory to 256 MB and the index memory to 64 MB.  However, when the cluster is started using this configuration, these settings are not honored:</p>
  
  <pre><code>mysql&gt; SELECT node_id, memory_type, total FROM ndbinfo.memoryusage;
  +---------+--------------+----------+
  | node_id | memory_type  | total    |
  +---------+--------------+----------+
  |       3 | Data memory  | 83886080 |
  |       3 | Index memory | 19136512 |
  |       4 | Data memory  | 83886080 |
  |       4 | Index memory | 19136512 |
  +---------+--------------+----------+
  4 rows in set (0.03 sec)
  </code></pre>
  
  <p>For each node, the data memory is 80 MB and the index memory is 18 MB, which are the default values according to the MySQL Cluster documentation.</p>
  
  <p>I've tried a few minor tweaks, such as changing the [NDBD DEFAULT] to [ndbd default], but nothing has worked.  Does anyone know why I'm not able to change these two settings?</p>
  
  <p>As always, any help will be greatly appreciated.  Thanks!</p>