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

Cartrige instances.yml file

What do these fields mean, and what should I put there for my app? cartridge: cluster_cookie: "" replication_connect_quorum: 1 cartridge.srv-1: workdir: dev/3301 advertise_uri: localhost:3301 http_port: 8081 ------ stripped…
vpol
  • 65
  • 10
0
votes
1 answer

How to remove a field in Tarantool space?

I have field in tarantool space I no longer need. local space = box.schema.space.create('my_space', {if_not_exists = true}) space:format({ {'field_1', 'unsigned'}, {'field_2', 'unsigned'}, {'field_3', 'string'}, }) How to…
0
votes
1 answer

How to make a fault tolerant Tarantool cluster

I have a cluster consisting of a master node and several replicas. I want, if the master or the hosting suddenly falls down, to have the possibility to perform a quick switchover and everything works again, what are the possible ways of making a…
Garcia
  • 41
  • 2
  • 9
0
votes
1 answer

Sending messages to handler function fibers in TCP server

If handler function passed to tcp_server() from socket module runs as fiber is there possibility to communicate with each tcp_connection by fiber.channel?
0
votes
1 answer

delete() from the script and the interpretator gives a different result. Why?

Function from script: function test_delete(val) local result = box.space.upbx_test_redirections.index.name_index:delete(val) return result end I get: "message":"Get() doesn't support partial keys and non-unique indexes". If I call from the…
0
votes
1 answer

overriding configuration on a running tarantool instance

Can anyone tell me in the course, it is possible to override the parameters of individual box.cfg on a running instance. For example, add a replica, for several days I have been trying to deploy three replicas on three hosts via the docker service…
0
votes
1 answer

How transfer a specific secondary key, if I have two of them?

How in alter() transfer a specific secondary key, if I have two secondary key.
0
votes
1 answer

How to return the table with tuples of the SELECT()?

It tarantool-cartridge. Caller function: local function http_redirections(req) log.info("-- redirections started") local b_id = tostring(req) local bucket_id = vshard.router.bucket_id_mpcrc32(b_id) log.info("-- bucket_id: %s",…
0
votes
1 answer

How to remove an index in Tarantool?

I have a space with some indexes and want to delete one of them. I've overlooked the index's delete method in the documentation but get nothing.
0
votes
1 answer

How to make a select via secondary indexes in Tarantool?

I create a space with two indexes — primary and secondary: box.schema.sequence.create('user_seq', { if_not_exists = true }) box.schema.space.create('user', { if_not_exists = true, format = { { name = 'id', type = 'unsigned'}, …
0
votes
2 answers

How to select data in Tarantool?

I have created a space with two indexes: box.schema.sequence.create('user_seq', { if_not_exists = true }) box.schema.create_space('users', { if_not_exists = true, format={ { name = 'id', type = 'unsigned'}, { name = 'name', type = 'string'},…
0
votes
2 answers

How to create a space in Tarantool?

I've started Tarantool and have called box.cfg{} for the first configuring. The next step: I want to create a space in Tarantool. I read the documentation but I didn't quite understand everything. How I should do it?
0
votes
1 answer

How to grant a user to perform only a certain function in Tarantool

Now the challenge is: there are 2 functions. And there is a user who can only execute one of them. The question is how to do it? If you just write: box.schema.user.grant ('user', 'execute', 'function', 'dima', nil, {if_not_exists = true}) then the…
0
votes
1 answer

Tarantool module installation failed searching manifest

I am trying to install tarantool module. Tatrantool run in docker container with image tarantool/tarantool:2.3. /opt/tarantool # tarantoolctl rocks install prometheus Warning: Failed searching manifest: Failed fetching manifest for…
0
votes
0 answers

How to enter to console of tarantool instance in cartridge application?

I have a tarantool application, cartridge based. I try to connect to some instance: tarantoolctl connect localhost:3301 and I get this answer: Execute access to universe '' is denied for user 'guest' I tried to connect with admin user, but it…
vk26
  • 345
  • 3
  • 9