MySQL HEAP(MEMORY)ストレージエンジン カラム型制限
mysql> CREATE TABLE tomcat$sessions -> ( -> id varchar(100) not null primary key, -> valid char(1) not null, -> maxinactive int not null, -> lastaccess bigint, -> data mediumblob -> ) ENGINE = innodb; Query OK, 0 rows affected (0.06 sec) mysql> ALTER TABLE tomcat$sessions ENGINE = memory; ERROR 1163 (42000): The used table type doesn't support BLOB/TEXT columns
残念・・・.
HEAPはやはりBLOB系は駄目だった.しかしHttpSessionの格納先はやはりメモリ上に限定したいので,
mysql> ALTER TABLE tomcat$sessions ENGINE = ndb; Query OK, 0 rows affected (0.10 sec)
よーしこれで行こう.SQLノードx1 Dataノードx1の構成のMySQL ClusterならTomcat x2との組合せでも許容範囲でしょう.