
xdmp.databaseQueryBalancerHostStatus( database-id as (Number|String), options as (Number|String)[] ) as Sequence
Returns the host status of query balancer as a Sequence of ObjectNodes.
| Parameters | |
|---|---|
| database-id | One database ID. |
| options | One or more host (E-node) IDs |
http://marklogic.com/xdmp/privileges/status
xdmp.databaseQueryBalancerHostStatus(xdmp.database("db1"), xdmp.host());
=>
{
"eNode": {
"hostId": "14705171783503040404",
"queryCount": 100
},
"databaseId": "2538160671636936568",
"dNodes": [
{
"hostId": "8925271058117389157",
"hostCapacityWeight": 0
},
{
"hostId": "14789482715770712419",
"hostCapacityWeight": 0
},
{
"hostId": "14705171783503040404",
"hostCapacityWeight": 8
}
]
}
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.