AsyncClientPolicyasyncMaxCommands Field

Maximum number of concurrent asynchronous commands that can be active at any point in time. Concurrent commands can target different nodes of the Aerospike cluster. Each command will use one concurrent connection. The number of concurrent open connections is therefore limited by:

max open connections = asyncMaxCommands

The actual number of open connections to each node of the Aerospike cluster depends on how balanced the commands are between nodes and are limited to asyncMaxConnsPerNode for any given node. For an extreme case where all commands may be destined to the same node of the cluster, asyncMaxCommands should not be set greater than asyncMaxConnsPerNode to avoid running out of connections to the node.

Further, this maximum number of open connections across all nodes should not exceed the total socket file descriptors available on the client machine. The socket file descriptors available can be determined by the following command:

ulimit -n

Default: 100

Definition

Namespace: Aerospike.Client
Assembly: AerospikeClient (in AerospikeClient.dll) Version: 7.0.1
C#
public int asyncMaxCommands

Field Value

Int32

See Also