Skip to content

If Memory constraints passed to launcher use them to set max-old-space size for npm install #194

@hardillb

Description

@hardillb

Description

When starting a suspended instance that the user has been adding nodes to over time it may fail because npm consumes more memory than the container allows (k8s/docker)

On these platforms we are now passing the memory/cpu limits to the nr-launcher as a env var, we should be able to use this to set the NODE_OPTIONS env var for the npm process to limit the memory used. This should stop npm getting killed by the container manager.

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature-requestNew feature or request that needs to be turned into Epic/Story detailsneeds-triageNeeds looking at to decide what to do

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions