diff --git a/extensions/arc/src/localizedConstants.ts b/extensions/arc/src/localizedConstants.ts index 3dcd9a606d..fcb32957c5 100644 --- a/extensions/arc/src/localizedConstants.ts +++ b/extensions/arc/src/localizedConstants.ts @@ -69,7 +69,7 @@ export const addingWorkerNodes = localize('arc.addingWorkerNodes', "adding worke export const workerNodesDescription = localize('arc.workerNodesDescription', "Expand your server group and scale your database by adding worker nodes."); export const workerNodesConfigurationInformation = localize('arc.workerNodesConfigurationInformation', "You can configure the number of CPU cores and storage size that will apply to all worker nodes. Adjust the number of CPU cores and memory settings for your server group. To reset the requests and/or limits, pass in empty value."); export const coordinatorNodeConfigurationInformation = localize('arc.coordinatorNodeConfigurationInformation', "You can configure the number of CPU cores and storage size that will apply to the coordinator node. Adjust the number of CPU cores and memory settings for your server group. To reset the requests and/or limits, pass in empty value."); -export const workerNodesInformation = localize('arc.workerNodeInformation', "In preview it is not possible to reduce the number of worker nodes. Please refer to documentation linked above for more information."); +export const workerNodesInformation = localize('arc.workerNodeInformation', "It is possible to scale in and out your server group by reducing or increasing the number of worker nodes."); export const vCores = localize('arc.vCores', "vCores"); export const ram = localize('arc.ram', "RAM"); export const refresh = localize('arc.refresh', "Refresh"); diff --git a/extensions/arc/src/ui/dashboards/postgres/postgresComputeAndStoragePage.ts b/extensions/arc/src/ui/dashboards/postgres/postgresComputeAndStoragePage.ts index b96069937e..b4da2bd360 100644 --- a/extensions/arc/src/ui/dashboards/postgres/postgresComputeAndStoragePage.ts +++ b/extensions/arc/src/ui/dashboards/postgres/postgresComputeAndStoragePage.ts @@ -244,6 +244,7 @@ export class PostgresComputeAndStoragePage extends DashboardPage { // Worker node count this.workerCountBox = this.modelView.modelBuilder.inputBox().withProps({ readOnly: false, + min: 0, inputType: 'number', placeHolder: loc.loading, required: true @@ -544,7 +545,6 @@ export class PostgresComputeAndStoragePage extends DashboardPage { let scale = this._postgresModel.config?.spec.scale; this.currentConfiguration.workers = scale?.workers ?? scale?.shards ?? 0; - this.workerCountBox.min = this.currentConfiguration.workers; this.workerCountBox.placeHolder = ''; this.workerCountBox.value = this.currentConfiguration.workers.toString(); this.saveArgs.workers = undefined; diff --git a/extensions/azdata/src/azdata.ts b/extensions/azdata/src/azdata.ts index f3a44960fa..469c2f3bfc 100644 --- a/extensions/azdata/src/azdata.ts +++ b/extensions/azdata/src/azdata.ts @@ -151,7 +151,7 @@ export class AzdataTool implements azdataExt.IAzdataApi { if (args.port) { argsArray.push('--port', args.port.toString()); } if (args.replaceEngineSettings) { argsArray.push('--replace-engine-settings'); } if (args.workerEngineSettings) { argsArray.push('--worker-engine-settings', args.workerEngineSettings); } - if (args.workers) { argsArray.push('--workers', args.workers.toString()); } + if (args.workers !== undefined) { argsArray.push('--workers', args.workers.toString()); } return this.executeCommand(argsArray, additionalEnvVars, azdataContext); } }