Skip to content

OOM issue for patchman server with ~115 clients #737

@pwolynec-swin

Description

@pwolynec-swin

One of the Nectar nodes in Melbourne (SUT) has started to use patchman (thanks to TomF) and every ~second month it has an OOM issue.

At 6:30 in the morning, there is a step of ~1 GB of memory usage.

We altered on the clients (puppet erb code below) -

was originally 3 and 15 minutes

Sleep between 3 and 120 minutes before running to avoid "herding":

SLEEP_MINUTES=$(/usr/bin/shuf -i 3-120 -n 1)
SLEEP_SECONDS=$((60 * $SLEEP_MINUTES))

Since we can sleep up to 90 minutes, we put the command in the background so it

does not block any other cron jobs.

sleep $SLEEP_SECONDS && patchman-client -c <%= @patchman_conf_path %> -s http://<%= @patchman_server %>/patchman &

and now the step up in memory usage at ~6:30 is more modest (0.2 GB)

The patchman server currently has 32 GB.

Just wondering what settings and where we can can keep patchman running without an OOM episode.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions