Skip to content


Subversion checkout URL

You can clone with
Download ZIP
A NoSQL database running in a Lua application server
C C++ Lua CMake Python Ragel in Ruby Host Other

iproto: fix rollback to the wrong state of the output of obuf

In case output is multiplexed, obuf_rollback_to_svp could
roll back to a very early  in the output buffer, since
svp is taken before a possible yield.

This is a regression introduced in the patch which
removes iproto_port from Lua calls.
latest commit 815a486bc9
@kostja kostja authored

tarantool Build Status


Tarantool is an efficient NoSQL database and a Lua application server.

Key features of the Lua application server:

  • 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
  • multiple index types: HASH, TREE, BITSET
  • asynchronous master-master replication
  • authentication and access control
  • the database is just a C extension to the app server and can be turned off

Supported platforms are Linux/x86 and FreeBSD/x86, Mac OS X.

Tarantool is ideal for data-enriched components of scalable Web architecture: queue servers, caches, stateful Web applications.

Compilation and install

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

The build depends on the following external libraries:

  • libreadline and libreadline-dev
  • GNU bfd (part of GNU binutils).

Please follow these steps to compile Tarantool:

# If compiling from git
tarantool $ git submodule update --init

tarantool $ cmake .
tarantool $ make

To use a different release type, say, RelWithDebugInfo, use:

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

'make' creates 'tarantool' executable in directory src/.

There is no 'make install' goal, but no installation is required either.

To start the server, try:

tarantool $ ./src/tarantool

This will start Tarantool in interactive mode.

To run Tarantool regression tests (test/, a few additional Python modules are ncessary:

  • daemon
  • pyyaml
  • msgpack-python

Simply type 'make test' to fire off the test coverage.

Please report bugs at We also warmly welcome your feedback in the discussion mailing list,

Thank you for your interest in Tarantool!

Something went wrong with that request. Please try again.