Skip to content

Instantly share code, notes, and snippets.

@ableasdale
Created June 12, 2018 16:04
Show Gist options
  • Save ableasdale/c126bfe9ad9192ec3124ed32a152c9c9 to your computer and use it in GitHub Desktop.
Save ableasdale/c126bfe9ad9192ec3124ed32a152c9c9 to your computer and use it in GitHub Desktop.
MarkLogic: get status of all requests for all application servers in a cluster
xquery version "1.0-ml";
declare namespace ss = "http://marklogic.com/xdmp/status/server";
for $host in xdmp:group-hosts(xdmp:groups())
for $server in xdmp:group-servers(xdmp:groups())
return
xdmp:server-status($host, $server)//ss:request-status
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment