Difference between revisions of "Ns limits"

From AOLserver Wiki
Jump to navigation Jump to search
(New page: '''NAME''' : ns_limits - Set connection to streaming state for streaming content via ns_write '''SYNOPSIS''' : '''ns_limits''' ''option ?arg arg ...?'' '''DESCRIPTION''' : This comman...)
 
Line 9: Line 9:
 
'''DESCRIPTION'''
 
'''DESCRIPTION'''
  
: This command command enables setting various resource limits for specified method/url combinations. These limits include such items as max concurrent connections, max file upload size, and timeouts waiting for connection processing. When limits are exceeded, connections are immediately dispatched to a dedicated ''error'' pool connection processing pool to generate a quick error response. By default all
+
: This command command enables setting various resource limits for specified method/url combinations. These limits include such items as max concurrent connections, max file upload size, and timeouts waiting for connection processing. When limits are exceeded, connections are immediately dispatched to a dedicated ''error'' pool connection processing pool to generate a quick error response. By default all requests share the same default limits. Coupled with the new "ns_pools" command, URL-based limits can provide for sophisticated resource management.
requests share the same default limits. Coupled with the new "ns_pools" command, URL-based limits can provide for sophisticated resource management.
 
  
 
: This command can be used to set to retrieve various pieces of information about a pool configuration.
 
: This command can be used to set to retrieve various pieces of information about a pool configuration.
 
: The legal ''option''s are:
 
  
 
* '''ns_limits set''' ''limit-set'' ''?'' '''-maxrun''' ''value?'' ''?'' '''-maxwait''' ''value?'' ''?'' '''-maxupload''' ''value? ?'' '''-timeout''' ''value?''
 
* '''ns_limits set''' ''limit-set'' ''?'' '''-maxrun''' ''value?'' ''?'' '''-maxwait''' ''value?'' ''?'' '''-maxupload''' ''value? ?'' '''-timeout''' ''value?''

Revision as of 10:40, 30 January 2009

NAME

ns_limits - Set connection to streaming state for streaming content via ns_write

SYNOPSIS

ns_limits option ?arg arg ...?

DESCRIPTION

This command command enables setting various resource limits for specified method/url combinations. These limits include such items as max concurrent connections, max file upload size, and timeouts waiting for connection processing. When limits are exceeded, connections are immediately dispatched to a dedicated error pool connection processing pool to generate a quick error response. By default all requests share the same default limits. Coupled with the new "ns_pools" command, URL-based limits can provide for sophisticated resource management.
This command can be used to set to retrieve various pieces of information about a pool configuration.
  • ns_limits set limit-set ? -maxrun value? ? -maxwait value? ? -maxupload value? ? -timeout value?
Configure the specified limit-set with the given values. maxrun specifies the maximum number of connections which can be running simultaneously bound to the limit-set (default 100). maxwait specifies the maximum number of connections waiting, when no connection thread is available (default 100). maxupload is the maximum size of a PUT or POST request (default: 10 MB), timeout is number of seconds within which a request should complete (default 100).
  • ns_limits get limit-set
Returns a list of attribute value pairs for the specified limit-set (e.g. default). The values can be set with the Tcl command array set. The command returns values for the following attributes nrunning, nwaiting, ntimeout, ndropped, noverflow, maxwait, maxupload, timeout and maxrun
  • ns_limits list
Returns a list of the configured resource limit-sets. Aolserver creates a default limit-set called default
  • ns_limits register limit-set server method url
Register limit-set for requests issued to the specified server, HTTP method and url

EXAMPLES

ns_limits get default

SEE ALSO

ns_pools