Tokyo Tyrant (Ttserver) Series: Startup parameters and Configuration

Source: Internet
Author: User
Tags continue hash time interval port number

Introduction to Startup Parameters

Continue with the Tokyo Tyrant (ttserver) Series-Introduction and installation, we continue to look at the startup parameters and configuration.

The Ttserver command can start a database instance. Because the database has implemented the abstract API for Tokyo cabinet, you can specify the configuration type of the database at startup.

The supported database types are:

Memory Hash Database

Memory Tree Database

Hash database

B + Tree Database,

The command is used in the following format, ' dbname ' makes the database name and, if omitted, is considered a memory hash database.

Ttserver [-host name] [-port num] [-thnum num] [-tout num] [-DMN] [-pid path] [-log path] [-ld|-le] [-ulog path] [-ulim n UM] [-UAS] [-sidnum] [-mhost name] [-mport num] [-rts path] [-ext path] [-extpc name period] [-mask expr] [dbname]

The following are the functions of these parameters:

-host name

: Indicates the hostname or IP address of the server. All addresses of the default server are bound. For example: Specifies the IP such as 127.0.0.1, only can be accessed locally.

-port num

: Specifies the port on which the service starts. Default 1978. If you want to start multiple database instances, the port needs to be different.

-thnum num

: Specifies the number of threads that the service works on. Default 8.

-tout num

: Specifies the time-out period for each session. The default never times out.

-dmn

: Run as a daemon.

-pid path

: Outputs the process IP to the specified file.

-log path

: Output log information to the specified file.

-ld

: Debug information is logged in the log.

-le

: only error messages are logged in the log.

-ulog path

: Specifies the directory where the update log is stored. Can be used to back up the recovery database, synchronization between the master and the library.

-ulim num

: Specifies the size limit for each update log file.

-uas

: Update logs with asynchronous IO records. (Use this to reduce the IO overhead of writing to the log, but data may be lost when the server shuts down unexpectedly and the process is killed.) According to experience, generally can not use).

-sid num

: Specifies the ID number of the service. Master-slave replication is identified by different ID numbers.

-mhost name

: Specifies the IP or domain name of the primary server in master-slave replication mode.

-mport num

: Specifies the port number of the primary server in master-slave mode.

-rts path

: Specifies a timestamp file for master-slave replication.

-ext path

: Specifies the extended scripting language file.

-extpc name period

: Specifies the name of the function and the time interval that is called by the cycle.

-mask expr

: Specifies the prohibited command name (for example, you can disable the use of empty vanish).

-unmask expr

: Specifies the allowed command name.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.