Skip to content

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

Open

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.

Activity

  1. adamnovak commented on Apr 4, 2025

    @adamnovak
    MemberAuthor

    I've added a Cloudwatch alarm to reboot the instance if it drops off the network for about an hour.

    This is a bad solution and we should instead ensure that no user request or combination of user requests running at once can use more than some set fraction of the host's resources.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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