IBM / core-dump-handler

Save core dumps from a Kubernetes Service or RedHat OpenShift to an S3 protocol compatible object store
https://ibm.github.io/core-dump-handler/
MIT License
131 stars 40 forks source link

Core dump files housekeeping #145

Closed laurentiusoica closed 4 months ago

laurentiusoica commented 1 year ago

Hi All,

When handling core dumps with core-dump-handler, what is the recommended mechanism to cleanup collected core files from worker nodes?

No9 commented 1 year ago

Hey @laurentiusoica The core file is piped directly into the zip file https://github.com/IBM/core-dump-handler/blob/main/core-dump-composer/src/main.rs#L171

and the zip is removed by the agent after a successful upload to the Object Store https://github.com/IBM/core-dump-handler/blob/main/core-dump-agent/src/main.rs#L341

There should be no need to "clean up" on the server.

laurentiusoica commented 1 year ago

Thanks!