How can i capture operation statistics such as puts/sec, gets/sec per server from ignite/gridgain.
Is it possible to output them into some file so that we can analyze them later?
How can i capture operation statistics such as puts/sec, gets/sec per server from ignite/gridgain.
Is it possible to output them into some file so that we can analyze them later?
Copyright © 2021 Jogjafile Inc.
Cache stats for a particular server node can be acquired with
IgniteCache.metrics(ClusterGroup grp)method, like this:You can periodically get them, calculate throughput values for this period of time (you will have to save the previous snapshot) and log to a file.
Note that metrics are disabled by default for performance reasons. To enable them set
statisticsEnabledflag onCacheConfigurationtotrue:Hope this helps.