From 4e0a18e609be7a4037732c65315e27900a9f1342 Mon Sep 17 00:00:00 2001 From: Sena Gungor Date: Thu, 1 Jun 2023 15:29:07 +0300 Subject: [PATCH 1/6] Add single node cluster example --- ...reate.json => ClusterCreateMultiNode.json} | 42 +++--- .../examples/ClusterCreateSingleNode.json | 141 ++++++++++++++++++ .../stable/2022-11-08/postgresqlhsc.json | 7 +- 3 files changed, 167 insertions(+), 23 deletions(-) rename specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/{ClusterCreate.json => ClusterCreateMultiNode.json} (77%) create mode 100644 specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterCreateSingleNode.json diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterCreate.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterCreateMultiNode.json similarity index 77% rename from specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterCreate.json rename to specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterCreateMultiNode.json index 3b91a88eedac..db5f7a914b5d 100644 --- a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterCreate.json +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterCreateMultiNode.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", "resourceGroupName": "TestGroup", - "clusterName": "testcluster", + "clusterName": "testcluster-multinode", "api-version": "2022-11-08", "parameters": { "location": "westus", @@ -29,8 +29,8 @@ "responses": { "200": { "body": { - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestResourceGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/testcluster", - "name": "testcluster", + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestResourceGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/testcluster-multinode", + "name": "testcluster-multinode", "type": "Microsoft.DBforPostgreSQL/serverGroupsv2", "tags": {}, "location": "westus", @@ -67,20 +67,20 @@ "nodeEnablePublicIpAccess": false, "serverNames": [ { - "name": "testcluster-c", - "fullyQualifiedDomainName": "c.testcluster.postgres.database.azure.com" + "name": "testcluster-multinode-c", + "fullyQualifiedDomainName": "c.testcluster-multinode.postgres.database.azure.com" }, { - "name": "testcluster-w0", - "fullyQualifiedDomainName": "w0.testcluster.postgres.database.azure.com" + "name": "testcluster-multinode-w0", + "fullyQualifiedDomainName": "w0.testcluster-multinode.postgres.database.azure.com" }, { - "name": "testcluster-w2", - "fullyQualifiedDomainName": "w0.testcluster.postgres.database.azure.com" + "name": "testcluster-multinode-w2", + "fullyQualifiedDomainName": "w0.testcluster-multinode.postgres.database.azure.com" }, { - "name": "testcluster-w3", - "fullyQualifiedDomainName": "w0.testcluster.postgres.database.azure.com" + "name": "testcluster-multinode-w3", + "fullyQualifiedDomainName": "w0.testcluster-multinode.postgres.database.azure.com" } ], "sourceResourceId": null, @@ -97,8 +97,8 @@ "Location": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforPostgreSQL/locations/westus/operationResults/e276a03a-1770-4549-86f5-0edffae8997c?api-version=2022-11-08" }, "body": { - "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestResourceGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/testcluster", - "name": "testcluster", + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestResourceGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/testcluster-multinode", + "name": "testcluster-multinode", "type": "Microsoft.DBforPostgreSQL/serverGroupsv2", "tags": {}, "location": "westus", @@ -135,20 +135,20 @@ "nodeEnablePublicIpAccess": false, "serverNames": [ { - "name": "testcluster-c", - "fullyQualifiedDomainName": "c.testcluster.postgres.database.azure.com" + "name": "testcluster-multinode-c", + "fullyQualifiedDomainName": "c.testcluster-multinode.postgres.database.azure.com" }, { - "name": "testcluster-w0", - "fullyQualifiedDomainName": "w0.testcluster.postgres.database.azure.com" + "name": "testcluster-multinode-w0", + "fullyQualifiedDomainName": "w0.testcluster-multinode.postgres.database.azure.com" }, { - "name": "testcluster-w2", - "fullyQualifiedDomainName": "w0.testcluster.postgres.database.azure.com" + "name": "testcluster-multinode-w2", + "fullyQualifiedDomainName": "w0.testcluster-multinode.postgres.database.azure.com" }, { - "name": "testcluster-w3", - "fullyQualifiedDomainName": "w0.testcluster.postgres.database.azure.com" + "name": "testcluster-multinode-w3", + "fullyQualifiedDomainName": "w0.testcluster-multinode.postgres.database.azure.com" } ], "sourceResourceId": null, diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterCreateSingleNode.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterCreateSingleNode.json new file mode 100644 index 000000000000..8f3aade188fb --- /dev/null +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterCreateSingleNode.json @@ -0,0 +1,141 @@ +{ + "parameters": { + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "resourceGroupName": "TestGroup", + "clusterName": "testcluster-singlenode", + "api-version": "2022-11-08", + "parameters": { + "location": "westus", + "properties": { + "administratorLoginPassword": "password", + "postgresqlVersion": "15", + "citusVersion": "11.3", + "enableHa": true, + "enableShardsOnCoordinator": true, + "coordinatorServerEdition": "MemoryOptimized", + "coordinatorStorageQuotaInMb": 131072, + "coordinatorVCores": 2, + "coordinatorEnablePublicIpAccess": true, + "nodeCount": 0, + "preferredPrimaryZone": "1" + }, + "tags": { + "owner":"JohnDoe" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestResourceGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/testcluster-singlenode", + "name": "testcluster-singlenode", + "type": "Microsoft.DBforPostgreSQL/serverGroupsv2", + "tags": { + "owner": "JohnDoe" + }, + "location": "westus", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2022-01-01T17:18:19.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2022-01-02T17:18:19.1234567Z" + }, + "properties": { + "provisioningState": "Provisioning", + "state": "Provisioning", + "postgresqlVersion": "15", + "citusVersion": "11.3", + "maintenanceWindow": { + "customWindow": "Disabled", + "dayOfWeek": 0, + "startHour": 0, + "startMinute": 0 + }, + "administratorLogin": "citus", + "preferredPrimaryZone": "1", + "nodeCount": 0, + "enableShardsOnCoordinator": true, + "coordinatorServerEdition": "MemoryOptimized", + "coordinatorStorageQuotaInMb": 131072, + "coordinatorVCores": 2, + "coordinatorEnablePublicIpAccess": true, + "nodeEnablePublicIpAccess": false, + "nodeServerEdition": "MemoryOptimized", + "nodeStorageQuotaInMb": 131072, + "nodeVCores": 2, + "serverNames": [ + { + "name": "testcluster-singlenode-c", + "fullyQualifiedDomainName": "c.testcluster-singlenode.postgres.database.azure.com" + } + ], + "sourceResourceId": null, + "enableHa": true, + "readReplicas": [], + "earliestRestoreTime": null, + "privateEndpointConnections": [] + } + } + }, + "201": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforPostgreSQL/locations/westus/azureAsyncOperation/e276a03a-1770-4549-86f5-0edffae8997c?api-version=2022-11-08", + "Location": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforPostgreSQL/locations/westus/operationResults/e276a03a-1770-4549-86f5-0edffae8997c?api-version=2022-11-08" + }, + "body": { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestResourceGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/testcluster-singlenode", + "name": "testcluster-singlenode", + "type": "Microsoft.DBforPostgreSQL/serverGroupsv2", + "tags": { + "owner": "JohnDoe" + }, + "location": "westus", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2022-01-01T17:18:19.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2022-01-02T17:18:19.1234567Z" + }, + "properties": { + "provisioningState": "Provisioning", + "state": "Provisioning", + "postgresqlVersion": "15", + "citusVersion": "11.3", + "maintenanceWindow": { + "customWindow": "Disabled", + "dayOfWeek": 0, + "startHour": 0, + "startMinute": 0 + }, + "administratorLogin": "citus", + "preferredPrimaryZone": "1", + "nodeCount": 0, + "enableShardsOnCoordinator": true, + "coordinatorServerEdition": "MemoryOptimized", + "coordinatorStorageQuotaInMb": 131072, + "coordinatorVCores": 2, + "coordinatorEnablePublicIpAccess": true, + "nodeEnablePublicIpAccess": false, + "nodeServerEdition": "MemoryOptimized", + "nodeStorageQuotaInMb": 131072, + "nodeVCores": 2, + "serverNames": [ + { + "name": "testcluster-singlenode-c", + "fullyQualifiedDomainName": "c.testcluster-singlenode.postgres.database.azure.com" + } + ], + "sourceResourceId": null, + "enableHa": true, + "readReplicas": [], + "earliestRestoreTime": null, + "privateEndpointConnections": [] + } + } + } + } +} diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/postgresqlhsc.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/postgresqlhsc.json index 20cbc4a3f663..4fd69eda18c4 100644 --- a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/postgresqlhsc.json +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/postgresqlhsc.json @@ -127,8 +127,11 @@ "final-state-via": "azure-async-operation" }, "x-ms-examples": { - "Create a new cluster": { - "$ref": "./examples/ClusterCreate.json" + "Create a new single node cluster": { + "$ref": "./examples/ClusterCreateSingleNode.json" + }, + "Create a new multi-node cluster": { + "$ref": "./examples/ClusterCreateMultiNode.json" }, "Create a new cluster as a point in time restore": { "$ref": "./examples/ClusterCreatePITR.json" From 8efe21715a227b1acaedaa1a93933a096be41755 Mon Sep 17 00:00:00 2001 From: Sena Gungor Date: Thu, 1 Jun 2023 15:34:04 +0300 Subject: [PATCH 2/6] Update description for enableShardsOnCoordinator --- .../stable/2022-11-08/postgresqlhsc.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/postgresqlhsc.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/postgresqlhsc.json index 4fd69eda18c4..4d6c86339072 100644 --- a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/postgresqlhsc.json +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/postgresqlhsc.json @@ -2032,7 +2032,7 @@ }, "enableShardsOnCoordinator": { "type": "boolean", - "description": "If shards on coordinator is enabled or not for the cluster." + "description": "If distributed tables are placed on coordinator or not. Should be set to 'true' on single node clusters. Requires shard rebalancing after value is changed." }, "enableHa": { "type": "boolean", @@ -2171,7 +2171,7 @@ }, "enableShardsOnCoordinator": { "type": "boolean", - "description": "If shards on coordinator is enabled or not for the cluster." + "description": "If distributed tables are placed on coordinator or not. Should be set to 'true' on single node clusters. Requires shard rebalancing after value is changed." }, "enableHa": { "type": "boolean", From 57a1a346f5cb851b735255f89034aa6957623f42 Mon Sep 17 00:00:00 2001 From: Sena Gungor Date: Thu, 1 Jun 2023 15:43:55 +0300 Subject: [PATCH 3/6] fix prettier --- .../stable/2022-11-08/examples/ClusterCreateSingleNode.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterCreateSingleNode.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterCreateSingleNode.json index 8f3aade188fb..24c738cacb71 100644 --- a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterCreateSingleNode.json +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterCreateSingleNode.json @@ -20,7 +20,7 @@ "preferredPrimaryZone": "1" }, "tags": { - "owner":"JohnDoe" + "owner": "JohnDoe" } } }, From c7e4a1eefc7680d0e8b8292aec8a7c38c35ad4a9 Mon Sep 17 00:00:00 2001 From: Sena Gungor Date: Thu, 1 Jun 2023 15:51:30 +0300 Subject: [PATCH 4/6] Add rebalancing to custom words --- custom-words.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/custom-words.txt b/custom-words.txt index 732d17efa3df..837db2ae1a3d 100644 --- a/custom-words.txt +++ b/custom-words.txt @@ -1750,6 +1750,7 @@ readwrite realtime reassociate Rebalance +rebalancing recommendedactions reconfig recordset From 67a669b61d11ba54c15f7c7cc13fdeb1c34371bc Mon Sep 17 00:00:00 2001 From: Sena Gungor Date: Thu, 15 Jun 2023 15:37:34 +0300 Subject: [PATCH 5/6] Update examples --- .../examples/ClusterCreateBurstablev1.json | 141 ++++++++++++++++++ .../examples/ClusterCreateBurstablev2.json | 141 ++++++++++++++++++ .../examples/ClusterCreateSingleNode.json | 6 +- .../stable/2022-11-08/postgresqlhsc.json | 6 + 4 files changed, 291 insertions(+), 3 deletions(-) create mode 100644 specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterCreateBurstablev1.json create mode 100644 specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterCreateBurstablev2.json diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterCreateBurstablev1.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterCreateBurstablev1.json new file mode 100644 index 000000000000..7574448abd82 --- /dev/null +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterCreateBurstablev1.json @@ -0,0 +1,141 @@ +{ + "parameters": { + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "resourceGroupName": "TestGroup", + "clusterName": "testcluster-burstablev1", + "api-version": "2022-11-08", + "parameters": { + "location": "westus", + "properties": { + "administratorLoginPassword": "password", + "postgresqlVersion": "15", + "citusVersion": "11.3", + "enableHa": false, + "enableShardsOnCoordinator": true, + "coordinatorServerEdition": "BurstableMemoryOptimized", + "coordinatorStorageQuotaInMb": 131072, + "coordinatorVCores": 1, + "coordinatorEnablePublicIpAccess": true, + "nodeCount": 0, + "preferredPrimaryZone": "1" + }, + "tags": { + "owner": "JohnDoe" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestResourceGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/testcluster-burstablev1", + "name": "testcluster-burstablev1", + "type": "Microsoft.DBforPostgreSQL/serverGroupsv2", + "tags": { + "owner": "JohnDoe" + }, + "location": "westus", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2022-01-01T17:18:19.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2022-01-02T17:18:19.1234567Z" + }, + "properties": { + "provisioningState": "Provisioning", + "state": "Provisioning", + "postgresqlVersion": "15", + "citusVersion": "11.3", + "maintenanceWindow": { + "customWindow": "Disabled", + "dayOfWeek": 0, + "startHour": 0, + "startMinute": 0 + }, + "administratorLogin": "citus", + "preferredPrimaryZone": "1", + "nodeCount": 0, + "enableShardsOnCoordinator": true, + "coordinatorServerEdition": "BurstableMemoryOptimized", + "coordinatorStorageQuotaInMb": 131072, + "coordinatorVCores": 1, + "coordinatorEnablePublicIpAccess": true, + "nodeEnablePublicIpAccess": false, + "nodeServerEdition": "MemoryOptimized", + "nodeStorageQuotaInMb": 131072, + "nodeVCores": 2, + "serverNames": [ + { + "name": "testcluster-burstablev1-c", + "fullyQualifiedDomainName": "c.testcluster-burstablev1.postgres.database.azure.com" + } + ], + "sourceResourceId": null, + "enableHa": false, + "readReplicas": [], + "earliestRestoreTime": null, + "privateEndpointConnections": [] + } + } + }, + "201": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforPostgreSQL/locations/westus/azureAsyncOperation/e276a03a-1770-4549-86f5-0edffae8997c?api-version=2022-11-08", + "Location": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforPostgreSQL/locations/westus/operationResults/e276a03a-1770-4549-86f5-0edffae8997c?api-version=2022-11-08" + }, + "body": { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestResourceGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/testcluster-burstablev1", + "name": "testcluster-burstablev1", + "type": "Microsoft.DBforPostgreSQL/serverGroupsv2", + "tags": { + "owner": "JohnDoe" + }, + "location": "westus", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2022-01-01T17:18:19.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2022-01-02T17:18:19.1234567Z" + }, + "properties": { + "provisioningState": "Provisioning", + "state": "Provisioning", + "postgresqlVersion": "15", + "citusVersion": "11.3", + "maintenanceWindow": { + "customWindow": "Disabled", + "dayOfWeek": 0, + "startHour": 0, + "startMinute": 0 + }, + "administratorLogin": "citus", + "preferredPrimaryZone": "1", + "nodeCount": 0, + "enableShardsOnCoordinator": true, + "coordinatorServerEdition": "BurstableMemoryOptimized", + "coordinatorStorageQuotaInMb": 131072, + "coordinatorVCores": 1, + "coordinatorEnablePublicIpAccess": true, + "nodeEnablePublicIpAccess": false, + "nodeServerEdition": "MemoryOptimized", + "nodeStorageQuotaInMb": 131072, + "nodeVCores": 2, + "serverNames": [ + { + "name": "testcluster-burstablev1-c", + "fullyQualifiedDomainName": "c.testcluster-burstablev1.postgres.database.azure.com" + } + ], + "sourceResourceId": null, + "enableHa": false, + "readReplicas": [], + "earliestRestoreTime": null, + "privateEndpointConnections": [] + } + } + } + } +} diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterCreateBurstablev2.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterCreateBurstablev2.json new file mode 100644 index 000000000000..fce71f6b1a5b --- /dev/null +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterCreateBurstablev2.json @@ -0,0 +1,141 @@ +{ + "parameters": { + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "resourceGroupName": "TestGroup", + "clusterName": "testcluster-burstablev2", + "api-version": "2022-11-08", + "parameters": { + "location": "westus", + "properties": { + "administratorLoginPassword": "password", + "postgresqlVersion": "15", + "citusVersion": "11.3", + "enableHa": false, + "enableShardsOnCoordinator": true, + "coordinatorServerEdition": "BurstableGeneralPurpose", + "coordinatorStorageQuotaInMb": 131072, + "coordinatorVCores": 2, + "coordinatorEnablePublicIpAccess": true, + "nodeCount": 0, + "preferredPrimaryZone": "1" + }, + "tags": { + "owner": "JohnDoe" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestResourceGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/testcluster-burstablev2", + "name": "testcluster-burstablev2", + "type": "Microsoft.DBforPostgreSQL/serverGroupsv2", + "tags": { + "owner": "JohnDoe" + }, + "location": "westus", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2022-01-01T17:18:19.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2022-01-02T17:18:19.1234567Z" + }, + "properties": { + "provisioningState": "Provisioning", + "state": "Provisioning", + "postgresqlVersion": "15", + "citusVersion": "11.3", + "maintenanceWindow": { + "customWindow": "Disabled", + "dayOfWeek": 0, + "startHour": 0, + "startMinute": 0 + }, + "administratorLogin": "citus", + "preferredPrimaryZone": "1", + "nodeCount": 0, + "enableShardsOnCoordinator": true, + "coordinatorServerEdition": "BurstableGeneralPurpose", + "coordinatorStorageQuotaInMb": 131072, + "coordinatorVCores": 2, + "coordinatorEnablePublicIpAccess": true, + "nodeEnablePublicIpAccess": false, + "nodeServerEdition": "MemoryOptimized", + "nodeStorageQuotaInMb": 131072, + "nodeVCores": 2, + "serverNames": [ + { + "name": "testcluster-burstablev2-c", + "fullyQualifiedDomainName": "c.testcluster-burstablev2.postgres.database.azure.com" + } + ], + "sourceResourceId": null, + "enableHa": false, + "readReplicas": [], + "earliestRestoreTime": null, + "privateEndpointConnections": [] + } + } + }, + "201": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforPostgreSQL/locations/westus/azureAsyncOperation/e276a03a-1770-4549-86f5-0edffae8997c?api-version=2022-11-08", + "Location": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforPostgreSQL/locations/westus/operationResults/e276a03a-1770-4549-86f5-0edffae8997c?api-version=2022-11-08" + }, + "body": { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestResourceGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/testcluster-burstablev2", + "name": "testcluster-burstablev2", + "type": "Microsoft.DBforPostgreSQL/serverGroupsv2", + "tags": { + "owner": "JohnDoe" + }, + "location": "westus", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2022-01-01T17:18:19.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2022-01-02T17:18:19.1234567Z" + }, + "properties": { + "provisioningState": "Provisioning", + "state": "Provisioning", + "postgresqlVersion": "15", + "citusVersion": "11.3", + "maintenanceWindow": { + "customWindow": "Disabled", + "dayOfWeek": 0, + "startHour": 0, + "startMinute": 0 + }, + "administratorLogin": "citus", + "preferredPrimaryZone": "1", + "nodeCount": 0, + "enableShardsOnCoordinator": true, + "coordinatorServerEdition": "BurstableGeneralPurpose", + "coordinatorStorageQuotaInMb": 131072, + "coordinatorVCores": 2, + "coordinatorEnablePublicIpAccess": true, + "nodeEnablePublicIpAccess": false, + "nodeServerEdition": "MemoryOptimized", + "nodeStorageQuotaInMb": 131072, + "nodeVCores": 2, + "serverNames": [ + { + "name": "testcluster-burstablev2-c", + "fullyQualifiedDomainName": "c.testcluster-burstablev2.postgres.database.azure.com" + } + ], + "sourceResourceId": null, + "enableHa": false, + "readReplicas": [], + "earliestRestoreTime": null, + "privateEndpointConnections": [] + } + } + } + } +} diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterCreateSingleNode.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterCreateSingleNode.json index 24c738cacb71..e03949033eb5 100644 --- a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterCreateSingleNode.json +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterCreateSingleNode.json @@ -12,7 +12,7 @@ "citusVersion": "11.3", "enableHa": true, "enableShardsOnCoordinator": true, - "coordinatorServerEdition": "MemoryOptimized", + "coordinatorServerEdition": "GeneralPurpose", "coordinatorStorageQuotaInMb": 131072, "coordinatorVCores": 2, "coordinatorEnablePublicIpAccess": true, @@ -57,7 +57,7 @@ "preferredPrimaryZone": "1", "nodeCount": 0, "enableShardsOnCoordinator": true, - "coordinatorServerEdition": "MemoryOptimized", + "coordinatorServerEdition": "GeneralPurpose", "coordinatorStorageQuotaInMb": 131072, "coordinatorVCores": 2, "coordinatorEnablePublicIpAccess": true, @@ -115,7 +115,7 @@ "preferredPrimaryZone": "1", "nodeCount": 0, "enableShardsOnCoordinator": true, - "coordinatorServerEdition": "MemoryOptimized", + "coordinatorServerEdition": "GeneralPurpose", "coordinatorStorageQuotaInMb": 131072, "coordinatorVCores": 2, "coordinatorEnablePublicIpAccess": true, diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/postgresqlhsc.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/postgresqlhsc.json index 4d6c86339072..ba1673ba9ed0 100644 --- a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/postgresqlhsc.json +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/postgresqlhsc.json @@ -133,6 +133,12 @@ "Create a new multi-node cluster": { "$ref": "./examples/ClusterCreateMultiNode.json" }, + "Create a new single node Burstable 1 vCore cluster": { + "$ref": "./examples/ClusterCreateBurstablev1.json" + }, + "Create a new single node Burstable 2 vCores cluster": { + "$ref": "./examples/ClusterCreateBurstablev2.json" + }, "Create a new cluster as a point in time restore": { "$ref": "./examples/ClusterCreatePITR.json" }, From 4d50e03203fbc8b524a3a13cbcc29ed483460118 Mon Sep 17 00:00:00 2001 From: Sena Gungor Date: Thu, 15 Jun 2023 16:17:11 +0300 Subject: [PATCH 6/6] Update single node example --- .../2022-11-08/examples/ClusterCreateSingleNode.json | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterCreateSingleNode.json b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterCreateSingleNode.json index e03949033eb5..f7199475929a 100644 --- a/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterCreateSingleNode.json +++ b/specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/examples/ClusterCreateSingleNode.json @@ -14,7 +14,7 @@ "enableShardsOnCoordinator": true, "coordinatorServerEdition": "GeneralPurpose", "coordinatorStorageQuotaInMb": 131072, - "coordinatorVCores": 2, + "coordinatorVCores": 8, "coordinatorEnablePublicIpAccess": true, "nodeCount": 0, "preferredPrimaryZone": "1" @@ -59,12 +59,12 @@ "enableShardsOnCoordinator": true, "coordinatorServerEdition": "GeneralPurpose", "coordinatorStorageQuotaInMb": 131072, - "coordinatorVCores": 2, + "coordinatorVCores": 8, "coordinatorEnablePublicIpAccess": true, "nodeEnablePublicIpAccess": false, "nodeServerEdition": "MemoryOptimized", "nodeStorageQuotaInMb": 131072, - "nodeVCores": 2, + "nodeVCores": 8, "serverNames": [ { "name": "testcluster-singlenode-c", @@ -117,12 +117,12 @@ "enableShardsOnCoordinator": true, "coordinatorServerEdition": "GeneralPurpose", "coordinatorStorageQuotaInMb": 131072, - "coordinatorVCores": 2, + "coordinatorVCores": 8, "coordinatorEnablePublicIpAccess": true, "nodeEnablePublicIpAccess": false, "nodeServerEdition": "MemoryOptimized", "nodeStorageQuotaInMb": 131072, - "nodeVCores": 2, + "nodeVCores": 8, "serverNames": [ { "name": "testcluster-singlenode-c",