Skip to content

Commit 5492fc0

Browse files
author
Mrunal Patel
authored
Merge pull request #780 from hqhq/remove_blkio_range
Remove range limit which depend on kernel
2 parents f227620 + ce55de2 commit 5492fc0

File tree

6 files changed

+9
-15
lines changed

6 files changed

+9
-15
lines changed

config-linux.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -352,14 +352,14 @@ For more information, see [the kernel cgroups documentation about blkio][cgroup-
352352

353353
The following parameters can be specified to setup the controller:
354354

355-
* **`blkioWeight`** *(uint16, OPTIONAL)* - specifies per-cgroup weight. This is default weight of the group on all devices until and unless overridden by per-device rules. The range is from 10 to 1000.
355+
* **`blkioWeight`** *(uint16, OPTIONAL)* - specifies per-cgroup weight. This is default weight of the group on all devices until and unless overridden by per-device rules.
356356

357-
* **`blkioLeafWeight`** *(uint16, OPTIONAL)* - equivalents of `blkioWeight` for the purpose of deciding how much weight tasks in the given cgroup has while competing with the cgroup's child cgroups. The range is from 10 to 1000.
357+
* **`blkioLeafWeight`** *(uint16, OPTIONAL)* - equivalents of `blkioWeight` for the purpose of deciding how much weight tasks in the given cgroup has while competing with the cgroup's child cgroups.
358358

359359
* **`blkioWeightDevice`** *(array of objects, OPTIONAL)* - specifies the list of devices which will be bandwidth rate limited. The following parameters can be specified per-device:
360360
* **`major, minor`** *(int64, REQUIRED)* - major, minor numbers for device. More info in `man mknod`.
361-
* **`weight`** *(uint16, OPTIONAL)* - bandwidth rate for the device, range is from 10 to 1000
362-
* **`leafWeight`** *(uint16, OPTIONAL)* - bandwidth rate for the device while competing with the cgroup's child cgroups, range is from 10 to 1000, CFQ scheduler only
361+
* **`weight`** *(uint16, OPTIONAL)* - bandwidth rate for the device.
362+
* **`leafWeight`** *(uint16, OPTIONAL)* - bandwidth rate for the device while competing with the cgroup's child cgroups, CFQ scheduler only
363363

364364
You MUST specify at least one of `weight` or `leafWeight` in a given entry, and MAY specify both.
365365

config-windows.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ The following parameters can be specified:
3838

3939
* **`count`** *(uint64, OPTIONAL)* - specifies the number of CPUs available to the container.
4040

41-
* **`shares`** *(uint16, OPTIONAL)* - specifies the relative weight to other containers with CPU shares. The range is from 1 to 10000.
41+
* **`shares`** *(uint16, OPTIONAL)* - specifies the relative weight to other containers with CPU shares.
4242

4343
* **`percent`** *(uint, OPTIONAL)* - specifies the percentage of available CPUs usable by the container.
4444

schema/config-linux.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,6 @@
5050
"oomScoreAdj": {
5151
"id": "https://opencontainers.org/schema/bundle/linux/resources/oomScoreAdj",
5252
"type": "integer",
53-
"minimum": -1000,
54-
"maximum": 1000
5553
},
5654
"pids": {
5755
"id": "https://opencontainers.org/schema/bundle/linux/resources/pids",

schema/defs-linux.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,6 @@
138138
},
139139
"blkioWeight": {
140140
"type": "integer",
141-
"minimum": 10,
142-
"maximum": 1000
143141
},
144142
"blockIODevice": {
145143
"type": "object",

schema/defs-windows.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
"cpuShares": {
44
"description": "Relative weight to other containers with CPU Shares defined",
55
"type": "integer",
6-
"minimum": 1,
7-
"maximum": 10000
86
}
97
}
108
}

specs-go/config.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -250,9 +250,9 @@ type linuxBlockIODevice struct {
250250
// LinuxWeightDevice struct holds a `major:minor weight` pair for blkioWeightDevice
251251
type LinuxWeightDevice struct {
252252
linuxBlockIODevice
253-
// Weight is the bandwidth rate for the device, range is from 10 to 1000
253+
// Weight is the bandwidth rate for the device.
254254
Weight *uint16 `json:"weight,omitempty"`
255-
// LeafWeight is the bandwidth rate for the device while competing with the cgroup's child cgroups, range is from 10 to 1000, CFQ scheduler only
255+
// LeafWeight is the bandwidth rate for the device while competing with the cgroup's child cgroups, CFQ scheduler only
256256
LeafWeight *uint16 `json:"leafWeight,omitempty"`
257257
}
258258

@@ -265,9 +265,9 @@ type LinuxThrottleDevice struct {
265265

266266
// LinuxBlockIO for Linux cgroup 'blkio' resource management
267267
type LinuxBlockIO struct {
268-
// Specifies per cgroup weight, range is from 10 to 1000
268+
// Specifies per cgroup weight
269269
Weight *uint16 `json:"blkioWeight,omitempty"`
270-
// Specifies tasks' weight in the given cgroup while competing with the cgroup's child cgroups, range is from 10 to 1000, CFQ scheduler only
270+
// Specifies tasks' weight in the given cgroup while competing with the cgroup's child cgroups, CFQ scheduler only
271271
LeafWeight *uint16 `json:"blkioLeafWeight,omitempty"`
272272
// Weight per cgroup per device, can override BlkioWeight
273273
WeightDevice []LinuxWeightDevice `json:"blkioWeightDevice,omitempty"`

0 commit comments

Comments
 (0)