Skip to content
Snippets Groups Projects
Commit bc2610a4 authored by Marwan Azuz's avatar Marwan Azuz :thumbsup: Committed by Clément Pit-Claudel
Browse files

server: Add a garbage collector

The main idea is straightforward: every 1 minute (`GC_EVERY`),
- if there are more than 10 unused instances (`GC_AFTER_UNUSED_INSTANCES`), take
  the least recently used instances and shut it down.
- otherwise, check every unused instance and if it hasn't been used for 24 hours,
  shut it down.

The criterias to consider a webapp unused is if no one is connected.
“Strategic” handlers are added in `ServerApp.scala`
parent 3c86c99d
No related branches found
No related tags found
1 merge request!31server: Add a GarbageCollection
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment