Skip to content

Contain/restrict memory usage for vg commands, per-job and in total #474

@adamnovak

Description

@adamnovak

Today the demo server went off the network, in a way that looks like systemd/systemd#32045 (comment)

It happened after the OOM killer was invoked and killed a vg process that was using about 1.5G of memory. The server only actually has about 2G of memory, and if we let the OOM killer run it can break the system.

So we need a way to restrict the total memory in use by in-flight vg processes the server is running, to under some limit that still leaves room for Node, to prevent the OOM killer from running, maybe by setting a ulimit for the child vg processes and only letting a certain number be running at a time.

We also might need to lower the file upload size limit, if the current limit (I think 5M?) is large enough that it's easy to cause a lot of memory use.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions