Introducing fdbcstat Utility

Did you ever want to monitor what your client applications are really doing?
Now, you have a tool called fdbcstat, which can be attached to any libfdb_c.so shared library and monitor the client activities such as “operations per second” or “latency” for major FDB transaction operations. libfdb_c.so is the library used in any bindings such as Java or Python, so you can virtually monitor any FDB applications. Enjoy!

6 Likes

This looks pretty useful. I was wondering if this utility can be extended to gather more useful information, for example like hotkeys and latencies around it.

Detecting hot keys through this tool can be tricky as it’s more of a cluster-wide metric. This tool is a quick’n’dirty eBPF/bcc script you can attach to an FDB client shared library to capture the throughput & latencies of the operations issued through the particular client library.
Having said that, if you know particular key ranges you’re interested in, it should be easy enough to implement what you want. (But I would imagine it can be much easier to do in your application in that case…)