Hi,
We recently installed mysql cluster using disk data storage.
We create log file group and 3 tablespaces each 4GB space like this:
mysql> CREATE LOGFILE GROUP LG_TRANSFER_FREE
-> ADD UNDOFILE 'undo_tr_free_1.dat'
-> INITIAL_SIZE 128M
-> UNDO_BUFFER_SIZE 10M
-> ENGINE NDB;
Query OK, 0 rows affected (5.33 sec)
mysql> ALTER LOGFILE GROUP LG_TRANSFER_FREE
-> ADD UNDOFILE 'undo_tr_free_2.dat'
-> INITIAL_SIZE 128M
-> ENGINE NDB;
Query OK, 0 rows affected (5.00 sec)
mysql> CREATE TABLESPACE ts_transfer_free
-> ADD DATAFILE 'data_tr_free_1.dat'
-> USE LOGFILE GROUP LG_TRANSFER_FREE
-> INITIAL_SIZE 4000M
-> ENGINE NDB;
Query OK, 0 rows affected (2 min 13.95 sec)
mysql> ALTER TABLESPACE ts_transfer_free
-> ADD DATAFILE 'data_tr_free_2.dat'
-> INITIAL_SIZE 4000M
-> ENGINE NDB;
Query OK, 0 rows affected (1 min 56.70 sec)
mysql> ALTER TABLESPACE ts_transfer_free ADD DATAFILE 'data_tr_free_3.dat' INITIAL_SIZE 4000M ENGINE NDB;
Query OK, 0 rows affected (1 min 54.19 sec)
In config.ini of ndb_mgmd server we put :
InitialLogFileGroup=name=LG_TRANSFER_FREE; undo_buffer_size=10M; undo_tr_free_1.dat:128M; undo_tr_free_2.dat:128M
InitialTablespace=name=ts_transfer_free; extent_size=8M; data_tr_free_1.dat:4000M; data_tr_free_2.dat:4000M; AUTOEXTEND_SIZE:100M
But our problem is that when we check memory status in ndb_mgm it shows us:
ndb_mgm> all report memory;
Node 2: Data usage is 99%(2541 32K pages of total 2560)
Node 2: Index usage is 5%(759 8K pages of total 12832)
Node 3: Data usage is 99%(2558 32K pages of total 2560)
Node 3: Index usage is 5%(740 8K pages of total 12832)
Why mysql cluster doesn`t use disk data storage?
Thanks.
We recently installed mysql cluster using disk data storage.
We create log file group and 3 tablespaces each 4GB space like this:
mysql> CREATE LOGFILE GROUP LG_TRANSFER_FREE
-> ADD UNDOFILE 'undo_tr_free_1.dat'
-> INITIAL_SIZE 128M
-> UNDO_BUFFER_SIZE 10M
-> ENGINE NDB;
Query OK, 0 rows affected (5.33 sec)
mysql> ALTER LOGFILE GROUP LG_TRANSFER_FREE
-> ADD UNDOFILE 'undo_tr_free_2.dat'
-> INITIAL_SIZE 128M
-> ENGINE NDB;
Query OK, 0 rows affected (5.00 sec)
mysql> CREATE TABLESPACE ts_transfer_free
-> ADD DATAFILE 'data_tr_free_1.dat'
-> USE LOGFILE GROUP LG_TRANSFER_FREE
-> INITIAL_SIZE 4000M
-> ENGINE NDB;
Query OK, 0 rows affected (2 min 13.95 sec)
mysql> ALTER TABLESPACE ts_transfer_free
-> ADD DATAFILE 'data_tr_free_2.dat'
-> INITIAL_SIZE 4000M
-> ENGINE NDB;
Query OK, 0 rows affected (1 min 56.70 sec)
mysql> ALTER TABLESPACE ts_transfer_free ADD DATAFILE 'data_tr_free_3.dat' INITIAL_SIZE 4000M ENGINE NDB;
Query OK, 0 rows affected (1 min 54.19 sec)
In config.ini of ndb_mgmd server we put :
InitialLogFileGroup=name=LG_TRANSFER_FREE; undo_buffer_size=10M; undo_tr_free_1.dat:128M; undo_tr_free_2.dat:128M
InitialTablespace=name=ts_transfer_free; extent_size=8M; data_tr_free_1.dat:4000M; data_tr_free_2.dat:4000M; AUTOEXTEND_SIZE:100M
But our problem is that when we check memory status in ndb_mgm it shows us:
ndb_mgm> all report memory;
Node 2: Data usage is 99%(2541 32K pages of total 2560)
Node 2: Index usage is 5%(759 8K pages of total 12832)
Node 3: Data usage is 99%(2558 32K pages of total 2560)
Node 3: Index usage is 5%(740 8K pages of total 12832)
Why mysql cluster doesn`t use disk data storage?
Thanks.