From 5ff4282a25545a5b77925bc2379a71745cbfc069 Mon Sep 17 00:00:00 2001 From: Jerry Morey Date: Thu, 20 Jan 2022 08:40:57 -0500 Subject: [PATCH] default ncpus to vcpu_count this supports scheduling to all vcpus on HT VMs and does not impact non-HT VMs --- generate_autoscale_json.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/generate_autoscale_json.sh b/generate_autoscale_json.sh index 0b751dc..1a98282 100755 --- a/generate_autoscale_json.sh +++ b/generate_autoscale_json.sh @@ -89,7 +89,7 @@ temp_autoscale=$TEMP/autoscale.json.$(date +%s) --lock-file $INSTALLDIR/scalelib.lock \ --log-config $INSTALLDIR/logging.conf \ --disable-default-resources \ - --default-resource '{"select": {}, "name": "ncpus", "value": "node.pcpu_count"}' \ + --default-resource '{"select": {}, "name": "ncpus", "value": "node.vcpu_count"}' \ --default-resource '{"select": {}, "name": "ngpus", "value": "node.gpu_count"}' \ --default-resource '{"select": {}, "name": "disk", "value": "size::20g"}' \ --default-resource '{"select": {}, "name": "host", "value": "node.hostname"}' \ @@ -102,4 +102,4 @@ temp_autoscale=$TEMP/autoscale.json.$(date +%s) > $temp_autoscale && mv $temp_autoscale $INSTALLDIR/autoscale.json ) || (rm -f $temp_autoscale.json; exit 1) echo testing that we can connect to CycleCloud... -azpbs connect && echo success! || (echo Please check the arguments passed in and try again && exit 1) \ No newline at end of file +azpbs connect && echo success! || (echo Please check the arguments passed in and try again && exit 1)