Skip to content

A customer can determine what configuration they need from a running app #5490

Closed

Description

@richlander

We expect that most .NET users set their containers with higher values than they want, and then progressively and iteratively decrease CPU and memory values to satisfy cost goals. This is a fine approach, but are likely more data-oriented, and reliable ways to get to more optimum values more quickly.

There are two primary (complementary) approaches to this:

  • Ensure that valuable metrics are exposed so that developers can monitor their apps for performance that are most aligned with docker resource limits. We also need to document what outcomes people can expect if they "cut it close" for either CPU or memory.
  • Test many configurations against some form of success metrics using chaos engineering approaches. Keep on reducing docker resource limits until containers reliably get killed or don't satisfy desired metrics, in production. Containers are supposed to be stateless, so embrace that.

For this user story, we will focus on exposing important metrics:

  • Peak GC heap memory
  • Peak GC CPU time
  • % CPU usage, relative to limits
  • % memory usage, relative to limits

We will write documentation that safe and unsafe zones for numbers. Safe zones (with margin) would suggest that there are opportunities to reduce limits further. The runtime will only be responsible for reporting point-in-time information. Monitoring tools and databases need to be used to determine time-based patterns (maybe Thursday evenings represent a peek for your site that needs to managed outside of fine-grained runtime monitor and configuration).

We will also write documentation that describes how to create stateless containers that enable being safely killed in production.

Activity

  1. added
    User Story
    Priority:1
    on Oct 29, 2020
  2. danmoseley commented on Jan 29, 2021

    @danmoseley

    @shirhatti both our open telemetry stories are children of this, but they are P0 and this is P1. Should they have their own, P0 rated Epic?
    Cc @ericstj

  3. mairaw commented on May 26, 2023

    @mairaw
    Contributor

    Bulk closing .NET 6 epics and user stories. If you think this issue was closed in error, please reopen the issue and update it accordingly.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Priority:1Team:RuntimeUser Storybulk-closed

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions