pinpoint-apm / pinpoint

APM, (Application Performance Management) tool for large-scale distributed systems.
https://pinpoint-apm.gitbook.io/
Apache License 2.0
13.42k stars 3.76k forks source link

Is any ways to remove the inactive Agent Info? #9815

Open hongdeok-kim opened 1 year ago

hongdeok-kim commented 1 year ago

Hello, I'm using pinpoint 2.5.0 version with EKS. As you know, the POD name(hostname) might be recreated with different name after re-deployment. But, cannot remove the old agent information in pinpoint web.

From what I've checked the github, "cleanupInactiveAgentsDurationDays" affects to that. It's no problem for on-premise env but, hostname and POD can be changed continually in K8s env.

Could you let me know the way how to remove the old agent info automatically by usign JVM options or etc?

donghun-cho commented 1 year ago

Changing TTL value of Hbase ApplicationIndex table might be a solution

TTL value of ApplicationIndex table of provied hbase script is 1year https://github.com/pinpoint-apm/pinpoint/blob/c34d8cd583ba669217f340810c21ea279420413f/hbase/scripts/hbase-create.hbase#L5