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

The Aerospike Knowledge Base has moved to https://support.aerospike.com. Content on https://discuss.aerospike.com is being migrated to either https://support.aerospike.com or https://docs.aerospike.com. Maintenance on articles stored in this repository ceased on December 31st 2022 and this article may be stale. If you have any questions, please do not hesitate to raise a case via https://support.aerospike.com.

FAQ - 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.
  • Detailed in the Aerospike Log Reference.

Keywords

CLIENT CONNECTED NODE LOG

Timestamp

July 2019

1 Like