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

Reference

  1. Connect to the coord node
    $ /opt/sequoiadb/bin/sdb
    > var db = new Sdb("localhost", 11810) ;
  2. Get cluster status
    > db.listReplicaGroups()
    {
      "Group": [
        {
          "dbpath": "/home/sequoiadb/sequoiadb/cata",
          "HostName": "vmsvr1-rhel-x64",
          "Service": [
            {
              "Type": 0,
              "Name": "11800"
            },
        ...

Users can use the snapshot monitor the status of each node.

  1. Connect to the coord node
    $ /opt/sequoiadb/bin/sdb
    > var db = new Sdb("localhost", 11810) ;
    
  2. > datarg = db.getRG ( "<datagroup1>" ) ;
  3. Get the data node
    > datanode = datarg.getNode ( "<hostname1>", "<servicename1>" ) ;
  4. To obtain a snapshot of the node
    > datanode.connect().snapshot(SDB_SNAP_DATABASE)

    Snapshot type are divided into:

    SDB_SNAP_CONTEXTS

    SDB_SNAP_CONTEXTS_CURRENT

    SDB_SNAP_SESSIONS

    SDB_SNAP_SESSIONS_CURRENT

    SDB_SNAP_COLLECTIONS

    SDB_SNAP_COLLECTIONSPACES

    SDB_SNAP_DATABASE

    SDB_SNAP_SYSTEM

    SDB_SNAP_CATALOG

Users can use the shell script monitoring, for example:
[sequoiadb@vmsvr1-rhel-x64 sequoiadb]$ cat monitor_insert.sh
#!/bin/bash
~/sequoiadb/bin/sdb "db=new Sdb('localhost', 11810)" > /dev/null
~/sequoiadb/bin/sdb "db.getRG('foo').getNode('vmsvr1-rhel-x64',11820).connect().snapshot(SDB_SNAP_DATABASE)" | grep TotalInsert
~/sequoiadb/bin/sdb "quit"
[sequoiadb@vmsvr1-rhel-x64 sequoiadb]$ ./monitor_insert.sh
  "TotalInsert": 0,
please login to comment.
Latest Comment
  • 2015-02-15

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