An analytics platform for real-time data.
Switch branches/tags
Nothing to show
Pull request Compare This branch is 418 commits behind fluidecho:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.


An analytics platform for real-time data.

Kurunt is currently in 'very alpha' initial release, so it will require manual tinkering and installation to get working. If you'd just like to play with it running, try our public AMI (just instruction at this stage, see below). I will be making it more usable in the coming weeks/months - stay tuned.


Kurunt is a open source project under Apache License.

Some dependencies Kurunt uses apply different open source licenses.

To Do List

  • lots!

Installation from Source - Step by Step

These instruction are for installing on Ubuntu 12.04 server, however similarly apply to most *nix systems. Installation under root user use sudo otherwise. Replace nano with vi or your favourite editor. I use the /opt directory for dependencies.

To Install

Goal to get all this running on a micro instance with a bit of memory left to be able to do some actual data analysis. Dependencies required:

  • Node.js (what kurunt is writen in)
  • Sphinx (search/query indexs)
  • MySQL (used to store administrative information like users, schemes, settings)
  • ZeroMQ (used as a message queues)
  • GeoIP (Geo locate IP addresses)

Ubuntu AMIs

12.04 LTS Precise Pangolin (server edition)

sudo su

Ubuntu Dependencies

apt-get -y update && apt-get upgrade
apt-get -y install git git-core
apt-get -y install curl build-essential automake libtool pkg-config
apt-get -y install openssl libssl-dev		# node.js
apt-get -y install uuid-dev					# zeromq


apt-get install mysql-server
apt-get install libmysqlclient-dev			# for db-mysql

Set user to root and pass to: 3Dfa87b


Install node from source (apt-get install nodejs worked but acted funny! so install from source)
cd opt
tar xzvf node-v0.6.19.tar.gz
cd node-v0.6.19
make		# takes ages
make install
node -v		# check is working
Install npm for node modules
cd /opt
curl | sh	
Now some node modules

Note the -g means install globally within /usr/local/lib/node_modules.

Native MySQL.

npm install mysql@2.0.0-alpha2 -g


npm install db-mysql -g

Installs to: /usr/local/lib/node_modules/mysql.

Express, for public webpages 'www'.

npm install express -g

Installs to: /usr/local/lib/node_modules/express. Now install express dependencies.

npm install jade -g

Markdown (optional) can use markdown code in jade templates.

npm install -g markdown

To activate express cd to /kurunt/www/ and execute 'epress' command, -s is for cookie session support.

express -s

This will install the necessary files and folders within www. Can use my www.js instead of express's app.js script.


npm install -g

Installs to: /usr/local/lib/node_modules/


Note, --enable-id64 build sphinx with 64bit document id support.

cd /opt
tar xzvf sphinx-2.0.4-release.tar.gz
cd sphinx-2.0.4-release
./configure --without-mysql --enable-id64
make			# take a while
make install
searchd -h		# check is working
Install the node.js native module


Note version 3 is out yet to test.

cd /opt
git clone
cd zeromq2-x
make check		# optional
make install

Node dependency.

npm install zmq -g
cd /usr/local/lib/node_modules/zmq
npm install
make test


Install GeoIP databases (from Maxmind)

Your work needs to conform with Maxmind license; "This product includes GeoLite data created by MaxMind, available from"

cd tmp
gunzip GeoIP.dat.gz
mkdir /usr/local/share/GeoIP/
mv GeoIP.dat /usr/local/share/GeoIP/
gunzip GeoLiteCity.dat.gz
mv GeoLiteCity.dat /usr/local/share/GeoIP/
gunzip GeoIPv6.dat.gz
mv GeoIPv6.dat /usr/local/share/GeoIP/
gunzip GeoLiteCityv6.dat.gz
mv GeoLiteCityv6.dat /usr/local/share/GeoIP/
Install GeoIP C library
apt-get install libgeoip-dev
Geoip for node.js
npm install geoip -g

installs to: /usr/local/lib/node_modules/geoip

A bit more

Create the sphinx directories.

mkdir /var/sphinx
mkdir /var/sphinx/log
mkdir /var/sphinx/data

Open port 3000 on your server or security group if using AWS.

To run Kurunt:

node /opt/kurunt/index.js

If things go badly can manually remove sphinx index to start over:

	searchd --stop
	cd /var/sphinx/data/
	rm -r *			# carefull!!!
	cd /var/sphinx/log/
	rm -r *			# carefull!!!

And can manually remove mysql index references in, indexes, users. Could delete entire database if wanted to start fresh.


Kurunt is released under Apache License v2, which is located at

Ubuntu and dependent libraries are released mainly under the GNU General Public License, which is located at

MySQL and MySQL Proxy is released under the GNU General Public License v2, which is located at

Node.js is released under the MIT License, which is located

NPM (Node Package Manager) is released under GNU GPL version 3 or later, which is located at

PHP and related libraries are released under the PHP License v3.01, which is located at

MondoDB is released under GNU Affero General Public License v3.0 (drivers: Apache license), which is located at

ZeroMQ (ØMQ) is released under the GNU Lesser General Public License, which is located at

GeoIP C library is released under GNU Lesser General Public License, which is located at

GeoIP databases are released under OPEN DATA LICENSE, which is located at

Git is released under the GNU General Public License v2, which is located at

Sphinx (search) is released under the GNU General Public License v2, which is located at

Curl is released under MIT/X Derivate License, which is located at

OpenSSL is released under the terms of the Apache License, which is located at

Nimble (node.js module) is released under the MIT License, which is located