From 30c7cc472af8ac25513b0435d287f2cffafad85c Mon Sep 17 00:00:00 2001 From: Elena Viter Date: Thu, 7 Dec 2023 16:36:54 +0100 Subject: [PATCH] #3174: Enable Multi-Core CPU Support for Node-RED Projects --- docker.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docker.js b/docker.js index 3273130..c6bad72 100644 --- a/docker.js +++ b/docker.js @@ -204,10 +204,10 @@ module.exports = { stack: { properties: { cpu: { - label: 'CPU Cores (%)', - validate: '^([1-9][0-9]?|100)$', - invalidMessage: 'Invalid value - must be a number between 1 and 100', - description: 'How much of a single CPU core each Project should receive' + label: 'CPU Cores (in 1/100th units)', + validate: '^([1-9][0-9]{0,2}|1000)$', + invalidMessage: 'Invalid value - must be a number between 1 and 1000, where 100 represents 1 CPU core', + description: 'Defines the CPU resources each Project should receive, in units of 1/100th of a CPU core. 100 equates to 1 CPU core' }, memory: { label: 'Memory (MB)',