
xdmp.forestStatus( forest-id as (Number|String)[], [options as String[]] ) as Sequence
Returns the status of a forest as a Sequence of ObjectNodes.
| 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:
forestIdforestNamehostIdstatestateDetailenabledavailabilityencryptionupdatesAllowedrebalancerEnablelowerBoundupperBoundmasterForestreplicaForestsThis is an object with the following properties:
replicaForestcurrentMasterForestcurrentMasterPreciseTimecurrentMasterFsncurrentForeignMasterClustercurrentForeignMasterDatabasecurrentForeignMasterForestcurrentForeignMasterPreciseTimecurrentForeignMasterFsnerrorrebalancerErrordatabaseIdlastStateChangenonblockingTimestampmaxQueryTimestamptimestampTableThis is an object with the following properties:
timestampEntryThis is an object with the following properties:
timestampcountnumaNodedataDirlargeDataDirfastDataDirjournalsSizelargeDataSizeorphanedBinariesstandsThis is an object with the following properties:
standThis is an object with the following properties:
standIdpathstandKindisFastlabelVersiondiskSizeencryptedDiskSizememorySizememorySummaryThis is an object with the following properties:
compressedTreeStorageByteslistStorageBytesfrequenciesFileByteslistFileBytesstopKeySetFileBytestreeFileByteslinkKeysIndexBytesuniqueKeysIndexBytesuriKeysIndexBytesbinaryKeysFileByteslinkKeysFileBytesordinalsFileBytesqualitiesFileBytestimeStampsFileBytesuniqueKeysFileBytesuriKeysFileByteslengthsFileBytesreverseIndexBytestripleIndexBytesgeospatialRegionIndexesBytesrangeIndexesBytesmemoryDetailThis is an object with the following properties:
memoryGeospatialRegionThis is an object with the following properties:
regionStorageBytessliceStorageBytesfloatRtreeNodePoolBytesdoubleRtreeNodePoolBytesfloatGeoHashAtlasBytesdoubleGeoHashAtlasBytesmemoryRangeIndexesThis is an object with the following properties:
stringStorageBytesindexThis is an object with the following properties:
indexIdindexMemoryBytesindexOnDiskByteslistCacheHitslistCacheMisseslistCacheHitRatelistCacheMissRatecompressedTreeCacheHitscompressedTreeCacheMissescompressedTreeCacheHitRatecompressedTreeCacheMissRatetripleCacheHitstripleCacheMissestripleCacheHitRatetripleCacheMissRatetripleValueCacheHitstripleValueCacheMissestripleValueCacheHitRatetripleValueCacheMissRatetripleIndexEncodingVersiontripleValuesVersiontripleGeohashesVersiontripleTypesVersiontripleValueFrequenciesVersionforestReservemergeEnablecurrentTimemergesThis is an object with the following properties:
mergeThis is an object with the following properties:
mergeIdcanceledinputStandsThis is an object with the following properties:
standIdpathoutputStandstartTimefinalSizecurrentSizemergeRaterebalancingreindexingdeviceSpacelargeDeviceSpacefastDeviceSpacelastBackuplastIncrBackupbackupsThis is an object with the following properties:
backupThis is an object with the following properties:
pathstartTimefinalSizecurrentSizeincrementalBackupjournalArchivingjournalArchivePathjournalArchiveLagLimitlastRestorerestoreThis is an object with the following properties:
pathstartTimefinalSizecurrentSizerestoreStaterestoreToTimeincrementalBackupjournalArchivingjournalArchivePathsafeRestoreToTimetransactionCoordinatorsThis is an object with the following properties:
transactionCoordinatorThis is an object with the following properties:
transactionIddecisionStatexa.xidparticipantsThis is an object with the following properties:
participantThis is an object with the following properties:
participantIdparticipantStatussizetransactionParticipantsThis is an object with the following properties:
transactionParticipantThis is an object with the following properties:
transactionIdcoordinatorIdminCommitTimestampsizetransactionJournalSizetransactionJournalLimitqueryReadBytesqueryReadTimequeryReadRatequeryReadLoadjournalWriteBytesjournalWriteTimejournalWriteRatejournalWriteLoadsaveWriteBytessaveWriteTimesaveWriteRatesaveWriteLoadmergeReadBytesmergeReadTimemergeReadRatemergeReadLoadmergeWriteBytesmergeWriteTimemergeWriteRatemergeWriteLoadbackupReadBytesbackupReadTimebackupReadRatebackupReadLoadbackupWriteBytesbackupWriteTimebackupWriteRatebackupWriteLoadrestoreReadBytesrestoreReadTimerestoreReadRaterestoreReadLoadrestoreWriteBytesrestoreWriteTimerestoreWriteRaterestoreWriteLoadlargeReadByteslargeReadTimelargeReadRatelargeReadLoadlargeWriteByteslargeWriteTimelargeWriteRatelargeWriteLoaddatabaseReplicationReceiveBytesdatabaseReplicationReceiveTimedatabaseReplicationReceiveRatedatabaseReplicationReceiveLoaddatabaseReplicationSendBytesdatabaseReplicationSendTimedatabaseReplicationSendRatedatabaseReplicationSendLoadreadLockCountreadLockWaitTimereadLockHoldTimereadLockRatereadLockWaitLoadreadLockHoldLoadwriteLockCountwriteLockWaitTimewriteLockHoldTimewriteLockRatewriteLockWaitLoadwriteLockHoldLoaddeadlockCountdeadlockWaitTimedeadlockRatedeadlockWaitLoadlargeBinaryCacheHitslargeBinaryCacheMisseslargeBinaryCacheHitRatelargeBinaryCacheMissRatereplicationThis is an object with the following properties:
foreignMasterThis is an object with the following properties:
foreignClusterIdforeignDatabaseIdforeignForestIdforeignPreciseTimeforeignFsnforeignReplicasThis is an object with the following properties:
foreignReplicaThis is an object with the following properties:
foreignClusterIdforeignDatabaseIdforeignForestIdreplicationEnabledlagLimitpendingFramespendingBytespendingLagsendBytessendTimesendRatesendLoadsuspendedpointInTimeRecoveryThis is an object with the following properties:
journalArchiveThis is an object with the following properties:
pathlagLimitpendingFramespendingBytespendingLagunclosedStandsThis is an object with the following properties:
unclosedStandThis is an object with the following properties:
standIdpathdiskSizememorySizereferenceThis is an object with the following properties:
countearliestlatestframeforestValueRangeThis is an object with the following properties:
cts.baseReferencects.rangefragmentCountdataSize
xdmp.forestStatus(
xdmp.databaseForests(
xdmp.database("Documents")));
=>
{
"forestId":"3199975194245760821",
"forestName":"Documents",
"hostId":"16691872130013704340",
"state":"open",
"enabled":true,
"availability":"online",
"updatesAllowed":"all",
"rebalancerEnable":true,
"lowerBound":"1",
"upperBound":"100",
"masterForest":"3199975194245760821",
"replicaForests":[
],
"currentMasterForest":"3199975194245760821",
"currentMasterPreciseTime":"2014-11-24T16:58:05.766563-08:00",
"currentMasterFsn":144,
"databaseId":"1137197755037514772",
"lastStateChange":"2014-11-25T18:13:16.300032-08:00",
"nonblockingTimestamp":"14169680666077180",
"dataDir":"/space/trunk-xdmp/src/Data",
"journalsSize":0,
"largeDataSize":0,
"orphanedBinaries":0,
"stands":[
{
"standId":"6976269206355638804",
"path":"/space/trunk-xdmp/src/Data/Forests/Documents/00000002",
"standKind":"Active",
"isFast":false,
"labelVersion":50397184,
"diskSize":0,
"memorySize":1,
"listCacheHits":122,
"listCacheMisses":308,
"listCacheHitRate":0.0244068801403046,
"listCacheMissRate":0.0506149381399155,
"compressedTreeCacheHits":0,
"compressedTreeCacheMisses":0,
"compressedTreeCacheHitRate":0,
"compressedTreeCacheMissRate":0,
"tripleCacheHits":0,
"tripleCacheMisses":0,
"tripleCacheHitRate":0,
"tripleCacheMissRate":0,
"tripleValueCacheHits":0,
"tripleValueCacheMisses":0,
"tripleValueCacheHitRate":0,
"tripleValueCacheMissRate":0
"tripleIndexEncodingVersion": 4,
"tripleValuesVersion": 2,
"tripleGeohashesVersion": 0,
"tripleTypesVersion": 0,
"tripleValueFrequenciesVersion": 0
}
],
"forestReserve":0,
"currentTime":"2014-11-25T18:14:53.211604-08:00",
"merges":[
],
"rebalancing":false,
"reindexing":false,
"deviceSpace":223489,
"backups":[
],
"transactionCoordinators":[
],
"transactionParticipants":[
],
"transactionJournalSize":0,
"transactionJournalLimit":134152192,
"queryReadBytes":17360,
"queryReadTime":"PT0.000046S",
"queryReadRate":0,
"queryReadLoad":0,
"journalWriteBytes":0,
"journalWriteTime":"PT0S",
"journalWriteRate":0,
"journalWriteLoad":0,
"saveWriteBytes":0,
"saveWriteTime":"PT0S",
"saveWriteRate":0,
"saveWriteLoad":0,
"mergeReadBytes":0,
"mergeReadTime":"PT0S",
"mergeReadRate":0,
"mergeReadLoad":0,
"mergeWriteBytes":0,
"mergeWriteTime":"PT0S",
"mergeWriteRate":0,
"mergeWriteLoad":0,
"backupReadBytes":0,
"backupReadTime":"PT0S",
"backupReadRate":0,
"backupReadLoad":0,
"backupWriteBytes":0,
"backupWriteTime":"PT0S",
"backupWriteRate":0,
"backupWriteLoad":0,
"restoreReadBytes":0,
"restoreReadTime":"PT0S",
"restoreReadRate":0,
"restoreReadLoad":0,
"restoreWriteBytes":0,
"restoreWriteTime":"PT0S",
"restoreWriteRate":0,
"restoreWriteLoad":0,
"largeReadBytes":0,
"largeReadTime":"PT0S",
"largeReadRate":0,
"largeReadLoad":0,
"largeWriteBytes":0,
"largeWriteTime":"PT0S",
"largeWriteRate":0,
"largeWriteLoad":0,
"databaseReplicationReceiveBytes":0,
"databaseReplicationReceiveTime":"PT0S",
"databaseReplicationReceiveRate":0,
"databaseReplicationReceiveLoad":0,
"databaseReplicationSendBytes":0,
"databaseReplicationSendTime":"PT0S",
"databaseReplicationSendRate":0,
"databaseReplicationSendLoad":0,
"readLockCount":0,
"readLockWaitTime":"PT0S",
"readLockHoldTime":"PT0S",
"readLockRate":0,
"readLockWaitLoad":0,
"readLockHoldLoad":0,
"writeLockCount":0,
"writeLockWaitTime":"PT0S",
"writeLockHoldTime":"PT0S",
"writeLockRate":0,
"writeLockWaitLoad":0,
"writeLockHoldLoad":0,
"deadlockCount":0,
"deadlockWaitTime":"PT0S",
"deadlockRate":0,
"deadlockWaitLoad":0,
"largeBinaryCacheHits":0,
"largeBinaryCacheMisses":0,
"largeBinaryCacheHitRate":0,
"largeBinaryCacheMissRate":0
"externalKMSRequestTime": 0,
"externalKMSRequestRate": 0,
"currentExternalKMSHost": "safenet150v-3.marklogic.com"
}
//----------------
{
"forestId":"9838038749549278946",
"forestName":"forest1",
"hostId":"16691872130013704340",
"state":"unmounted",
"enabled":true,
"availability":"offline",
"databaseId":"1137197755037514772",
"fragmentCount":99,
"dataSize":15,
"forestValueRange":{
"elementReference":{
"namespaceURI":"",
"localname":"longfield",
"scalarType":"long",
"nullable":true
}
},
"range":{
"minimum":{
"type":"long",
"value":"1"
},
"maximum":{
"type":"long",
"value":"99"
},
"lowerBound":{
"type":"long",
"value":"1"
},
"upperBound":{
"type":"long",
"value":"100"
}
}
}
xdmp.forestStatus((xdmp.forest("test01")),("memorySummary"));
=>
{
"forestId": "9661955269470222725",
"forestName": "test01",
"hostId": "2757765848124305372",
...
"stands": [
{
"standId": "11638115280016928621",
"path": "/space/xdmp101/src/Data/Forests/test01/00000003",
...
"memorySize": 1,
"memorySummary": {
"frequenciesFileBytes": 1952,
"listFileBytes": 304,
"stopKeySetFileBytes": 0,
"treeFileBytes": 128,
"linkKeyIndexBytes": 0,
"uniqueKeyIndexBytes": 12296,
"uriKeyIndexBytes": 12296,
"binaryKeysFileBytes": 0,
"linkKeysFileBytes": 320,
"ordinalsFileBytes": 320,
"qualitiesFileBytes": 160,
"timestampsFileBytes": 640,
"uniqKeysFileBytes": 320,
"uriKeysFileBytes": 320,
"reverseIndexBytes": 0,
"tripleIndexBytes": 56,
"geoSpatialRegionIndexesBytes": 0,
"rangeIndexesBytes": 2797
}
,
"listCacheHits": 578,
"listCacheMisses": 456,
...
"tripleIndexEncodingVersion": 4,
"tripleValuesVersion": 2,
"tripleGeohashesVersion": 0,
"tripleTypesVersion": 0,
"tripleValueFrequenciesVersion": 0
}
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.