RaspberryPiFoundation / editor-api

Code Editor backend
https://editor.raspberrypi.org
GNU Affero General Public License v3.0
23 stars 5 forks source link

Spike: Limit saved editor file sizes #462

Open sra405 opened 3 days ago

sra405 commented 3 days ago

Twice now editor-api has experienced ~30min downtime due to a single user copy/pasting strings in the editor. These users have been logged in meaning the files are auto-saved, when the request reaches a certain size the API experiences a memory spike and crashes.

This spike is to investigate the cause (is it line legth? File size? GET/POST limits?) and propose a fix.

Useful slack threads: