Resources management mechanism (CPU/Memory) in .NET Aspire

65 views Asked by At

Is it possible to limit resources for components in .NET Aspire?

I'm referencing resource management ideas from K8s here. Just wondering if .NET Aspire allows CPU, Memory limitation or there are plans to do that. This is just a random example from K8s docs of something I'm looking for in .NET Aspire:

image: images.my-company.example/app:v4
resources:
  requests:
    memory: "64Mi"
    cpu: "250m"
  limits:
    memory: "128Mi"
    cpu: "500m"
1

There are 1 answers

1
davidfowl On

No it's not possible to express using the aspire APIs at the moment. Do you want this for development?