Skip to content

Instantly share code, notes, and snippets.

@billautomata
Last active August 29, 2015 14:03
Show Gist options
  • Save billautomata/54b680ea48dbd542a2ef to your computer and use it in GitHub Desktop.
Save billautomata/54b680ea48dbd542a2ef to your computer and use it in GitHub Desktop.
toku-mx deployment
mongod --configsvr --dbpath /home/bill/tokumx/config0 --port 27019 --fork --logpath /home/bill/tokumx/config0.log --nojournal
mongod --configsvr --dbpath /home/bill/tokumx/config1 --port 27020 --fork --logpath /home/bill/tokumx/config1.log   --nojournal
mongod --configsvr --dbpath /home/bill/tokumx/config2 --port 27021 --fork --logpath /home/bill/tokumx/config2.log   --nojournal

mongod --shardsvr --replSet shard0 --dbpath /home/bill/toku_arbiter --port 30002 --logpath /home/bill/toku_arbiter/log.log --fork --nojournal
mongod --shardsvr --replSet shard1 --dbpath /home/bill/toku_arbiter --port 30003 --logpath /home/bill/toku_arbiter/log.log --fork --nojournal
mongos --configdb mongo1:27019,mongo1:27020,mongo1:27021 --logpath /home/bill/tokumx/mongos.log --fork --port 40000

Connect to the cluster!

mongo localhost:40000

As root add the tokumx aptitude repository and install tokumx

apt-key adv --keyserver keyserver.ubuntu.com --recv-key 505A7412
echo "deb [arch=amd64] http://s3.amazonaws.com/tokumx-debs $(lsb_release -cs) main" | tee /etc/apt/sources.list.d/tokumx.list
apt-get update
apt-get install tokumx

To control the mongod data server, use service:

service tokumx start
service tokumx restart
service tokumx stop

To enable TokuMX on boot, use chkconfig on Debian:

chkconfig tokumx on
chkconfig tokumx off

or use rcconf

apt-get install rcconf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment