EnglishFrenchSpanish

OnWorks favicon

ttserver - Online in the Cloud

Run ttserver in OnWorks free hosting provider over Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

This is the command ttserver that can be run in the OnWorks free hosting provider using one of our multiple free online workstations such as Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

PROGRAM:

NAME


ttserver - the server of Tokyo Tyrant

DESCRIPTION


The command `ttserver' runs the server managing a database instance. Because the database
is treated by the abstract API of Tokyo Cabinet, you can choose the scheme on start-up of
the server. Supported schema are on-memory hash database, on-memory tree database, hash
database, and B+ tree database. This command is used in the following format. `dbname'
specifies the database name. If it is omitted, on-memory hash database is specified.

ttserver [-host name] [-port num] [-thnum num] [-tout num] [-dmn] [-pid path] [-kl]
[-log path] [-ld|-le] [-ulog path] [-ulim num] [-uas] [-sid num] [-mhost name]
[-mport num] [-rts path] [-rcc] [-skel name] [-mul num] [-ext path] [-extpc name
period] [-mask expr] [-unmask expr] [dbname]

Options feature the following.

-host name : specify the host name or the address of the server. By default, every
network address is bound.
-port num : specify the port number. By default, it is 1978.
-thnum num : specify the number of worker threads. By default, it is 8.
-tout num : specify the timeout of each session in seconds. By default, no timeout
is specified.
-dmn : work as a daemon process.
-pid path : output the process ID into the file.
-kl : kill the existing process if the process ID file is detected.
-log path : output log messages into the file.
-ld : log debug messages also.
-le : log error messages only.
-ulog path : specify the update log directory.
-ulim num : specify the limit size of each update log file.
-uas : use asynchronous I/O for the update log.
-sid num : specify the server ID.
-mhost name : specify the host name of the replication master server.
-mport num : specify the port number of the replication master server.
-rts path : specify the replication time stamp file.
-rcc : check consistency of replication.
-skel name : specify the name of the skeleton database library.
-mul num : specify the division number of the multiple database mechanism.
-ext path : specify the script language extension file.
-extpc name period : specify the function name and the calling period of a periodic
command.
-mask expr : specify the names of forbidden commands.
-unmask expr : specify the names of allowed commands.

To terminate the server normally, send SIGINT or SIGTERM to the process. It is okay to
press Ctrl-C on the controlling terminal. To restart the server, send SIGHUP to the
process. If the port number is not more than 0, UNIX domain socket is used and the path
of the socket file is specified by the host parameter. This command returns 0 on success,
another on failure.

The naming convention of the database is specified by the abstract API of Tokyo Cabinet.
If the name is "*", the database will be an on-memory hash database. If it is "+", the
database will be an on-memory tree database. If its suffix is ".tch", the database will
be a hash database. If its suffix is ".tcb", the database will be a B+ tree database. If
its suffix is ".tcf", the database will be a fixed-length database. If its suffix is
".tct", the database will be a table database. Otherwise, this function fails. Tuning
parameters can trail the name, separated by "#". Each parameter is composed of the name
and the value, separated by "=". On-memory hash database supports "bnum", "capnum", and
"capsiz". On-memory tree database supports "capnum" and "capsiz". Hash database supports
"mode", "bnum", "apow", "fpow", "opts", "rcnum", and "xmsiz". B+ tree database supports
"mode", "lmemb", "nmemb", "bnum", "apow", "fpow", "opts", "lcnum", "ncnum", and "xmsiz".
Fixed-length database supports "mode", "width", and "limsiz". Table database supports
"mode", "bnum", "apow", "fpow", "opts", "rcnum", "lcnum", "ncnum", "xmsiz", and "idx".
The tuning parameter "capnum" specifies the capacity number of records. "capsiz"
specifies the capacity size of using memory. Records spilled the capacity are removed by
the storing order. "mode" can contain "w" of writer, "r" of reader, "c" of creating, "t"
of truncating, "e" of no locking, and "f" of non-blocking lock. The default mode is
relevant to "wc". "opts" can contains "l" of large option, "d" of Deflate option, "b" of
BZIP2 option, and "t" of TCBS option. "idx" specifies the column name of an index and its
type separated by ":". For example, "casket.tch#bnum=1000000#opts=ld" means that the name
of the database file is "casket.tch", and the bucket number is 1000000, and the options
are large and Deflate.

The command mask expression is a list of command names separated by ",". For example,
"out,vanish,copy" means a set of "out", "vanish", and "copy". Commands of the memcached
compatible protocol and the HTTP compatible protocol are also forbidden or allowed,
related by the mask of each original command. Moreover, there are meta expressions.
"all" means all commands. "allorg" means all commands of the original binary protocol.
"allmc" means all commands of the memcached compatible protocol. "allhttp" means all
commands of the HTTP compatible protocol. "allread" is the abbreviation of `get', `mget',
`vsiz', `iterinit', `iternext', `fwmkeys', `rnum', `size', and `stat'. "allwrite" is the
abbreviation of `put', `putkeep', `putcat', `putshl', `putnr', `out', `addint',
`adddouble', `vanish', and `misc'. "allmanage" is the abbreviation of `sync', `optimize',
`copy', `restore', and `setmst'. "repl" means replication as master. "slave" means
replication as slave.

Use ttserver online using onworks.net services


Free Servers & Workstations

Download Windows & Linux apps

  • 1
    Phaser
    Phaser
    Phaser is a fast, free, and fun open
    source HTML5 game framework that offers
    WebGL and Canvas rendering across
    desktop and mobile web browsers. Games
    can be co...
    Download Phaser
  • 2
    VASSAL Engine
    VASSAL Engine
    VASSAL is a game engine for creating
    electronic versions of traditional board
    and card games. It provides support for
    game piece rendering and interaction,
    and...
    Download VASSAL Engine
  • 3
    OpenPDF - Fork of iText
    OpenPDF - Fork of iText
    OpenPDF is a Java library for creating
    and editing PDF files with a LGPL and
    MPL open source license. OpenPDF is the
    LGPL/MPL open source successor of iText,
    a...
    Download OpenPDF - Fork of iText
  • 4
    SAGA GIS
    SAGA GIS
    SAGA - System for Automated
    Geoscientific Analyses - is a Geographic
    Information System (GIS) software with
    immense capabilities for geodata
    processing and ana...
    Download SAGA GIS
  • 5
    Toolbox for Java/JTOpen
    Toolbox for Java/JTOpen
    The IBM Toolbox for Java / JTOpen is a
    library of Java classes supporting the
    client/server and internet programming
    models to a system running OS/400,
    i5/OS, o...
    Download Toolbox for Java/JTOpen
  • 6
    D3.js
    D3.js
    D3.js (or D3 for Data-Driven Documents)
    is a JavaScript library that allows you
    to produce dynamic, interactive data
    visualizations in web browsers. With D3
    you...
    Download D3.js
  • More »

Linux commands

Ad