Monday, January 5, 2015

Tarantool(NoSQL) in Ubuntu

Tarantool

Tarantool is a NoSQL that i am trying to benchmark as per requirement of memory based NoSQL.

Requirement is
1)It should be an alternative of memcache/redis.Memory based NoSQL.
2)Supports master-master replication.
3)It should have library for PHP.

And tarantool looks like fulfilling the requirement.



Installation

User guide of tarantool is http://tarantool.org/doc/user_guide.html

In section 2 (As i am installing it in ubuntu i follow that particular section)


#wget http://tarantool.org/dist/public.key

#apt-key add ./public.key

#release=`lsb_release -c -s`

This part(# append two lines to a list of source repositories) in documentation can be used as

#echo "deb http://tarantool.org/dist/stable/debian/ $release main" | \ > sudo tee -a /etc/apt/sources.list.d/tarantool.list deb http://tarantool.org/dist/stable/debian/ utopic main
# echo "deb-src http://tarantool.org/dist/stable/debian/ $release main" | \ > sudo tee -a /etc/apt/sources.list.d/tarantool.list deb-src http://tarantool.org/dist/stable/debian/ utopic main

(Bolded one deb http://... and deb-src http://... needed to be append in /etc/apt/sources.list)

#apt-get update

#apt-get install tarantool


Ref:http://tarantool.org/doc/user_guide.html





Run first Instance

Got following message in attempt of starting it

# service tarantool start
tarantool: There are no instances in /etc/tarantool/instances.enabled


#cp /etc/tarantool/instances.available/example.cfg /etc/tarantool/instances.enabled/first.cfg

# service tarantool start
tarantool: Staring instances
/usr/bin/tarantool_box: space 0 successfully configured
/usr/bin/tarantool_box: creating `./00000000000000000001.snap.inprogress'
/usr/bin/tarantool_box: saving snapshot `./00000000000000000001.snap'
/usr/bin/tarantool_box: done
    Starting 'first' ... ok

No comments: