Skip to content
Snippets Groups Projects

server: Add a GarbageCollection

Merged Marwan Azuz requested to merge azuz/webapp-lib:ma/garbage-collection into main

The main idea is straightforward, every 1 minute (GC_EVERY), list:

  • if there is more than 10 unused instances (GC_AFTER_UNUSED_INSTANCES), take the 10 least recently used instances and shutdown them.
  • otherwise, check every unused instance and if it's hasn't been used for 24 hours, it's shutdowned.

The criterias to consider a webapp unused is if no one is connected. “Strategic” handlers are added in ServerApp.scala

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
Please register or sign in to reply
Loading