radian-software / riju

⚡ Extremely fast online playground for every programming language.

Home Page:https://riju.codes

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Resource Limiting

elijahgives opened this issue · comments

commented

Hello! I am making this issue to ask if there’s a way to limit resources per session?
e.g one session can only use x amount of memory, storage

Total resource consumption is limited by system-wide user session cgroup, configured here: https://github.com/radian-software/riju/blob/main/packer/riju.slice

Per-session resource consumption would be configured here, by adding additional command-line arguments to docker run. I removed this because my current budget means Riju has a very resource-constrained environment and subdividing the resources any more than needed makes many languages unusable.

commented

Total resource consumption is limited by system-wide user session cgroup, configured here: https://github.com/radian-software/riju/blob/main/packer/riju.slice

Per-session resource consumption would be configured here, by adding additional command-line arguments to docker run. I removed this because my current budget means Riju has a very resource-constrained environment and subdividing the resources any more than needed makes many languages unusable.

Ignore Elijah, he's a troll brother