Loading TOC...

GET /manage/v2/hosts?view=status

Summary

Retrieve status information about the hosts in the cluster.

URL Parameters
format The format of the returned data. Can be either html, json, or xml (default). This value overrides the Accept header if both are present.
group-id Restrict results to the hosts in the specified group. The group can be identified either by id or name.
Request Headers
Accept The expected MIME type of the response. If the format parameter is present, it takes precedence over the Accept header.
Response Headers
Content-type The MIME type of the data in the response body. Depending upon the value of the format parameter or Accept header, one of application/xml, application/json, or text/html.

Response

Upon success, MarkLogic Server returns status code 200 (OK), and the response body contains the requested information.

Required Privileges

This operation requires the manage-user role, or the following privilege:

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

Usage Notes

The structure of the output returned from this REST API is as follows:

meta

Properties of the view rather than the resource.

This is a complex structure with the following children:

uri

The path to the view.

current-time

The timestamp for when the view was generated.

elapsed-time

The time required to construct the view. The elapsed time indicates the relative cost of generating the view. Consider the cost when determining how frequently to request a view.

start-min

The timestamp for filtering out more recent requests or transactions.

view-error

An error limiting the data in the view.

This is a complex structure with the following children:

error-type

The kind of error.

error-name

The name of the error.

error-code

The error identifier.

error-message

The error text.

relations

Relationships to resources.

This is a complex structure with the following children:

relation-group

Related resources with the same type.

This is a complex structure with the following children:

uriref

The path for a resource or list of resources.

typeref

The type of a resource or list of resources.

roleref

A role that distinguishes the resource.

relation-count

The number of related resources.

relation

A specific related resource.

This is a complex structure with the following children:

qualifiers

A list of associated resources that distinguish the resource.

This is a complex structure with the following children:

qualifier

Another resource that qualifies the resource.

This is a complex structure with the following children:

uriref

The path for a resource or list of resources.

typeref

The type of a resource or list of resources.

idref

The numeric identifier for the resource.

nameref

The name of the resource.

uriref

The path for a resource or list of resources.

typeref

The type of a resource or list of resources.

roleref

A role that distinguishes the resource.

idref

The numeric identifier for the resource.

nameref

The name of the resource.

status-list-summary

Status summary for the hosts in the list.

This is a complex structure with the following children:

total-hosts

The total number of hosts.

total-hosts-offline

The total number of hosts offline.

total-cpu-stat-system

Total cpu utilization for system.

total-cpu-stat-user

Total cpu utilization for user.

memory-process-rss

The number of MB of Process Resident Size (RSS) for the MarkLogic process.

memory-size

The amount of space the stand takes in memory.

memory-system-total

The total system memory in MB. MemTotal from /proc/meminfo on Linux, m.ullTotalPhys from GlobalMemoryStatusEx(m) on Windows.

memory-process-huge-pages-size

The size of huge pages for the MarkLogic process in MB. Available on Linux platform. Sum of Sizes after /anon_hugepage in /proc/[MLpid]/smaps

memory-system-free

The free system memory in MB. MemFree from /proc/meminfo on Linux, m.ullAvailPhys from GlobalMemoryStatusEx(m) on Windows.

load-properties

The load properties of the host.

This is a complex structure with the following children:

total-load

The sum of the processing load factors in seconds per second.

load-detail

The detailed load characteristics for the host.

This is a complex structure with the following children:

query-read-load

The moving average of the read load on the query, in seconds per second. This is summed for all of the contributing threads.

journal-write-load

The moving average of the load for writing to the journal, in seconds per second. This is summed for all of the threads writing on the host.

save-write-load

The moving average of the load for writing to in-memory stands, in seconds per second. This is summed for all of the threads writing on the host.

merge-read-load

The moving average of the read load on the merge, in seconds per second. This is summed for all of the contributing threads.

merge-write-load

The moving average of the load for writing for merges, in seconds per second. This is summed for all of the threads writing on the host.

backup-read-load

The moving average of the read load on the backup, in seconds per second. This is summed for all of the contributing threads.

backup-write-load

The moving average of the load for writing for backups, in seconds per second. This is summed for all of the threads writing on the host.

restore-read-load

The moving average of the read load on the backup, in seconds per second. This is summed for all of the contributing threads.

restore-write-load

The moving average of the load for writing for restores, in seconds per second. This is summed for all of the threads writing on the host.

large-read-load

The moving average of the read load on large documents, in seconds per second.

large-write-load

The moving average of the load for writing for large documents, in seconds per second.

external-binary-read-load

The moving average of the read load on external binary documents, in seconds per second.

xdqp-client-receive-load

