-
Notifications
You must be signed in to change notification settings - Fork 559
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
schema/config-linux: add min/max limit for resource memory and cpu #533
schema/config-linux: add min/max limit for resource memory and cpu #533
Conversation
schema/config-linux.json
Outdated
"$ref": "defs.json#/definitions/uint64Pointer" | ||
"type": "integer", | ||
"minimum": 1000, | ||
"maximum": 1000000 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Where do these magic numbers come from? If they come from the kernel, please document them in the config-linux.md
file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
52b0e19
to
89fd54d
Compare
@cyphar thoughts on this now? |
friendly ping @cyphar ❤️ 🙏 |
I'm confused what this will look like as an actual Go structure. Will it be an |
On Fri, Nov 04, 2016 at 08:01:49PM -0700, Aleksa Sarai wrote:
They'll be *uint64, just like they are now. The current uint64Pointer |
How is this going to used at the system level? |
On Mon, Nov 07, 2016 at 09:16AM -0800,, Michael Crosby wrote:
Is that “who consumes the JSON Schema”? There's currently |
@opencontainers/runtime-spec-maintainers PTAL |
This would be validating system settings. My feeling is that we don't need to spec out the kernel, its not our job. REJECT from me |
I don't think we're ready for a hard line on that issue, since we currently have a fair amount of in-spec kernel documentation (e.g. here, here, here, …). But maybe @jlbutler will get us pointed more clearly in his reroll of #673. And if we want to punt docs to the kernel, we should probably require that |
@crosbymichael we also validate range of blkio.weight in schema |
89fd54d
to
c315e34
Compare
Signed-off-by: Ma Shimiao <mashimiao.fnst@cn.fujitsu.com>
c315e34
to
a8076eb
Compare
Agree with @crosbymichael, Let's not add limits for values. |
Signed-off-by: Ma Shimiao mashimiao.fnst@cn.fujitsu.com