Skip to content

Allow for adjustable OOM score on instances #2116

@vosdev

Description

@vosdev

Is there an existing issue for this?

  • There is no existing issue for this feature

What are you currently unable to do

Have a say in what the OOM killer kills

What do you think would need to be added

I had some VMs randomly in a stopped state and it turned out that my host went OOM :(

Unfortunately when this happens random VMs and LXCs are getting killed.

I would like to request the ability to set an OOM score per instance, as some of my instances are more important than others.

incus config set <instance> limits.oom_priority <value>

Something like this ranging from -1000 to 1000, where a low value is never killed and a higher value is more likely to be killed. Similar to OOMScoreAdjust from systemd.

Metadata

Metadata

Assignees

No one assigned

    Labels

    APIChanges to the REST APIDocumentationDocumentation needs updatingEasyGood for new contributorsMaybeUndecided whether in scope for the project

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions