-
Notifications
You must be signed in to change notification settings - Fork 12
Open
Labels
enhancementNew feature or requestNew feature or request
Description
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 should release the occupied resources automatically. Therefore, we consider following implementation plan:
- PREvant should gather OpenTelemetry metrics from Traefik (more specific, HTTP metrics) to check if applications' routes haven’t been accessed in recent.
- The least used applications will then be backed-up in database, e.g. the Kubernetes YAML manifests of application, and the applications will be deleted the infrastructure, except persistent volumes
- The application can be restored from the database and deployed with the preserved persistent volumes
- If the applications haven't restored from database in a period of time, the database and existing persistent volumes will be cleaned up
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request