Questions tagged [tarantool-cartridge]

Tarantool Cartridge allows you to easily develop Tarantool-based applications and run them on one or more Tarantool instances organized into a cluster.

Tarantool Cartridge streamlines the entire life cycle of developing applications: design, implementation, testing, CI/CD, maintenance.

Key features:

  • Automated cluster orchestration
  • Custom roles for an enhanced app feature set
  • Cluster app template for easy development and deployment
  • Built-in automated sharding
  • Integration with the Luatest framework
  • WebUI and API for cluster management
  • Tools for packing and deploying the apps
25 questions
0
votes
1 answer

Evolving Tarantool instance

What should we do if we have one tarantool instance (without Cartridge or VShard), then sometimes in the future we need to replicate it to another machine without downtime? or if it's the easiest way is using cartridge, how to connect to tarantool…
Kokizzu
  • 24,974
  • 37
  • 137
  • 233
0
votes
1 answer

Get 1 random record from Tarantool space

I have query with 2 conditions which return 1 record every request 1by1 as inserted in space box.space.extensions.index.secondary:select( {city, 0}, {limit=1} ) Sample: {1} {2} {3} I need to get random record every…
0
votes
1 answer

Q: How to change cluster_cookie in bootstrapped Tarantool Cartridge cluster?

Is there any way to change cluster_cookie in already bootstrapped cluster? Should I just set new cartridge.cfg.cluster_cookie and reboot Tarantool instances or some additional actions are required?
VifleY
  • 1
0
votes
1 answer

How to setup cartridge applications replication between few Tarantool routers?

How to setup cartridge applications replication between few Tarantool routers on different phisical/virtual servers?
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

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",…
-1
votes
1 answer

Adding a new field to each array element in .lua

Please tell me, if there are any errors here and how to make the code more clean. There is a space "company". Inside it's a string "type" and "information" map. Inside this map is a "job" object and an array of "users" objects. The "users" array…
Kirill Sereda
  • 469
  • 1
  • 10
  • 25
-1
votes
1 answer

icu_date gives an error message attempt to index a number value

I want to use the icu_date library, but when I try to insert a value, an error appears icu_date = require("icu-date") format_date = icu_date.formats.iso8601() end_time = icu_date.now() 1602586287098 - print…
denisT
  • 1
  • 2
1
2