
xdmp.setRequestLimits( request-limits-map as Object, [hostID as (Number|String)?], [serverID as (Number|String)?], [requestID as (Number|String)?] ) as null
Changes multiple meter limits (
elapsedTime/lockCount/readSize) for an actively
running request to the specified value. If you do not supply values for the
last three parameters, the function sets multiple meter limits for the current
request.
| Parameters | |
|---|---|
| request-limits-map | Meter limits map. |
| hostID |
The ID of the host on which the request is running. Typically, you get the
ID of a host by executing code similar to:
|
| serverID |
The ID of the App Server in which the request is running.Typically, you
get the ID of an App Server by executing code similar to:
|
| requestID |
The ID of the request. You can access the request IDs in the
request elements of the
xdmp.serverStatus
output. You get the request ID by executing code similar to:
|
http://marklogic.com/xdmp/privileges/xdmp-set-request-limits-any
or
http://marklogic.com/xdmp/privileges/xdmp-set-request-limits-my
xdmp.setRequestLimits(
{ "elapsedTime" : 1,
"lockCount": 100,
"readSize": 10000})
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.