MarkLogic Server 11.0 Product Documentation
xdmp.setRequestLimit

xdmp.setRequestLimit(
   meter-name as String,
   limit as (Number|String),
   [hostID as (Number|String)?],
   [serverID as (Number|String)?],
   [requestID as (Number|String)?]
) as null

Summary

Changes the meter limit ( 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 the meter limit for the current request.

Parameters
meter-name The name of the meter limit to change. Current supported limits for this parameter are: lock-count, read-size and elapsed-time.
limit The desired meter limit value.
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:
    xdmp.host("myhost")
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:
    xdmp.server("myAppServer")
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:
    xdmp.toJSON(xdmp.serverStatus( xdmp.host("myHost"),
                       xdmp.server("myAppServer"))).xpath("//requestId")
    

Required Privileges

http://marklogic.com/xdmp/privileges/xdmp-set-request-limit-any or http://marklogic.com/xdmp/privileges/xdmp-set-request-limit-my

Example

xdmp.setRequestLimit("lockCount",100);
Powered by MarkLogic Server | Terms of Use | Privacy Policy