v1.10

Document

How to Start SequoiaDB

Basic Operation

Data Model

Database Management

Aggregation

Index

Replication

Cluster

Connector

Reference

Development

Release Note

FAQ

  • Content
  • Comments
  • History

Deploy a Replica Group

NAME

createNode - Create a node in a replica group.

SYNOPSIS

rg.createNode(< host >,< service >,< dbpath >,[config])

CATEGORY

ReplicaGroup

DESCRIPTION

Create a node in a replica group.

host (string)Specify the host name of the node.service (string)Node port number.dbpath (string)Node path.config (json)Node's configuration information, such as, the size of configuration log, whether enable transaction function or not. For more details, please check DATABASE CONFIGURATION.FormatThe method "rg.createNode()" contains 4 parameters: Host, Service, dbPath, config. The first three parameters in the above list are required and in the type of string, the last one is an optional json object configuration option.

("< host >","< service >","< dbpath >",[{< configparam >:value,...}])

Examples

Create a node with the port of 11800 in a replica group named "group", and specify the size of the log file as 64 MB.

rg.createNode("vmsvr2-suse-x64",11800,"/opt/sequoiadb/data/11800",{logfilesz:64})
Note:

More than one nodes can be created within one replica group.

please login to comment.
Latest Comment
  • 2015-02-14

About Us

SequoiaDB is a financial-level distributed database vendor and is the first Chinese database listed in Gartner’s Magic Quadrant OPDBMS report. SequoiaDB has recently released version 3.0.
SequoiaDB is now penetrating the vertical sector Financial Industry quickly and had more than 50 banking clients and hundreds of enterprise customers in industries including government, telecommunication, Internet and IoT.

Beijing:
Tower R, No.8 North Star East Road, Chaoyang District, Beijing,China
Guangzhou:
Tower A, No.22 Qinglan Street, Panyu District, Guangzhou,China
Shenzhen:
Tsing Hua Tech Park, Nanshan District, Shenzhen,China
Tel:400-8038-339
E-mail:contact@sequoiadb.com