SequoiaDB巨杉数据库_SequoiaDB
SequoiaDB巨杉数据库_下载

文档

安装

基本操作

数据模型

系统架构

数据库管理

连接器

驱动

参考手册

版本信息

帮助

  • 内容
  • 评论
  • 修订记录

监控集群

1.连接到协调节点

$ /opt/sequoiadb/bin/sdb
> var db = new Sdb("localhost", 11810) ;

2.得到集群状态

> db.listReplicaGroups()
{
  "Group": [
    {
      "dbpath": "/opt/sequoiadb/database/cata/11800",
      "HostName": "vmsvr1",
      "Service": [
        {
          "Type": 0,
          "Name": "11800"
        },
        {
          "Type": 1,
          "Name": "11801"
        },
        {
          "Type": 2,
          "Name": "11802"
        },
        {
          "Type": 3,
          "Name": "11803"
        }
      ],
      "NodeID": 1
    },
    {
      "HostName": "vmsvr2",
      "dbpath": "/opt/sequoiadb/database/cata/11800",
      "Service": [
        {
          "Type": 0,
          "Name": "11800"
        },
        {
          "Type": 1,
          "Name": "11801"
        },
        {
          "Type": 2,
          "Name": "11802"
        },
        {
          "Type": 3,
          "Name": "11803"
        }
      ],
      "NodeID": 2
    },
    {
      "HostName": "vmsvr3",
      "dbpath": "/opt/sequoiadb/database/cata/11800",
      "Service": [
        {
          "Type": 0,
          "Name": "11800"
        },
        {
          "Type": 1,
          "Name": "11801"
        },
        {
          "Type": 2,
          "Name": "11802"
        },
        {
          "Type": 3,
          "Name": "11803"
        }
      ],
      "NodeID": 3
    }
  ],
  "GroupID": 1,
  "GroupName": "SYSCatalogGroup",
  "PrimaryNode": 1,
  "Role": 2,
  "Status": 1,
  "Version": 3,
  "_id": {
    "$oid": "558b9264de349a1b87451a1d"
  }
}
{
  "Group": [
    {
      "HostName": "vmsvr1",
      "dbpath": "/opt/sequoiadb/database/data/21100",
      "Service": [
        {
          "Type": 0,
          "Name": "21100"
        },
        {
          "Type": 1,
          "Name": "21101"
        },
        {
          "Type": 2,
          "Name": "21102"
        }
      ],
      "NodeID": 1000
    },
    {
      "HostName": "vmsvr2",
      "dbpath": "/opt/sequoiadb/database/data/21100",
      "Service": [
        {
          "Type": 0,
          "Name": "21100"
        },
        {
          "Type": 1,
          "Name": "21101"
        },
        {
          "Type": 2,
          "Name": "21102"
        }
      ],
      "NodeID": 1001
    },
    {
      "HostName": "vmsvr3",
      "dbpath": "/opt/sequoiadb/database/data/21100",
      "Service": [
        {
          "Type": 0,
          "Name": "21100"
        },
        {
          "Type": 1,
          "Name": "21101"
        },
        {
          "Type": 2,
          "Name": "21102"
        }
      ],
      "NodeID": 1002
    }
  ],
  "GroupID": 1000,
  "GroupName": "group1",
  "PrimaryNode": 1001,
  "Role": 0,
  "Status": 1,
  "Version": 4,
  "_id": {
    "$oid": "558b9295de349a1b87451a21"
  }
}
{
  "Group": [
    {
      "HostName": "vmsvr3",
      "dbpath": "/opt/sequoiadb/database/data/22100",
      "Service": [
        {
          "Type": 0,
          "Name": "22100"
        },
        {
          "Type": 1,
          "Name": "22101"
        },
        {
          "Type": 2,
          "Name": "22102"
        }
      ],
      "NodeID": 1003
    },
    {
      "HostName": "vmsvr1",
      "dbpath": "/opt/sequoiadb/database/data/22100",
      "Service": [
        {
          "Type": 0,
          "Name": "22100"
        },
        {
          "Type": 1,
          "Name": "22101"
        },
        {
          "Type": 2,
          "Name": "22102"
        }
      ],
      "NodeID": 1004
    },
    {
      "HostName": "vmsvr2",
      "dbpath": "/opt/sequoiadb/database/data/22100",
      "Service": [
        {
          "Type": 0,
          "Name": "22100"
        },
        {
          "Type": 1,
          "Name": "22101"
        },
        {
          "Type": 2,
          "Name": "22102"
        }
      ],
      "NodeID": 1005
    }
  ],
  "GroupID": 1001,
  "GroupName": "group2",
  "PrimaryNode": 1004,
  "Role": 0,
  "Status": 1,
  "Version": 4,
  "_id": {
    "$oid": "558b92b3de349a1b87451a22"
  }
}
Return 3 row(s).
Takes 0.12157s.
请登陆后再发表评论
最新评论
更新日志
  • 2016-10-11

回到顶部
公司简介
广州巨杉软件开发有限公司(SequoiaDB巨杉数据库),专注新一代大数据基础架构研发,是国内领先的新一代分布式数据库厂商。公司获评硅谷最具影响力创新商业媒体《红鲱鱼》评选的“全球创新企业100强”,并连续两年入选美国知名科技媒体《快公司》评选的“中国50大创新公司”榜单。目前已拥有客户包括多家世界500强企业以及著名IT互联网公司。
官方微信

官方微信

SequoiaDB

商务与技术支持

sales_support@sequoiadb.com

联系邮箱

contact@sequoiadb.com

400-8038-339

粤ICP备16118040号     广州巨杉软件开发有限公司(巨杉数据库) 版权所有