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
0
votes
1 answer

Tarantool wal config

We are using Tarantool 1.5 and have question with config options: if we set following options: wal_fsync_delay=2 wal_mode=write Does it mean fsync(2) will not be called at all?
Galimov Albert
  • 7,269
  • 1
  • 24
  • 50
0
votes
1 answer

Openresty: create connection to Tarantool on init

I want to create connection to Tarantool database in init_by_lua_block or init_worker_by_lua_block and then use that created connection in each content_by_lua_block: init_by_lua_block { local tnt = require 'resty.tarantool' local tar, err =…
zodiac
  • 353
  • 3
  • 18
0
votes
1 answer

Getting attempt to index global ''io'' error while trying to read a file via Tarantool LUA admin console

I've got a question. Why cannot I get access to a file from Tarantool LUA admin console? Am I in a jail ? tarantool -h myhost -a 33015 help console client commands: - help - loadfile 'path' - setopt key=val - (possible pairs: delimiter = 'string'…
0
votes
1 answer

How to delete a record by the secondary key for tarantool using java client?

Java client sources Function select has index: public java.util.List select(int space, int index, java.lang.Object key, int offset, int limit, int iterator) But replace, update and delete given only space & key: public java.util.List delete(int…
Ant20
  • 1,993
  • 2
  • 12
  • 16
0
votes
0 answers

What is fieldno in Tarantool space config?

Extract from the config: space[0].index[0].type = "TREE" space[0].index[0].unique = 1 space[0].index[0].key_field[0].fieldno = 0 space[0].index[0].key_field[0].type = "STR" What does fieldno mean? Failed to find clear answer in the docs.
ifn
  • 1
  • 2
0
votes
1 answer

Tarantool doesn't work on Ubuntu 16 (libbfd-2.26-system.so: cannot open shared object file)

I installed Tarantool 1.7 on Ubuntu 16 as instructed https://tarantool.org/download.html The installation was successful, but when i run tarantool it fails with error: tarantool: error while loading shared libraries: libbfd-2.26-system.so: cannot…
bardex
  • 13
  • 2
0
votes
1 answer

How can I call box.commit from python client

I want to execute some code in single transaction. I use tarantool 1.6 with python client (0.5.4) My code looks like this (it does'not work): import tarantool tnt = tarantool.Connection(**params) tnt.call('box.begin') tnt.update(space1, 1, [('=',…
Alexander
  • 28
  • 3
0
votes
1 answer

How to write lua-daemon for tarantool

How to write a lua-program for tarantool that will perform some tasks regularly (e.g. once per 10 minutes) in background?
Alex Z
  • 63
  • 4
0
votes
1 answer

How to prevent possible RC

Im using Tarantool 1.5 and lua procedures. Documentation says a lua procedure can yield execution to another after network/io operation for example, a box.update call. My main question is: if I get return tuple from box.update does it contain…
Galimov Albert
  • 7,269
  • 1
  • 24
  • 50
0
votes
1 answer

Complex SELECT in Tarantool

There is two spaces, named e.g. Company and Cars. Space Company has company id (primary index) and geolocation (point) fields (secondary index). Space Cars has car (primary index) and companies (array of all companies where this car can be rented).…
Aleksandar
  • 1,163
  • 22
  • 41
0
votes
1 answer

Reference Search in Tarantool

I have two tables: user, user_matching. And I wanna get items from both tables in 1 query. For example, SQL-like query: select * from user where user.id = (select id from user_matching where id = user_matching_id) Usually I should use 2 query in…
0
votes
1 answer

How to connect from tarantool to mysql?

I try use tarantool as application server and want connect from tarantool to mysql. In lua i write a function: local function mysql_data(query, limit) local conn = mysql.connect({host = mysql_host, user = mysql_user, password = mysql_password,…
agent-0007
  • 109
  • 6
0
votes
1 answer

file `./00000000000000000849.xlog` wasn't correctly closed

When i try start my tarantool, see in log this messages: 2016-03-28 17:42:14.813 [31296] main/101/ia.lua C> log level 4 2016-03-28 17:42:14.999 [31296] main/101/ia.lua recovery.cc:211 W> file `./00000000000000000012.xlog` wasn't correctly…
agent-0007
  • 109
  • 6
0
votes
1 answer

Does Sophia key-value storage support multi-process access?

I can not find any mention of this feature on the official site of Sophia
Pavel Osipov
  • 2,067
  • 1
  • 19
  • 27
0
votes
1 answer

Tarantool 1.6 does not listen ipv4 address

Im using freebsd 10 and trying to set up tarantool 1.6. Installed with pkg and created default example instance: cp /usr/local/etc/tarantool/instances.enabled/example.lua /usr/local/etc/tarantool/instances.enabled/example.lua Now it starts…
Galimov Albert
  • 7,269
  • 1
  • 24
  • 50
1 2 3
14
15