Skip to content

tnt-qube/qube

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Qube

API layer over Tarantool Queue via HTTP

Installation

  1. Install Tarantool or brew install tarantool
  2. Install Queue or tarantoolctl rocks install queue
  3. Install HTTP or tarantoolctl rocks install http
  4. git clone https://github.com/tnt-qube/qube
  5. Edit config:
-- config.lua

-- TNT configuration
Config.tarantool = {
  access = {
    user     = 'qube',
    password = '77c04ced3f915240d0c5d8d5819f84c7',
  },
  node = {
    pid_file          = '/var/run/qube.pid',
    memtx_memory      = 1024 * 1024 * 1024 * 1,
    memtx_dir         = './',
    wal_dir           = './',
    background        = false,
    custom_proc_title = 'qube',
  }
}

-- HTTP Server
Config.http = {
  root         = '/api/v1',
  host         = '127.0.0.1',
  port         = '5672',
  token        = '77c04ced3f915240d0c5d8d5819f84c7',
  log_requests = true,
  log_errors   = true
}

-- Shipper
Config.shipper = {
  enable      = true,
  user_agent  = 'QubeShipper',
  token       = '77c04ced3f915240d0c5d8d5819f84c7',
  webhook_url = 'http://localhost:3000/_jobs',
  delay       = 0
}
  1. Run server tarantool init.lua