Skip to content

Conversation

@trestletech
Copy link
Contributor

Add a limit to the "forked" evaluator (the default used on Linux) to limit the number of forked exercises that learnr will execute in parallel. Previously, this was uncapped, which could cause a learnr process to run out of memory when an influx of traffic arrived. The default limit is 3, but it can be configured using the tutorial.max.forked.procs option or the TUTORIAL_MAX_FORKED_PROCS environment variable.

@trestletech trestletech requested a review from schloerke April 20, 2020 17:58
@trestletech
Copy link
Contributor Author

Good points! I think I addressed everything except the FIFO comment which I'm not sure how to fix without a more heavy-handed approach to coordination. Let me know what you think!

@schloerke schloerke self-requested a review April 21, 2020 20:34
@trestletech trestletech merged commit 632a168 into master Apr 21, 2020
@trestletech trestletech deleted the limit-exercises branch April 21, 2020 20:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants