function-mesh icon indicating copy to clipboard operation
function-mesh copied to clipboard

Memory Limits

Open polyzos opened this issue 3 years ago • 3 comments

When running a function or connector seems like the minimum memory setting should be 1GB. Is there a particular reason for this? This makes it hard for local dev when you have multiple functions you need to test and also requires more resource allocation than needed when a function performs just simple operations like forwarding messages or a simple filtering.

polyzos avatar Sep 01 '21 07:09 polyzos

Hi @polyzos, sorry for the late reply, have tried to set the memory to less than 1GB with the resources field in CRD?

freeznet avatar Nov 16 '21 13:11 freeznet

Hi @freeznet .. It's been a long time so i need to try and reproduce it, but as i remember when i was trying to set the memory to less than 1GB it was failing the pods https://github.com/streamnative/streamnative-academy/blob/master/microservices-webinars/deployment/mesh.yaml

polyzos avatar Nov 16 '21 14:11 polyzos

@polyzos thanks for the context, I will try to reproduce the issue first.

freeznet avatar Nov 16 '21 14:11 freeznet

I did some benchmarks recently with memory set to 0.5g for requests and limits(and with CPU equals to 500m), pods running well, and below is a sample result:

image

so I think there should be no such limits, or it may be already resolved

jiangpengcheng avatar Mar 10 '23 07:03 jiangpengcheng

closing as not reproduced

jiangpengcheng avatar Mar 15 '23 09:03 jiangpengcheng