forked from containers/nri-plugins
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto-generated from c331e4e by 'update-gh-pages.sh'
- Loading branch information
Github
committed
Oct 11, 2023
1 parent
d4e0958
commit 42e60f3
Showing
155 changed files
with
27,752 additions
and
708 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
function getReleaseListItems() { | ||
return [ | ||
{ name: 'v0.1.0', url: 'v0.1.0' }, | ||
{ name: 'v0.1.3', url: 'v0.1.3' }, | ||
{ name: 'v0.2.0', url: 'v0.2.0' }, | ||
]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# Sphinx build info version 1 | ||
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done. | ||
config: 8e51feca65434ccf813b1d898aecf437 | ||
tags: 645f666f9bcd5a90fca523b33c5a78b7 |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+37.2 KB
releases/v0.1.3/.doctrees/docs/resource-policy/developers-guide/architecture.doctree
Binary file not shown.
Binary file added
BIN
+13.1 KB
releases/v0.1.3/.doctrees/docs/resource-policy/developers-guide/cpu-allocator.doctree
Binary file not shown.
Binary file added
BIN
+21.2 KB
releases/v0.1.3/.doctrees/docs/resource-policy/developers-guide/e2e-test.doctree
Binary file not shown.
Binary file added
BIN
+3.24 KB
releases/v0.1.3/.doctrees/docs/resource-policy/developers-guide/index.doctree
Binary file not shown.
Binary file added
BIN
+3.13 KB
releases/v0.1.3/.doctrees/docs/resource-policy/developers-guide/testing.doctree
Binary file not shown.
Binary file added
BIN
+3 KB
releases/v0.1.3/.doctrees/docs/resource-policy/developers-guide/unit-test.doctree
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+133 KB
releases/v0.1.3/.doctrees/docs/resource-policy/policy/topology-aware.doctree
Binary file not shown.
Binary file not shown.
Binary file not shown.
94 changes: 94 additions & 0 deletions
94
releases/v0.1.3/_downloads/03f2c5ae735a2d835f9815d87f3d9404/balloons-policy.cfg
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,94 @@ | ||
policy: | ||
Active: balloons | ||
# Use only 15 CPUs in total, leave cpu0 for other than Kubernetes | ||
# processes. | ||
AvailableResources: | ||
CPU: cpuset:1-15 | ||
# Reserve one of our CPUs (cpu15) for kube-system tasks. | ||
ReservedResources: | ||
CPU: cpuset:15 | ||
balloons: | ||
# PinCPU: allow containers to use only the CPUs in their balloons. | ||
PinCPU: true | ||
# PinMemory: allow containers to use only the closest memory to | ||
# the CPUs in their balloons. | ||
PinMemory: true | ||
# IdleCPUClass: how to configure CPUs that are not included in any | ||
# of the balloons. | ||
IdleCPUClass: idle | ||
BalloonTypes: | ||
- Name: "full-core-turbo" | ||
# MinCPUs: minimum number of logical cores in every balloon | ||
# instance of this type. | ||
# The default is 0. | ||
MinCPUs: 2 | ||
# MaxCPUs: maximum number of logical cores in every balloon | ||
# instance of this type. | ||
# The default is 0 (unlimited). | ||
MaxCPUs: 2 | ||
# CPUClass: how to configure CPUs of these balloons. | ||
# The default is "". | ||
CPUClass: "turbo" | ||
# Namespaces: assign pods in listed namespaces to these | ||
# balloons, even if there is no explicit annotation: | ||
# balloon.balloons.nri-resmgr.intel.com: full-core-turbo | ||
# The default is to assign only annotated pods. | ||
Namespaces: | ||
- "highperf" | ||
# AllocatorPriotity: CPU allocator priority (0: High, 1: | ||
# Normal, 2: Low, 3: None). Affects the performance/type of | ||
# CPUs that are selected into the balloon. CPUs for static | ||
# balloon instances (MinBalloons > 0) with highest | ||
# AllocatorPriority are reserved first. | ||
# The default is 0. | ||
AllocatorPriority: 2 | ||
# MinBalloons: how many balloon instances of this type are always | ||
# kept in the system, even if there would not be workloads to them. | ||
# The default is 0. | ||
MinBalloons: 2 | ||
# PreferNewBalloons: prefer creating a new balloon for | ||
# separate pods, even if their CPU requirements would allow | ||
# putting them in the same balloon. | ||
# The default is: false. | ||
PreferNewBalloons: true | ||
# PreferPerNamespaceBalloon: if true, containers in the same | ||
# namespace are preferrably placed in the same balloon, and | ||
# containers in different namespaces to different | ||
# balloons. The default is false: namespaces have no effect on | ||
# placement. | ||
PreferPerNamespaceBalloon: false | ||
# PreferSpreadingPods: if true, containers of single pod can | ||
# be assigned in different balloons, based on which balloons | ||
# have most free CPU resources. | ||
# The default is: false: prefer running containers of a same | ||
# pod in the same balloon(s). | ||
PreferSpreadingPods: false | ||
|
||
- Name: "socket-size" | ||
MaxCPUs: 8 | ||
AllocatorPriority: 2 | ||
Namespaces: | ||
- "default" | ||
CPUClass: "normal" | ||
# CPU controller configuration specifies CPU class properties. CPUs of | ||
# each balloon are configured based on its CPUClass. If a balloon has | ||
# no CPUClass, the properties of the default class are applied. | ||
cpu: | ||
classes: | ||
default: | ||
minFreq: 800 | ||
maxFreq: 1600 | ||
turbo: | ||
minFreq: 3300 | ||
maxFreq: 3600 | ||
normal: | ||
minFreq: 800 | ||
maxFreq: 2400 | ||
instrumentation: | ||
# The balloons policy exports containers running in each balloon, | ||
# and cpusets of balloons. Accessible in command line: | ||
# curl --silent http://localhost:8891/metrics | ||
HTTPEndpoint: :8891 | ||
PrometheusExport: true | ||
logger: | ||
Debug: policy |
193 changes: 193 additions & 0 deletions
193
....3/_downloads/36c67ade35a837c924f87e006130752d/nri-resource-policy-configmap.example.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,193 @@ | ||
# | ||
# This example creates 3 ConfigMaps: | ||
# - nri-resmgr-config.default: the default configuration | ||
# - nri-resmgr-config.group.foo: the configuration for nodes in group foo | ||
# - nri-resmgr-config.node.cl0-slave1: the configuration for node cl0-slave1 | ||
# | ||
# You can assign nodes to group foo using the command | ||
# kubectl label --overwrite node $NODE_NAME nri-resmgr.intel.com/group=foo | ||
# | ||
# You can remove nodes from group foo using the command | ||
# kubectl label node $NODE_NAME nri-resmgr.intel.com/group- | ||
# | ||
|
||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: nri-resmgr-config.default | ||
namespace: kube-system | ||
data: | ||
policy: |+ | ||
Active: topology-aware | ||
AvailableResources: | ||
cpu: cpuset:0-63 | ||
ReservedResources: | ||
cpu: cpuset:0-1 | ||
topology-aware: | ||
PinCPU: true | ||
PinMemory: true | ||
PreferIsolatedCPUs: true | ||
PreferSharedCPUs: false | ||
static: | ||
RelaxedIsolation: true | ||
static-pools: | ||
# Filesystem path to legacy configuration directory structure | ||
ConfDirPath: "/etc/cmk" | ||
# Filesystem path to legacy configuration file | ||
ConfFilePath: "" | ||
# Whether to create CMK node label | ||
LabelNode: false | ||
# Whether to create CMK node taint | ||
TaintNode: false | ||
# Pool configuration. | ||
# The imaginary example system below consists of 4 sockets, 4 cores, 2 | ||
# threads each. | ||
pools: | ||
exclusive: | ||
# 6 exclusive cores, 3 on sockets 1, 2 and 3 each | ||
cpuLists: | ||
- Cpuset: 8,9 | ||
Socket: 1 | ||
- Cpuset: 10,11 | ||
Socket: 1 | ||
- Cpuset: 16,17 | ||
Socket: 2 | ||
- Cpuset: 18,19 | ||
Socket: 2 | ||
- Cpuset: 24,25 | ||
Socket: 3 | ||
- Cpuset: 26,27 | ||
Socket: 3 | ||
exclusive: true | ||
shared: | ||
# 2 cores in shared pool, all on socket 1 | ||
cpuLists: | ||
- Cpuset: 12,13,14,15 | ||
Socket: 1 | ||
exclusive: false | ||
infra: | ||
# Rest of cores designated to infra pool | ||
cpuLists: | ||
- Cpuset: 0,1,2,3,4,5,6,7 | ||
Socket: 0 | ||
- Cpuset: 20,21,22,23 | ||
Socket: 2 | ||
- Cpuset: 28,29,30,31 | ||
Socket: 3 | ||
exclusive: false | ||
--- | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
## Configuration specific to a group of nodes can be specified with | ||
#name: nri-resmgr-config.group.<node-group-label-name> | ||
namespace: kube-system | ||
data: | ||
policy: |+ | ||
Active: topology-aware | ||
AvailableResources: | ||
cpu: cpuset:0-63 | ||
ReservedResources: | ||
cpu: cpuset:0-1 | ||
topology-aware: | ||
PinCPU: true | ||
PinMemory: false | ||
PreferIsolatedCPUs: false | ||
PreferSharedCPUs: false | ||
static: | ||
RelaxedIsolation: true | ||
static-pools: | ||
# This is an example configuration for static-pools policy. | ||
# The imaginary example system here consists of 4 sockets, 4 cores, 2 threads each. | ||
pools: | ||
exclusive: | ||
# 6 exclusive cores, 3 on sockets 1, 2 and 3 each | ||
cpuLists: | ||
- Cpuset: 8,9 | ||
Socket: 1 | ||
- Cpuset: 10,11 | ||
Socket: 1 | ||
- Cpuset: 16,17 | ||
Socket: 2 | ||
- Cpuset: 18,19 | ||
Socket: 2 | ||
- Cpuset: 24,25 | ||
Socket: 3 | ||
- Cpuset: 26,27 | ||
Socket: 3 | ||
exclusive: true | ||
shared: | ||
# 2 cores in shared pool, all on socket 1 | ||
cpuLists: | ||
- Cpuset: 12,13,14,15 | ||
Socket: 1 | ||
exclusive: false | ||
infra: | ||
# Rest of cores designated to infra pool | ||
cpuLists: | ||
- Cpuset: 0,1,2,3,4,5,6,7 | ||
Socket: 0 | ||
- Cpuset: 20,21,22,23 | ||
Socket: 2 | ||
- Cpuset: 28,29,30,31 | ||
Socket: 3 | ||
exclusive: false | ||
--- | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
## Node-specific configuration can be specified with | ||
#name: nri-resmgr-config.node.<node-name> | ||
namespace: kube-system | ||
data: | ||
policy: |+ | ||
Active: topology-aware | ||
AvailableResources: | ||
cpu: cpuset:0-63 | ||
ReservedResources: | ||
cpu: cpuset:0-1 | ||
topology-aware: | ||
PinCPU: false | ||
PinMemory: true | ||
PreferIsolatedCPUs: false | ||
PreferSharedCPUs: false | ||
static: | ||
RelaxedIsolation: true | ||
static-pools: | ||
# This is an example configuration for static-pools policy. | ||
# The imaginary example system here consists of 4 sockets, 4 cores, 2 threads each. | ||
pools: | ||
exclusive: | ||
# 6 exclusive cores, 3 on sockets 1, 2 and 3 each | ||
cpuLists: | ||
- Cpuset: 8,9 | ||
Socket: 1 | ||
- Cpuset: 10,11 | ||
Socket: 1 | ||
- Cpuset: 16,17 | ||
Socket: 2 | ||
- Cpuset: 18,19 | ||
Socket: 2 | ||
- Cpuset: 24,25 | ||
Socket: 3 | ||
- Cpuset: 26,27 | ||
Socket: 3 | ||
exclusive: true | ||
shared: | ||
# 2 cores in shared pool, all on socket 1 | ||
cpuLists: | ||
- Cpuset: 12,13,14,15 | ||
Socket: 1 | ||
exclusive: false | ||
infra: | ||
# Rest of cores designated to infra pool | ||
cpuLists: | ||
- Cpuset: 0,1,2,3,4,5,6,7 | ||
Socket: 0 | ||
- Cpuset: 20,21,22,23 | ||
Socket: 2 | ||
- Cpuset: 28,29,30,31 | ||
Socket: 3 | ||
exclusive: false | ||
logger: |+ | ||
Debug: resource-manager,cache |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# Contributing | ||
|
||
Please use the GitHub\* infrastructure for contributing to NRI Plugins. | ||
Use [pull requests](https://github.com/containers/nri-plugins/pulls) | ||
to contribute code, bug fixes, or if you want to discuss your ideas in terms of | ||
code. Open [issues](https://github.com/containers/nri-plugins/issues) to | ||
report bugs, request new features, or if you want to discuss any other topics | ||
related to NRI plugins. | ||
|
||
For the actual NRI (Node Resource Interface) API, please see [NRI repository](https://github.com/containerd/nri) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Welcome to NRI Plugins documentation | ||
|
||
```{toctree} | ||
--- | ||
maxdepth: 2 | ||
caption: Contents | ||
--- | ||
introduction.md | ||
resource-policy/index.rst | ||
memory/index.md | ||
contributing.md | ||
Project GitHub repository <https://github.com/containers/nri-plugins> | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# Introduction | ||
|
||
The NRI plugins is a collection of NRI (Node Resource Interface) based plugins | ||
to manage various aspects of pod and container life cycle. | ||
For example the [resource policy plugins](resource-policy/policy/index.md) can be used to modify | ||
the container resource allocation depending on available system resources. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# Memory plugins | ||
|
||
```{toctree} | ||
--- | ||
maxdepth: 2 | ||
caption: Contents | ||
--- | ||
memory-qos.md | ||
memtierd.md | ||
``` |
Oops, something went wrong.