Replies: 1 comment
-
How are you limiting CPU? I'm not personally familiar with this stuff. Let me do some quick research if there's a way to do this automatically... Currently, our code calls Looking at Python's Java's
So it seems possible we could do something smarter automatically, but it would take more research to be sure we were doing the right thing, and time would need to be carved out to work on it. It would definitely be faster for you to set it yourself to what you need in the meantime |
Beta Was this translation helpful? Give feedback.
-
I'm calling aws_event_loop_group_new_default with
maxthreads = 0
, but running into issues in a containerized environment, because I'm seeing event loop groups = # of node cores, not what has been allocated to my container specifically. This is an issue, I believe (not quite sure if/how to confirm), because my node has a pretty high bandwidth and I'm hooking up to a TCP socket which is set to read as fast as possible, but my actual container has limited resources to process.I'm also aware that I probably need to adjust/utilize my socket window size/backpressure settings, but the first thing I noticed was wanting to ensure the # of event loop groups isn't more than my container can handle.
So my question: is there an official recommendation or some kind of automatic way to call aws_event_loop_group_new_default to respect cgroup cpu limits? Or do I just need to hard-code/configure that in my application initialization?
Beta Was this translation helpful? Give feedback.
All reactions