Questions tagged [tarantool]

Tarantool is a Lua application server with a built-in database. It's best to think of as a Redis or Memcached with high level of customization. Alternatively, it's Node.JS with object persistency and master-master replication.

Tarantool is a Lua application server with a built-in database.

The key idea is in a new way of building Web applications - a data grid approach, when the database serves as the application backend as well, and there are many database instances running in parallel, to scale up and out.

Tarantool features:

  • a 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
  • Lua packages for non-blocking I/O, fibers and HTTP
  • document data model with secondary keys
  • two data engines: 100% in-memory with optional persistence and a 2-level disk-based B-tree, to use with large data sets
  • iteration over data in forward and reverse order
  • asynchronous master-master replication
  • authentication and access control
218 questions
7
votes
1 answer

When to Redis? When to Tarantool?

I do not want to get a detailed comparison. Neither do I want to define 'what is the best or fastest' in-memory DB. They are both similar, so I want to get an overview of critical differences. So what are they?
LapaevPavel
  • 226
  • 1
  • 5
7
votes
2 answers

How to start tarantool console?

I've installed tarantool (tarantool_box) and tarantool-client. I can start tarantool /usr/bin/tarantool_box --background but when I try to connect to server /usr/bin/tarantool I see only admin console localhost> and can only use some commands…
Ivan Ivanov
  • 2,076
  • 16
  • 33
6
votes
1 answer

What is the default password for connecting to tarantool cartridge application

I have a default application on tarantool cartridge (cluster). I want to connect to the cluster's router. I use the command: tarantoolctl connect admin:_password_@localhost:3301 Where can I find the default password?
Andrey V
  • 61
  • 4
6
votes
2 answers

What is the correct way to work with dates in Tarantool?

There are several ways to get time in Tarantool: Using the clock module Using fiber.time function Using os.date But what is the correct way to work with dates?
Andrey
  • 185
  • 8
6
votes
1 answer

How I can to get custom options in the `init` function of the Tarantool Cartridge role?

A Tarantool Cartridge role file has a function init. I want to get my custom options from the instance.yml file. But the opts variable doesn't have it. How I can do it?
6
votes
2 answers

How to backup Tarantool memtx properly?

Setup: tarantool instance, using memtx/vinyl storage. box.cfg.snapshot_period (how often memtx takes disk snapshots) set to 14400 (every 4 hours). Users do their valuable commits into DB, almost permanently. Backup system: I do my backups every 15…
6
votes
2 answers

When to use fibers and when to use co-routines in Tarantool?

In Tarantool, are fibers used when the Lua code author wants Tarantool to schedule the execution? Are co-routines (in the Tarantool/LuaJIT process) used when the Lua code author wants to be in control of the execution?
dgo.a
  • 2,634
  • 23
  • 35
5
votes
1 answer

How to see print() results in Tarantool Docker container

I am using tarantool/tarantool:2.6.0 Docker image (the latest at the moment) and writing lua scripts for the project. I try to find out how to see the results of callin' print() function. It's quite difficult to debug my code without print()…
chernetsky
  • 81
  • 4
5
votes
1 answer

Tarantool does not start due to disk write error

I am trying to launch Tarantool in Docker from scratch (no existing data). I use the Docker command they suggest in the Tutorial and run it under Docker Desktop 2.4.0.0 on MacOS 10.15.6 (Catalina): docker run \ --name mytarantool \ -d -p…
greatvovan
  • 2,439
  • 23
  • 43
4
votes
1 answer

Space that is available at all Tarantool nodes (vshard)

I use Tarantool with vshard module. When bucket_id is set, the data is distributed across the cluster. Each node has its own set of bucket_ids. How to make a space so that it is fully accessible on every node (dictionary)?
4
votes
1 answer

Failed to allocate bytes in slab allocator for memtx_tuple Tarantool

What could be the reason for the error "Failed to allocate 153 bytes in slab allocator for memtx_tuple" on the client when writing to Tarantool memtx?
Tata
  • 71
  • 4
4
votes
1 answer

Check if SQL table exists in Tarantool

How can I check in Tarantool SQL if a table already exists?
4
votes
1 answer

How to run complex queries in Tarantool

I've always worked with relational DBs and recently decided to migrate a performance-critial service from SQL Server to Tarantool with a hope to take advantage of the fast in-memory search and processing. I've got a couple of questions while…
Alex Avrutin
  • 1,344
  • 2
  • 17
  • 24
4
votes
2 answers

tarantool long WAL write

Use tarantool, why i take in log this strange messages: 2016-03-24 16:19:58.987 [5803] main/493623/http/XXX.XXX.XXX.XXX:57295 txn.cc:214 W> too long WAL write: 0.527 sec 2016-03-24 16:20:09.841 [5803] main/493714/http/XXX.XXX.XXX.XXX:57346…
agent-0007
  • 109
  • 6
4
votes
3 answers

SQL LIKE query in Tarantool

What is a proper way to make a query in Tarantool DB with SQL LIKE keyword? For example: SELECT * FROM space where smth LIKE '%some_value%'; Can I search for values using a part of index or I need to write my own LUA script for such functionality?
user1391049
  • 59
  • 1
  • 6
1
2 3
14 15