-
Notifications
You must be signed in to change notification settings - Fork 950
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
feature: support net priority flag #1576
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1964,6 +1964,10 @@ definitions: | |
QuotaID: | ||
type: "string" | ||
description: "set disk quota by specified quota id, if id < 0, it means pouchd alloc a unique quota id" | ||
NetPriority: | ||
description: "net priority." | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Could you add more description of this field? More detailed content makes more people know more about the great things you are doing. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. No, it will be |
||
type: "integer" | ||
default: 0 | ||
|
||
ContainerCreateResp: | ||
description: "response returned by daemon when container create successfully" | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -72,6 +72,7 @@ type container struct { | |
ulimit Ulimit | ||
pidsLimit int64 | ||
shmSize string | ||
netPriority int64 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. what is the reason to use int64? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. swagger generate with
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If you wanna set a specific type, maybe you can consider the following way:
|
||
|
||
// log driver and log option | ||
logDriver string | ||
|
@@ -203,6 +204,7 @@ func (c *container) config() (*types.ContainerCreateConfig, error) { | |
DiskQuota: diskQuota, | ||
QuotaID: c.quotaID, | ||
SpecAnnotation: specAnnotation, | ||
NetPriority: c.netPriority, | ||
}, | ||
|
||
HostConfig: &types.HostConfig{ | ||
|
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.
NetPriority seem a property of network endpoint. A container may have many endpoints, we may apply different Priorities to different endpoints. Can we consider the situation?
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.
Since we not implement in sever, so we just add a flag called
NetPriority
to prepare