Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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"
like image 627
Artur Karbone Avatar asked Oct 24 '25 07:10

Artur Karbone


1 Answers

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

like image 176
davidfowl Avatar answered Oct 26 '25 23:10

davidfowl



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!