Tuesday 18 January 2011

MarkLogic: Extracting useful information from a server/cluster support dump

Hopefully this will be a useful tip. In a situation where you need to extract information from a support dump, here are some examples involving loading the entire support dump as a sequence of document-node() elements and then pulling information out of them:

Here's an example for extracting information regarding specific forests:

Another example - a report for all forests (with a given name prefix) and their host node:

And another example: To give a total in-memory usage for all range indexes on a per-forest basis for the entire cluster (organised by host-id):