-
Notifications
You must be signed in to change notification settings - Fork 42
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
[WIP] New resource #260
[WIP] New resource #260
Conversation
MemoryLimit int64 | ||
|
||
VolumeRequest VolumeBindings | ||
VolumeLimit VolumeBindings |
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.
VolumePlan 是必需的, 就像上面的 CPU 对应 CPUQuota 一样.
这是因为 Resource 结构体同时也用来生成 engine type, 所以需要包含调度后的资源信息.
VolumeChanged 也是需要的, 这是用来告诉 engine 这次 realloc 是否有 volume 变化, 而“是否变化”这个信息只有 calcium 才能计算出来, 因为到 engine 的时候拿不到 old container meta 了
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.
VolumePlan 需要区分 request 和 limit, 而 CPUPlan 不需要, 这是因为 CPU limit 是通过 quota 传递给 engine, 而 volume limt 是通过改变 plan
只剩 realloc 实在改不动了…… 所有的资源分为 2 个部分,
其他修改有:
|
No description provided.