The moving average of the receive load for the xdqp client, in seconds per second. This is summed for all of the contributing threads.

xdqp-client-send-load

The moving average of the send load for the xdqp client, in seconds per second. This is summed for all of the contributing threads.

xdqp-server-receive-load

The moving average of the receive load for the xdqp server, in seconds per second. This is summed for all of the contributing threads.

xdqp-server-send-load

The moving average of the send load for the xdqp server, in seconds per second. This is summed for all of the contributing threads.

foreign-xdqp-client-receive-load

The moving average of the receive load for the xdqp client, in seconds per second. This is summed for all of the contributing threads.

foreign-xdqp-client-send-load

The moving average of the send load for the xdqp client, in seconds per second. This is summed for all of the contributing threads.

foreign-xdqp-server-receive-load

The moving average of the receive load for the xdqp server, in seconds per second. This is summed for all of the contributing threads.

foreign-xdqp-server-send-load

The moving average of the send load for the xdqp server, in seconds per second. This is summed for all of the contributing threads.

read-lock-wait-load

The read lock wait load, summed across all forests on the host.

read-lock-hold-load

The read lock hold load, summed across all forests on the host.

write-lock-wait-load

The write lock wait load, summed across all forests on the host.

write-lock-hold-load

The write lock hold load, summed across all forests on the host.

deadlock-wait-load

The deadlock wait load, summed across all forests on the host.

rate-properties

The rate properties of the host.

This is a complex structure with the following children:

total-rate

The sum of the processing rate factors in seconds per second.

rate-detail

The detailed rate characteristics for the host.

This is a complex structure with the following children:

memory-process-swap-rate

The swap rate for the MarkLogic process in pages/sec.

memory-system-pagein-rate

The page in rate for the system in pages/sec.

memory-system-pageout-rate

The page out rate for the system in pages/sec.

memory-system-swapin-rate

The swap in rate for the system in pages/sec.

memory-system-swapout-rate

The swap out rate for the system in pages/sec.

query-read-rate

The moving average of reading query data from disk, in megabytes per second.

journal-write-rate

The moving average of writing data to the journal, in megabytes per second.

save-write-rate

The moving average of writing data to in-memory stands, in megabytes per second.

merge-read-rate

The moving average of reading merge data from disk, in megabytes per second.

merge-write-rate

The moving average of writing data for merges, in megabytes per second.

backup-read-rate

The moving average of reading backup data from disk, in megabytes per second.

backup-write-rate

The moving average of writing data for backups, in megabytes per second.

restore-read-rate

The moving average of reading restore data from disk, in megabytes per second.

restore-write-rate

The moving average of writing data for restores, in megabytes per second.

large-read-rate

The moving average of reading large documents from disk, in megabytes per second.

large-write-rate

The moving average of writing data for large documents, in megabytes per second.

external-binary-read-rate

The moving average of reading external binary documents from disk, in megabytes per second.

xdqp-client-receive-rate

The moving average of receiving xdqp client messages, in megabytes per second.

xdqp-client-send-rate

The moving average of sending xdqp client messages, in megabytes per second.

xdqp-server-receive-rate

The moving average of receiving xdqp server messages, in megabytes per second.

xdqp-server-send-rate

The moving average of sending xdqp server messages, in megabytes per second.

foreign-xdqp-client-receive-rate

The moving average of receiving xdqp client messages, in megabytes per second.

foreign-xdqp-client-send-rate

The moving average of sending xdqp client messages, in megabytes per second.

foreign-xdqp-server-receive-rate

The moving average of receiving xdqp server messages, in megabytes per second.

foreign-xdqp-server-send-rate

The moving average of sending xdqp server messages, in megabytes per second.

read-lock-rate

The rate of taking read locks, summed across all forests on the host.

write-lock-rate

The rate of taking write locks, summed across all forests on the host.

deadlock-rate

The rate of taking write locks, summed across all forests on the host.

status-list-items

The hosts reflected in the status summary.

This is a complex structure with the following children:

status-list-item

A host reflected in the status summary.

This is a complex structure with the following children:

uriref

The path for a resource or list of resources.

idref

The numeric identifier for the resource.

nameref

The name of the resource.

related-views

A list of broader or narrower views on the resource or resource type.

This is a complex structure with the following children:

related-view

A broader or narrower view on the resource or resource type.

This is a complex structure with the following children:

view-type

The kind of view.

view-name

The name of the view.

view-uri

The path for the view.

Example


  http://localhost:8002/manage/v2/hosts?view=status

  ==>  Returns a status summary of the hosts in the cluster. 
    

Comments

    Powered by MarkLogic Server 7.0-4.1 and rundmc | Terms of Use | Privacy Policy