PROJECTS
Gearman worker for MySQL Cluster
This is also discussed in this article and this is very alfa. Code is here.
tar xvfz protobuf-2.3.0.tar.gz
protobuf-2.3.0
./configure
make
sudo make install
tar xvfz gearmand-0.11.tar.gz
gearmand-0.11
./configure
make
sudo make install
tar xvfz gearman-ndbapi.tar.gz
gearman-ndbapi
sh ./compile-all.sh
/usr/local/sbin/gearmand
./worker
mysql> create table Person(id integer primary key, salary integer, name varchar(128), message varchar(1024))engine=ndb;
> cat proto/Person.proto
message Person {
required int32 id = 1;
optional string name = 2;
optional string message = 3;
}
> cat proto/NdbMessage.proto
// import the relevant protos that can be in
// the NdbMessage
import "Person.proto";
message NdbMessage {
enum Type { Person=1;}
// Identifies which field is filled in.
required Type type = 1;
// list of possible protos comes here:
optional Person person = 2;
}
./set_client
./get_client 1