Skip to content

Add API to support various thresholds #3

@miparnisari

Description

@miparnisari

The current API

rtml.IsMemLimitReached()

is limiting. For my use case, I would like to prioritize in-flight work over incoming work, which means that if I get a call to an internal API (in-flight work), I want to let it through even if memory usage is over 90%. However, if I get a call to an external API (incoming work), I want to block it if memory usage is over 80%.

Could we add an API for this? For example:

rtml.IsMemLimitAboveThreshold(80)
rtml.IsMemLimitAboveThreshold(90)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions