Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cleanup on application name tab. #10605

Closed
dv-morais opened this issue Jan 11, 2024 · 3 comments · Fixed by #10646, #10650 or #10654
Closed

Cleanup on application name tab. #10605

dv-morais opened this issue Jan 11, 2024 · 3 comments · Fixed by #10646, #10650 or #10654

Comments

@dv-morais
Copy link

Hello everyone,

Nowadays I have hundreds of unused application names in my pinpoint server and cleaning it up by hand is... unpractical.

Is there a way to automatically clean it? or if it already exists how do I acticate it?

thanks in advance.

@smilu97
Copy link
Contributor

smilu97 commented Jan 23, 2024

No we don't currently have something for cleaning application list, I also think we need it

@smilu97
Copy link
Contributor

smilu97 commented Jan 26, 2024

Hi, I'm adding new batch job which cleans up inactive applications. It will actually remove application name if you set property job.cleanup.inactive.applications.writer=applicationRemover job.cleanup.inactive.applications.writer=cleanTargetWriter, otherwise it just checks inactives and log it.

Other default settings can be found on batch/.../batch-root.properties file.

job.cleanup.inactive.applications.enable=true
job.cleanup.inactive.applications.cron=0 0 3 * * THU
job.cleanup.inactive.applications.emptydurationthreshold=P14D

# - emptyItemWriter: Not actually removes application
# - cleanTargetWriter: Actually removes application
job.cleanup.inactive.applications.writer=emptyItemWriter

Thank you

smilu97 pushed a commit to smilu97/pinpoint that referenced this issue Jan 29, 2024
@smilu97 smilu97 linked a pull request Jan 29, 2024 that will close this issue
@smilu97 smilu97 reopened this Jan 29, 2024
@smilu97
Copy link
Contributor

smilu97 commented Jan 29, 2024

Cleaning up inactive agents, and applications seem to be merged together. cleanupInactiveApplicationsJob will also remove inactive agents, and existing job cleanupInactiveAgentsJob will be deprecated later.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment