Skip to content
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

cleanup device-plugin configmap #493

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 0 additions & 8 deletions charts/hami/templates/device-plugin/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,6 @@ data:
{
"nodeconfig": [
{
"name": "m5-cloudinfra-online02",
"devicememoryscaling": 1.8,
"devicesplitcount": 10,
"migstrategy":"none",
"filterdevices": {
"uuid": [],
"index": []
}
}
]
}
33 changes: 33 additions & 0 deletions docs/device-plugin-config.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# Config Device-Plugin

We provide a configuration file for the device-plugin, The configuration is a configmap.

The configuration file is a json file, and the following is an example of the configuration file:
ddd
```json
{
"nodeconfig": [
{
"name": "m5-cloudinfra-online02",
"devicememoryscaling": 1.8,
"devicesplitcount": 10,
"migstrategy":"none",
"filterdevices": {
"uuid": [],
"index": []
}
}
]
}
```

- `name`: The name of the node.
- `devicememoryscaling`: The memory scaling factor for the device of the node. The memory scaling factor is used to calculate the memory size of the device. The memory size of the device is calculated by the following formula: `memory size = memory scaling factor * device memory size`.
- `devicesplitcount`: The number of device instances that the device is split into of the node. The device instances are used to create the device resources in the device-plugin.
- `migstrategy`: The MIG strategy for the device instances. The MIG strategy can be one of the following values:
- `none`: The device is disabled for MIG.
- `single`: The device is enabled for MIG with a single instance.
- `mixed`: The device is enabled for MIG with multiple instances.
- `filterdevices`: The filter devices for the device instances. The filter devices can be one of the following values:
- `uuid`: The UUID of the device.
- `index`: The index of the device.
Loading