Skip to content

tt daemon #10

Closed
Closed
@unera

Description

@unera

The module is used to start (not use) supervisor daemon.

  • tt tvisord [supervisors options]

Config options:

# tarantool.yaml
tvisord:
   port: 3201   # default value
   tls:  # optional
      cert: path/to
      key: path/to
   pid: path/to/tvisord.pid
   log:
      type: file # disabled, syslog
      dir: path/to/logdir

Options:

  • --port - listen port
  • --tls{-cert,-key} - TLS options

How to work:

  1. It runs HTTP[S] server that listens tvisord.port
  2. Provide easy protocol

Request:

POST /tt/etc/tarantool HTTP/1.0
Content-Type: application/json

{
    "module": "version",
    "root": "/etc/tarantool",
    "args": [],
    "opts": { "short": true }
}

Response:

200 Ok
Content-Type: application/json

{
   "status": "ok",
   "version": "2.3.4.5"
}
  1. The server runs tt module (using ENV=TVISORD=yaml). Parse its output and response.

Authorisation and authentication

TODO: To auth, the server uses tt tvisorauth
Update: see #23

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions