Merge pull request #788 from darrenstahlmsft/RemoveReservation
Remove Memory reservation on Windows
This commit is contained in:
commit
101e6f9d5c
|
@ -15,16 +15,13 @@ The following parameters can be specified:
|
||||||
|
|
||||||
* **`limit`** *(uint64, OPTIONAL)* - sets limit of memory usage in bytes.
|
* **`limit`** *(uint64, OPTIONAL)* - sets limit of memory usage in bytes.
|
||||||
|
|
||||||
* **`reservation`** *(uint64, OPTIONAL)* - sets the guaranteed minimum amount of memory for a container in bytes.
|
|
||||||
|
|
||||||
#### Example
|
#### Example
|
||||||
|
|
||||||
```json
|
```json
|
||||||
"windows": {
|
"windows": {
|
||||||
"resources": {
|
"resources": {
|
||||||
"memory": {
|
"memory": {
|
||||||
"limit": 2097152,
|
"limit": 2097152
|
||||||
"reservation": 524288
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -15,10 +15,6 @@
|
||||||
"limit": {
|
"limit": {
|
||||||
"id": "https://opencontainers.org/schema/bundle/windows/resources/memory/limit",
|
"id": "https://opencontainers.org/schema/bundle/windows/resources/memory/limit",
|
||||||
"$ref": "defs.json#/definitions/uint64"
|
"$ref": "defs.json#/definitions/uint64"
|
||||||
},
|
|
||||||
"reservation": {
|
|
||||||
"id": "https://opencontainers.org/schema/bundle/windows/resources/memory/reservation",
|
|
||||||
"$ref": "defs.json#/definitions/uint64"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -450,8 +450,6 @@ type WindowsResources struct {
|
||||||
type WindowsMemoryResources struct {
|
type WindowsMemoryResources struct {
|
||||||
// Memory limit in bytes.
|
// Memory limit in bytes.
|
||||||
Limit *uint64 `json:"limit,omitempty"`
|
Limit *uint64 `json:"limit,omitempty"`
|
||||||
// Memory reservation in bytes.
|
|
||||||
Reservation *uint64 `json:"reservation,omitempty"`
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// WindowsCPUResources contains CPU resource management settings.
|
// WindowsCPUResources contains CPU resource management settings.
|
||||||
|
|
Loading…
Reference in New Issue