diff options
author | Nicolas Vollmar <nvo@scaling.ch> | 2024-05-27 13:12:54 +0200 |
---|---|---|
committer | Nicolas Vollmar <nvo@scaling.ch> | 2024-05-28 07:38:58 +0200 |
commit | 81dea053e7178b8fea836a85aacde2a38ffb9e09 (patch) | |
tree | d9b30716c422f33d3b84985baf30159a44625b53 /interface-definitions/container.xml.in | |
parent | 5146cb23fff56e5a84db8c84120b836ceeae47f2 (diff) | |
download | vyos-1x-81dea053e7178b8fea836a85aacde2a38ffb9e09.tar.gz vyos-1x-81dea053e7178b8fea836a85aacde2a38ffb9e09.zip |
T6406: add container cpu limit option
Diffstat (limited to 'interface-definitions/container.xml.in')
-rw-r--r-- | interface-definitions/container.xml.in | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/interface-definitions/container.xml.in b/interface-definitions/container.xml.in index 2296a3e9e..4370f5888 100644 --- a/interface-definitions/container.xml.in +++ b/interface-definitions/container.xml.in @@ -192,6 +192,24 @@ </leafNode> </children> </tagNode> + <leafNode name="cpus"> + <properties> + <help>This limits the number of CPU resources the container can use</help> + <valueHelp> + <format>u32:0</format> + <description>Unlimited</description> + </valueHelp> + <valueHelp> + <format>txt</format> + <description>Amount of CPU time the container can use in amount of cores (up to three decimals)</description> + </valueHelp> + <constraint> + <regex>(0|[1-9]\d*)(\.\d{1,3})?</regex> + </constraint> + <constraintErrorMessage>Container CPU limit must be a (decimal) number in range 0 to number of threads</constraintErrorMessage> + </properties> + <defaultValue>0</defaultValue> + </leafNode> <leafNode name="memory"> <properties> <help>Memory (RAM) available to this container</help> |