Set maximum reads/writes per second limits for a role. If a quota is zero, the limit is removed.
Quotas require server security configuration "enable-quotas" to be set to true.
Namespace: Aerospike.ClientAssembly: AerospikeClient (in AerospikeClient.dll) Version: 4.2.1.0 (4.2.1)
Syntax
Parameters
- policy
- Type: Aerospike.Client AdminPolicy
admin configuration parameters, pass in null for defaults
- roleName
- Type: System String
role name
- readQuota
- Type: System Int32
maximum reads per second limit, pass in zero for no limit.
- writeQuota
- Type: System Int32
maximum writes per second limit, pass in zero for no limit.
Implements
IAerospikeClient SetQuotas(AdminPolicy, String, Int32, Int32)Exceptions
Exception | Condition |
---|---|
Aerospike.Client AerospikeException | if command fails |
See Also