Clustrix dev node is now available on EC2 as an Amazon Machine Image

Here are step-by-step instructions on how to select Clustrix as your Amazon Machine Image:

When choosing an ami you can either use the ami-a669cacf or search for clustrix:

 

Keep in mind that each clustrix node requires 1.5GB RAM and this image boots with 3 nodes on the same host so you should go the m1.large instance size at a minimum.

Clustrix will automatically start on boot with 3 nodes, to verify clustrix is running with 3 nodes run the stat command

[root@domU-12-31-39-0F-D0-12 ~]# devnodectl stat
Node 1 [RUNNING]: /mnt/clustrix/p1 mysql: 3306 control: 2048 healthmon:42502 mysql socket: /mnt/clustrix/p1/mysql.sock
Node 2 [RUNNING]: /mnt/clustrix/p2 mysql: 37425 control: 39288 healthmon:58286 mysql socket: /mnt/clustrix/p2/mysql.sock
Node 3 [RUNNING]: /mnt/clustrix/p3 mysql: 59683 control: 37765 healthmon:3581 mysql socket: /mnt/clustrix/p3/mysql.sock

To stop a single node:

root@domU-12-31-39-0F-D0-12 ~]# devnodectl stop -n 3 [node /mnt/clustrix/p3] kill -9 1108  
[root@domU-12-31-39-0F-D0-12 ~]# devnodectl stat  
Node 1 [RUNNING]: /mnt/clustrix/p1 mysql: 3306 control: 2048 healthmon:3581 mysql socket: /mnt/clustrix/p1/mysql.sock  
Node 2 [RUNNING]: /mnt/clustrix/p2 mysql: 37425 control: 39288 healthmon:39566 mysql socket: /mnt/clustrix/p2/mysql.sock  
Node 3 [DOWN]: /mnt/clustrix/p3 mysql: 59683 control: 37765 healthmon:3581 mysql socket: /mnt/clustrix/p3/mysql.sock

From above you can see we stopped node 3, now lets start best online casino it up:

[root@domU-12-31-39-0F-D0-12 ~]# devnodectl start -n 3 [exec] /opt/clustrix/bin/devnode -clusterpath /mnt/clustrix -cluster root -setpnid 3 -anyport -unix -noautostart Waiting for node 3 to enter quorum. done.  
Node 1 [RUNNING]: /mnt/clustrix/p1 mysql: 3306 control: 2048 healthmon:58823 mysql socket: /mnt/clustrix/p1/mysql.sock  
Node 2 [RUNNING]: /mnt/clustrix/p2 mysql: 37425 control: 39288 healthmon:35363 mysql socket: /mnt/clustrix/p2/mysql.sock  
Node 3 [RUNNING]: /mnt/clustrix/p3 mysql: 38944 control: 48331 healthmon:3581 mysql socket: /mnt/clustrix/p3/mysql.sock

Now lets connect using the mysql client.

 mysql -h 127.0.0.1