infra icon indicating copy to clipboard operation
infra copied to clipboard

Add destination cleanup loop

Open mxyng opened this issue 2 years ago • 3 comments

Add a running loop to cleanup old destinations. If a destination has LastSeenAt older than 1h, delete it.

mxyng avatar Jun 29 '22 16:06 mxyng

We have a similar problem with access keys. We don't currently prune them after they expire, even though they will never be useful again.

A destination still has some value after it is inactive. The operator can see it's inactive and fix the problem.

I think 1 hour is much too short of a threshold to delete it. An outage in a cloud provider could easily last more than an hour.

I think we should hold off on solving this problem and address it for all types (access keys, destinations, etc). I expect the inactive threshold will need to be more like 3 days, to account for dev clusters that could be left inactive during a long weekend.

dnephin avatar Jun 29 '22 16:06 dnephin

Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward?

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

stale[bot] avatar Sep 05 '22 00:09 stale[bot]

A destination still has some value after it is inactive. The operator can see it's inactive and fix the problem.

I think 1 hour is much too short of a threshold to delete it. An outage in a cloud provider could easily last more than an hour.

just adding my 2-cents here, but I agree with @dnephin, a destination could be down for much longer than an hour due to scheduled maintenance of the cluster, cloud outage etc, perhaps this should be configurable? or at least set to something like 24 hours

dkulchinsky avatar Sep 06 '22 00:09 dkulchinsky

Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward?

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

stale[bot] avatar Nov 05 '22 00:11 stale[bot]