setIPConnectionLimit
First introduced in version: 3.00.4
Syntax
setIPConnectionLimit(IP, limit)
Details
Set the maximum number of connections allowed from each IP address to the current node.
This limit applies to API and xdb connections but does not affect
internal connections between cluster nodes (e.g., rpc).
This function can only be executed by an administrator on Linux.
Parameters
IP is a string representing the IP address.
limit is a positive integer specifying the connection limit. A value of -1 indicates no limit.
Examples
Set the maximum number of connections for IP address "192.168.1.56" to 10:
setIPConnectionLimit("192.168.1.56", 10);
Remove the connection limit for IP address "192.168.1.56":
setIPConnectionLimit("192.168.1.56", -1);
Related function: getIPConnectionLimit
