Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is this library compatible with chi 2.0? #1

Open
msaron opened this issue Feb 10, 2017 · 1 comment
Open

Is this library compatible with chi 2.0? #1

msaron opened this issue Feb 10, 2017 · 1 comment

Comments

@msaron
Copy link

msaron commented Feb 10, 2017

I am currently using the chi 2.0 router. I had a couple of questions.

  1. Is this library compatible with chi 2.0?
  2. Can we specify the memory in absolute units, such as 8GB instead of a percentage?

Thanks.

@msaron
Copy link
Author

msaron commented Feb 14, 2017

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).
  • load configuration - load limits configuration where:
    • 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant