Out of memory in proxy pod container #40844
-
Hi, Our proxy pod containers were killed and restarted due to being out of memory. We were seeing logs from the proxy container.
I tried to limit the memory usage of the proxy pod so that the proxy pods don't get killed but I couldn't find any related configuration on the page https://milvus.io/docs/configure_quotaandlimits.md. Maybe it is just my overlook. Can I have some pointers? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
how large is the memory?
You should see some indicators in your monitorning metrics. To fix that, @weiliu1031 can you help on it? |
Beta Was this translation helpful? Give feedback.
-
Which version of your milvus? I didn't see any source code throw log like "Task xxxxx ran out of memory". You can decrease the proxy.maxTaskNum value in milvus.yaml to reduce the OOM risk of proxy:
And, you can deploy more proxy nodes to balance the requests. |
Beta Was this translation helpful? Give feedback.
Milvus provides a way to limit the result size of each query through the parameter quotaAndLimits.limits.maxOutputSize, which defaults to 104,857,600 bytes.
Additionally, Milvus allows you to control the maximum number of concurrent queries on the proxy using the parameter proxy.maxTaskNum, with a default value of 1024.
In your case, adjusting both the maximum result size per query and the concurrency limit can effectively help manage the proxy's memory consumption during query execution.
In the future, if there is a clearer demand, we may consider setting more adaptive default values for these parameters based on the proxy’s memory size.
Hope this helps! If you encounter any issues, feel…