SFTtech / kevin

A simple-stupid self-hostable continuous integration service. :see_no_evil:
GNU Affero General Public License v3.0
110 stars 17 forks source link

remove old builds from memory #7

Open TheJJ opened 8 years ago

TheJJ commented 8 years ago

all builds are stored on disk anyway, but we should drop old builds from ram. this can prevent denial of service attacks where all builds for projects are walked through and requested, thereby loaded from disk into ram. for many builds, this can exhaust memory of the process.

-> keep a maximum of $n builds in memory, delete more.

TheJJ commented 7 years ago

We now have the BuildManager for that. It still doesn't delete old builds from memory, but it could easily do that now.