Skip to content

Have a more sane swap size on larger servers #249

Open
@michiels

Description

@michiels

Problem

We currently have the "Enable Swap" feature create a swapfile of current_swap * 3. For relatively small servers with 500M or 1G of memory this is quite sane, but for bigger servers it doesn't make to make the swap 3 times as large as the available memory.

For example: a 4GB server would end up with 12GB of swap. Maybe 1-2GB of swap on those servers is enough.

Suggestion

We can probably choose a maximum treshold for the multiplier. So that a server can never have more than 2G of swap. Or, we just always set it to 1GB, regardless of the system memory.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions