You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am coming from a NodeJS background where I used the hapijs framework developed and used by Walmart to drive their website. One feature it has is that you can set the RSS size; see their api description on the settings here. This is the functionality that I would like oom to have. Here is what the hapijs api documenation says about setting the server or connection load:
load - process load monitoring where:
sampleInterval - the frequency of sampling in milliseconds. Defaults to 0 (no sampling).
maxHeapUsedBytes - maximum V8 heap size over which incoming requests are rejected with an HTTP Server Timeout (503) response. Defaults to 0 (no limit).
maxRssBytes - maximum process RSS size over which incoming requests are rejected with an HTTP Server Timeout (503) response. Defaults to 0 (no limit).
The maxHeapUsedBytes and maxRssBytes settings can be applied to the server as a whole OR per request OR both. This is incredibly useful and powerful! It can probably be incorporated by using golang context (not sure about this as I have just come into golang from NodeJS)?
If all this can be incorporated into oom, it would make it incredibly powerful.
I am currently using the chi 2.0 router. I had a couple of questions.
Thanks.
The text was updated successfully, but these errors were encountered: