grammar
rg.getDetail()
Get current partition group information.
return value
Returns the detailed information of the current partition group, the type is a json object.
error
Example
Get the detailed information of the group1 partition group, which has 3 nodes
var rg = db.getRG("group1")
rg.getDetail()
{
"Group": [
{
"HostName": "hostname1",
"Status": 1,
"dbpath": "/opt/sequoiadb/database/data/11830/",
"Service": [
{
"Type": 0,
"Name": "11830"
},
{
"Type": 1,
"Name": "11831"
},
{
"Type": 2,
"Name": "11832"
}
],
"NodeID": 1002
},
{
"HostName": "hostname2",
"Status": 1,
"dbpath": "/opt/sequoiadb/database/data/11840/",
"Service": [
{
"Type": 0,
"Name": "11840"
},
{
"Type": 1,
"Name": "11841"
},
{
"Type": 2,
"Name": "11842"
}
],
"NodeID": 1004
},
{
"HostName": "hostname3",
"Status": 1,
"dbpath": "/opt/sequoiadb/database/data/11850/",
"Service": [
{
"Type": 0,
"Name": "11850"
},
{
"Type": 1,
"Name": "11851"
},
{
"Type": 2,
"Name": "11852"
}
],
"NodeID": 1006
}
],
"GroupID": 1002,
"GroupName": "group1",
"PrimaryNode": 1004,
"Role": 0,
"Status": 1,
"Version": 7,
"_id": {
"$oid": "580043577e70618777a2cf39"
}
}
Click on Jushan Database Documentation Center for more information