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

Automatic Cleanup for PREvant tiles #149

Open
AnumDastgir opened this issue Dec 12, 2023 · 2 comments
Open

Automatic Cleanup for PREvant tiles #149

AnumDastgir opened this issue Dec 12, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@AnumDastgir
Copy link
Contributor

PREvant allows us to instantiate individual environments very quickly. While this being a great feature, these easily created environments can easily be forgotten, thus causing an issue of draining and running out of resources at the hosting system.

To overcome this issue, an automatic cleanup for those unwanted environments is needed, so that if they're not being used, they can be deleted after a specific time period automatically. For this purpose, the creation time and last updated timestamp for each tile/environment can be kept in account. This data can be utilized to dynamically modify or prolong the configuration, ensuring tiles are deleted only when being idle and not being used for specific amount of time.

Check crate chrono to address this issue.

@schrieveslaach schrieveslaach added the enhancement New feature or request label Dec 19, 2023
@harridu
Copy link

harridu commented Jul 1, 2024

Please also consider to not restart the environments on a reboot. Esp for using Docker you have to wait ages at boot time, till all containers are running again.

@schrieveslaach
Copy link
Contributor

I'm considering that this deletion should be more sophisticated once PREvant is able to collect metrics of the hardware utilization (see #201) so that things get cleaned up when the backend (K8s or Docker) hardware utilization reaches a certain threshold.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants