Skip to content
Snippets Groups Projects
README.md 2.93 KiB
Newer Older
# tarantool [![Build Status](https://travis-ci.org/tarantool/tarantool.png?branch=master)](https://travis-ci.org/tarantool/tarantool)

The Gitter Badger's avatar
The Gitter Badger committed
[![Gitter](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/tarantool/tarantool?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)

Konstantin Osipov's avatar
Konstantin Osipov committed
http://tarantool.org

Konstantin Osipov's avatar
Konstantin Osipov committed
Tarantool is an in-memory database and application server.
Konstantin Osipov's avatar
Konstantin Osipov committed

Konstantin Osipov's avatar
Konstantin Osipov committed
Key features of the application server:
Konstantin Osipov's avatar
Konstantin Osipov committed
 * 100% compatible drop-in replacement for Lua 5.1,
   based on LuaJIT 2.0.
   Simply use #!/usr/bin/tarantool instead of
   #!/usr/bin/lua in your script.
 * full support for Lua modules and a rich set of
   own modules, including cooperative multitasking,
   non-blocking I/O, access to external databases, etc

Key features of the database:
 * MsgPack data format and MsgPack based
   client-server protocol
 * two data engines: 100% in-memory with
   optional persistence and a 2-level disk-based
   B-tree, to use with large data sets
Konstantin Osipov's avatar
Konstantin Osipov committed
 * multiple index types: HASH, TREE, BITSET
Konstantin Osipov's avatar
Konstantin Osipov committed
 * asynchronous master-master replication
 * authentication and access control
 * the database is just a C extension to the
   app server and can be turned off
Konstantin Osipov's avatar
Konstantin Osipov committed

Supported platforms are Linux/x86 and FreeBSD/x86, Mac OS X.
Konstantin Osipov's avatar
Konstantin Osipov committed
Tarantool is ideal for data-enriched components of
scalable Web architecture: queue servers, caches,
stateful Web applications.

Tarantool is written in C and C++.
To build, you will need GCC or Apple CLang compiler.

CMake is used for configuration management.
3 standard CMake build types are supported:
 * Debug -- used by project maintainers
 * RelWithDebugInfo -- the most common release configuration,
 also provides debugging capabilities
 * Release -- use only if the highest performance is required
Konstantin Osipov's avatar
Konstantin Osipov committed
The build depends on the following external libraries:
Konstantin Osipov's avatar
Konstantin Osipov committed
- libreadline and libreadline-dev
- GNU bfd (part of GNU binutils).
Dmitry E. Oboukhov's avatar
Dmitry E. Oboukhov committed

Please follow these steps to compile Tarantool:
Eugine Blikh's avatar
Eugine Blikh committed
    # If compiling from git
    tarantool $ git submodule update --init --recursive
Konstantin Osipov's avatar
Konstantin Osipov committed

Eugine Blikh's avatar
Eugine Blikh committed
    tarantool $ cmake .
    tarantool $ make
Konstantin Osipov's avatar
Konstantin Osipov committed
To use a different release type, say, RelWithDebugInfo, use:

Eugine Blikh's avatar
Eugine Blikh committed
    tarantool $ cmake . -DCMAKE_BUILD_TYPE=RelWithDebugInfo
Additional build options can be set similarly:

    tarantool $ cmake . -DCMAKE_BUILD_TYPE=RelWithDebugInfo -DENABLE_DOC=true # builds the docs
Konstantin Osipov's avatar
Konstantin Osipov committed
'make' creates 'tarantool' executable in directory src/.
Nick Zavaritsky's avatar
Nick Zavaritsky committed
There is 'make install' goal. One can also run Tarantool executable without
installation.
Konstantin Osipov's avatar
Konstantin Osipov committed
To start the server, try:
    tarantool $ ./src/tarantool
Konstantin Osipov's avatar
Konstantin Osipov committed
This will start Tarantool in interactive mode.

To run Tarantool regression tests (test/test-run.py),
Nick Zavaritsky's avatar
Nick Zavaritsky committed
a few additional Python modules are necessary:
Konstantin Osipov's avatar
Konstantin Osipov committed
 * daemon
 * pyyaml
 * msgpack-python
Konstantin Osipov's avatar
Konstantin Osipov committed
Simply type 'make test' to fire off the test coverage.
Please report bugs at http://github.com/tarantool/tarantool/issues
We also warmly welcome your feedback in the discussion mailing
Konstantin Osipov's avatar
Konstantin Osipov committed
list, tarantool@googlegroups.com.

Thank you for your interest in Tarantool!