Articles in this section

Is it possible to see which clients are connected to a given Aerospike node?

Detail

There are a number of reasons why it might be useful to know which clients are connecting to an Aerospike cluster. Is this something that can be requested on an ad-hoc basis or reflected in a log file?


Answer

Yes, it is possible to see which clients are connected to a given node by switching on detail level logging for the rw context. On setting this, the following log line will be displayed:

 

{ns_name} client 10.0.3.182:51160 write <Digest>:0x8df238affec6f8e3a2c22d6c54c91c5bc4f3ff81

 

In addition to the IP address of the connected client, the type of transaction and the digest concerned are also logged.

The command to switch on detail level logging for the rw context is:

 

asinfo -v “set-log:id=0;rw-client=detail”

 

The above command is dynamic, logging can be switched on and off without a node restart.


Notes

Transactions shown are ones that have reached the stage of reserving a partition.

Applies To Earliest Version

Pre 4.9

Applies To Latest Version

Current Version
Was this article helpful?
0 out of 0 found this helpful