Skip to content

Commit

Permalink
Add single node cluster examples and update description for Cosmos DB…
Browse files Browse the repository at this point in the history
… for PostgreSQL (Azure#24256)

* Add single node cluster example

* Update description for enableShardsOnCoordinator

* fix prettier

* Add rebalancing to custom words

* Update examples

* Update single node example
  • Loading branch information
senatol authored and harryli0108 committed Jul 28, 2023
1 parent 954dffa commit 78e3d5f
Show file tree
Hide file tree
Showing 6 changed files with 458 additions and 25 deletions.
1 change: 1 addition & 0 deletions custom-words.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1752,6 +1752,7 @@ readwrite
realtime
reassociate
Rebalance
rebalancing
recommendedactions
reconfig
recordset
Expand Down
Original file line number Diff line number Diff line change
@@ -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": []
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -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": []
}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",
Expand Down Expand Up @@ -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,
Expand All @@ -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",
Expand Down Expand Up @@ -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,
Expand Down
Loading

0 comments on commit 78e3d5f

Please sign in to comment.