This script of ours fires off a bunch of simultaneous requests to /hosts/{id}, causing RAM pressure on the server and potentially OOM issues if anything else is also causing RAM pressure. We're likely not the only ones wanting to use this endpoint at high concurrency.
🧑💻 Steps to reproduce
Enroll a bunch of hosts
Call GET /hosts/{id} on all of them simultaneously
🕯️ More info
Split from #22291 / #23078. TBD how much we can do about this, but maybe we can clean up incremental RAM usage per concurrent host pull enough to have documented guidance on how many simultaneous requests are acceptable per 4GB RAM instance. If we can get 200 concurrent requests without consuming 4GB of RAM that's probably sufficient?
🛠️ To fix
Find ways of reducing RAM footprint on this endpoint, and document how much RAM each concurrent execution of this endpoint takes.
Fleet version: 4.58.0
💥 Actual behavior
This script of ours fires off a bunch of simultaneous requests to
/hosts/{id}
, causing RAM pressure on the server and potentially OOM issues if anything else is also causing RAM pressure. We're likely not the only ones wanting to use this endpoint at high concurrency.🧑💻 Steps to reproduce
🕯️ More info
Split from #22291 / #23078. TBD how much we can do about this, but maybe we can clean up incremental RAM usage per concurrent host pull enough to have documented guidance on how many simultaneous requests are acceptable per 4GB RAM instance. If we can get 200 concurrent requests without consuming 4GB of RAM that's probably sufficient?
🛠️ To fix
Find ways of reducing RAM footprint on this endpoint, and document how much RAM each concurrent execution of this endpoint takes.