MarkLogic 12 Product Documentation
xdmp.databaseQueryBalancerForestStatus

xdmp.databaseQueryBalancerForestStatus(
   database-id as (Number|String),
   options as (Number|String)[]
) as Sequence

Summary

Returns the forest status of query balancer as a Sequence of ObjectNodes.

Parameters
database-id One database ID.
options One or more host (E-node) IDs

Required Privileges

http://marklogic.com/xdmp/privileges/status

Example

xdmp.databaseQueryBalancerForestStatus(xdmp.database("db1"), xdmp.host());
=>
{
  "eNode": {
    "hostId": "14705171783503040404",
    "queryCount": 100
  },
  "databaseId": "2538160671636936568",
  "forests": [
    {
      "forestSet": [
        {
          "forestId": "7339721735579398311",
          "forestName": "forest-1aM-host1",
          "forestLatencyResidual": 0.986140727996826,
          "querySelectionCount": 93
        },
        {
          "forestId": "6051028368999336034",
          "forestName": "forest-1aR-host2",
          "forestLatencyResidual": 1.07758140563965,
          "querySelectionCount": 7
        }
      ]
    },
    {
      "forestSet": [
        {
          "forestId": "6003526074591580332",
          "forestName": "forest-2aM-host2",
          "forestLatencyResidual": 1.15892004966736,
          "querySelectionCount": 52
        },
        {
          "forestId": "4848418299883310539",
          "forestName": "forest-2aR-host3",
          "forestLatencyResidual": 1.16167461872101,
          "querySelectionCount": 48
        }
      ]
    },
    {
      "forestSet": [
        {
          "forestId": "14048064460440151579",
          "forestName": "forest-3aM-host3",
          "forestLatencyResidual": 1.04021370410919,
          "querySelectionCount": 7
        },
        {
          "forestId": "347894727347880342",
          "forestName": "forest-3aR-host1",
          "forestLatencyResidual": 0.979310095310211,
          "querySelectionCount": 93
        }
      ]
    }
  ]
}
Powered by MarkLogic Server | Terms of Use | Privacy Policy