
xdmp:forest-status( $forest-id as xs:unsignedLong*, [$options as xs:string*] ) as element(forest-status)*
Returns the status of a forest.
| Parameters | |
|---|---|
| forest-id | One or more forest IDs. |
| options |
Options include:
|
http://marklogic.com/xdmp/privileges/status
The structure of the data returned is as follows:
forest-idforest-namehost-idstatestate-detailenabledavailabilityencryptionupdates-allowedrebalancer-enablelower-boundupper-boundmaster-forestreplica-forestsThis is a complex element with the following element children:
replica-forestcurrent-master-forestcurrent-master-precise-timecurrent-master-fsncurrent-foreign-master-clustercurrent-foreign-master-databasecurrent-foreign-master-forestcurrent-foreign-master-precise-timecurrent-foreign-master-fsnerrorrebalancer-errordatabase-idlast-state-changenonblocking-timestampmax-query-timestamptimestamp-tableThis is a complex element with the following element children:
timestamp-entryThis is a complex element with the following element children:
timestampcountnuma-nodedata-dirlarge-data-dirfast-data-dirjournals-sizelarge-data-sizeorphaned-binariesstandsThis is a complex element with the following element children:
standThis is a complex element with the following element children:
stand-idpathstand-kindis-fastlabel-versiondisk-sizeencrypted-disk-sizememory-sizememory-summaryThis is a complex element with the following element children:
compressed-tree-storage-byteslist-storage-bytesfrequencies-file-byteslist-file-bytesstop-key-set-file-bytestree-file-byteslink-keys-index-bytesunique-keys-index-bytesuri-keys-index-bytesbinary-keys-file-byteslink-keys-file-bytesordinals-file-bytesqualities-file-bytestime-stamps-file-bytesunique-keys-file-bytesuri-keys-file-byteslengths-file-bytesreverse-index-bytestriple-index-bytesgeospatial-region-indexes-bytesrange-indexes-bytesmemory-detailThis is a complex element with the following element children:
memory-geospatial-regionThis is a complex element with the following element children:
region-storage-bytesslice-storage-bytesfloat-rtree-node-pool-bytesdouble-rtree-node-pool-bytesfloat-geo-hash-atlas-bytesdouble-geo-hash-atlas-bytesmemory-range-indexesThis is a complex element with the following element children:
string-storage-bytesindexThis is a complex element with the following element children:
index-idindex-memory-bytesindex-on-disk-byteslist-cache-hitslist-cache-misseslist-cache-hit-ratelist-cache-miss-ratecompressed-tree-cache-hitscompressed-tree-cache-missescompressed-tree-cache-hit-ratecompressed-tree-cache-miss-ratetriple-cache-hitstriple-cache-missestriple-cache-hit-ratetriple-cache-miss-ratetriple-value-cache-hitstriple-value-cache-missestriple-value-cache-hit-ratetriple-value-cache-miss-ratetriple-index-encoding-versiontriple-values-versiontriple-geohashes-versiontriple-types-versiontriple-value-frequencies-versionforest-reservemerge-enablecurrent-timemergesThis is a complex element with the following element children:
mergeThis is a complex element with the following element children:
merge-idcanceledinput-standsThis is a complex element with the following element children:
stand-idpathoutput-standstart-timefinal-sizecurrent-sizemerge-raterebalancingreindexingdevice-spacelarge-device-spacefast-device-spacelast-backuplast-incr-backupbackupsThis is a complex element with the following element children:
backupThis is a complex element with the following element children:
pathstart-timefinal-sizecurrent-sizeincremental-backupjournal-archivingjournal-archive-pathjournal-archive-lag-limitlast-restorerestoreThis is a complex element with the following element children:
pathstart-timefinal-sizecurrent-sizerestore-staterestore-to-timeincremental-backupjournal-archivingjournal-archive-pathsafe-restore-to-timetransaction-coordinatorsThis is a complex element with the following element children:
transaction-coordinatorThis is a complex element with the following element children:
transaction-iddecision-statexa:xidparticipantsThis is a complex element with the following element children:
participantThis is a complex element with the following element children:
participant-idparticipant-statussizetransaction-participantsThis is a complex element with the following element children:
transaction-participantThis is a complex element with the following element children:
transaction-idcoordinator-idmin-commit-timestampsizetransaction-journal-sizetransaction-journal-limitquery-read-bytesquery-read-timequery-read-ratequery-read-loadjournal-write-bytesjournal-write-timejournal-write-ratejournal-write-loadsave-write-bytessave-write-timesave-write-ratesave-write-loadmerge-read-bytesmerge-read-timemerge-read-ratemerge-read-loadmerge-write-bytesmerge-write-timemerge-write-ratemerge-write-loadbackup-read-bytesbackup-read-timebackup-read-ratebackup-read-loadbackup-write-bytesbackup-write-timebackup-write-ratebackup-write-loadrestore-read-bytesrestore-read-timerestore-read-raterestore-read-loadrestore-write-bytesrestore-write-timerestore-write-raterestore-write-loadlarge-read-byteslarge-read-timelarge-read-ratelarge-read-loadlarge-write-byteslarge-write-timelarge-write-ratelarge-write-loaddatabase-replication-receive-bytesdatabase-replication-receive-timedatabase-replication-receive-ratedatabase-replication-receive-loaddatabase-replication-send-bytesdatabase-replication-send-timedatabase-replication-send-ratedatabase-replication-send-loadread-lock-countread-lock-wait-timeread-lock-hold-timeread-lock-rateread-lock-wait-loadread-lock-hold-loadwrite-lock-countwrite-lock-wait-timewrite-lock-hold-timewrite-lock-ratewrite-lock-wait-loadwrite-lock-hold-loaddeadlock-countdeadlock-wait-timedeadlock-ratedeadlock-wait-loadlarge-binary-cache-hitslarge-binary-cache-misseslarge-binary-cache-hit-ratelarge-binary-cache-miss-ratereplicationThis is a complex element with the following element children:
foreign-masterThis is a complex element with the following element children:
foreign-cluster-idforeign-database-idforeign-forest-idforeign-precise-timeforeign-fsnforeign-replicasThis is a complex element with the following element children:
foreign-replicaThis is a complex element with the following element children:
foreign-cluster-idforeign-database-idforeign-forest-idreplication-enabledlag-limitpending-framespending-bytespending-lagsend-bytessend-timesend-ratesend-loadsuspendedpoint-in-time-recoveryThis is a complex element with the following element children:
journal-archiveThis is a complex element with the following element children:
pathlag-limitpending-framespending-bytespending-lagunclosed-standsThis is a complex element with the following element children:
unclosed-standThis is a complex element with the following element children:
stand-idpathdisk-sizememory-sizereferenceThis is a complex element with the following element children:
countearliestlatestframeforest-value-rangeThis is a complex element with the following element children:
cts:base-referencects:rangefragment-countdata-sizexdmp:forest-status(xdmp:forest("Documents")) => <forest-status xmlns="http://marklogic.com/xdmp/status/forest"> <forest-id>12434840716430044697</forest-id> <forest-name>Documents</forest-name> <state>open</state> <host-id>13264574555735898770</host-id> <database-id>2634450243966805432</database-id> <last-state-change>2007-02-16T18:39:31.267-08:00</last-state-change> <journals-size>57</journals-size> <stands> <stand> <stand-id>15174447282968484759</stand-id> <path>c:\Program Files\MarkLogic\Data\Forests\Documents\00000016</path> <stand-kind>Active</stand-kind> <label-version>50397184</label-version> <disk-size>11</disk-size> <memory-size>1</memory-size> <list-cache-hits>158</list-cache-hits> <list-cache-misses>105</list-cache-misses> <list-cache-hit-rate>0</list-cache-hit-rate> <list-cache-miss-rate>0</list-cache-miss-rate> <compressed-tree-cache-hits>0</compressed-tree-cache-hits> <compressed-tree-cache-misses>0</compressed-tree-cache-misses> <compressed-tree-cache-hit-rate>0</compressed-tree-cache-hit-rate> <compressed-tree-cache-miss-rate>0</compressed-tree-cache-miss-rate> <triple-index-encoding-version>4</triple-index-encoding-version> <triple-values-version>2</triple-values-version> <triple-geohashes-version>0</triple-geohashes-version> <triple-types-version>0</triple-types-version> <triple-value-frequencies-version>0</triple-value-frequencies-version> </stand> </stands> <current-time>2007-02-16T18:44:06.154-08:00</current-time> <merges/> <reindexing>false</reindexing> <device-space>3592</device-space> <backups/> <transaction-coordinators/> <transaction-participants/> </forest-status>
xquery version "1.0-ml"; xdmp:forest-status(xdmp:forest("forestTest"),"memory-detail"); => <forest-status xmlns="http://marklogic.com/xdmp/status/forest"> ... <stand> <stand-id>4644002137027109170</stand-id> <path>/var/opt/MarkLogic/Forests/memory-F1/00000003</path> ... <disk-size>250</disk-size> <encrypted-disk-size>0</encrypted-disk-size> <memory-size>34</memory-size> <memory-summary> <ordinals-file-bytes>2359224</ordinals-file-bytes> <qualities-file-bytes>1179612</qualities-file-bytes> <link-keys-file-bytes>2359224</link-keys-file-bytes> <unique-keys-file-bytes>2359224</unique-keys-file-bytes> <uri-keys-file-bytes>2359224</uri-keys-file-bytes> <time-stamps-file-bytes>4718448</time-stamps-file-bytes> <binary-keys-file-bytes>0</binary-keys-file-bytes> ... <triple-index-bytes>0</triple-index-bytes> <reverse-index-bytes>0</reverse-index-bytes> <geospatial-region-indexes-bytes>1622387</geospatial-region-indexes-bytes> <range-indexes-bytes>2038704</range-indexes-bytes> </memory-summary> <memory-detail> <memory-geospatial> <region-storage-bytes>701736</region-storage-bytes> <slice-storage-bytes>724515</slice-storage-bytes> <float-rtree-node-pool-bytes>121648</float-rtree-node-pool-bytes> <double-rtree-node-pool-bytes>74232</double-rtree-node-pool-bytes> <float-geo-hash-atlas-bytes>256</float-geo-hash-atlas-bytes> <double-geo-hash-atlas-bytes>0</double-geo-hash-atlas-bytes> </memory-geospatial> <memory-range-indexes> <string-storage-bytes>1776688</string-storage-bytes> <index> <index-id>203550306667454968</index-id> <index-memory-bytes>40408</index-memory-bytes> </index> <index> <index-id>203550306590025653</index-id> <index-memory-bytes>4408</index-memory-bytes> </index> <index> <index-id>203550306744884283</index-id> <index-memory-bytes>216232</index-memory-bytes> </index> <index> <index-id>8082969983947382622</index-id> <index-memory-bytes>88</index-memory-bytes> </index> ... </memory-range-indexes> </memory-detail> <list-cache-hits>3</list-cache-hits> <list-cache-misses>55</list-cache-misses> <list-cache-hit-rate>0.001811947</list-cache-hit-rate> <list-cache-miss-rate>0.003912835</list-cache-miss-rate> ... <triple-value-cache-hit-rate>0</triple-value-cache-hit-rate> <triple-value-cache-miss-rate>0</triple-value-cache-miss-rate> <triple-index-encoding-version>4</triple-index-encoding-version> <triple-values-version>2</triple-values-version> <triple-geohashes-version>0</triple-geohashes-version> <triple-types-version>0</triple-types-version> <triple-value-frequencies-version>0</triple-value-frequencies-version> </stand> ... </forest-status>
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.