Terracotta-OSS / terracotta-platform

http://terracotta.org
Apache License 2.0
32 stars 48 forks source link

Periodic logging about resource usage #1049

Closed mobasherul closed 2 years ago

mobasherul commented 2 years ago

It seems to me that what is being logged here is a generally valuable metric (that might want to be exposed in any M&M view). It also seems like there are many metrics that might be valuable to customers if periodically logged. With those statements in mind I'm thinking it makes more sense to frame this feature as the periodic logging of some monitorable metrics. In that sense the engine that drives this should probably be integrated with the M&M code. That would also prevent us from spawning two extra threads where each thread just logs a single line every 5 minutes.

M&M code have their thread pools which do statistics collection but only when tmc is connected to tms otherwise M&M code doesn't do anything.

mobasherul commented 2 years ago

Closing this in favor of https://github.softwareag.com/Terracotta/terracotta-enterprise/pull/170 as I am creating service provider which will take care of logging