Skip to content

Commit 29f3116

Browse files
authored
Add single node cluster examples and update description for Cosmos DB for PostgreSQL (#24256)
* Add single node cluster example * Update description for enableShardsOnCoordinator * fix prettier * Add rebalancing to custom words * Update examples * Update single node example
1 parent d283cd2 commit 29f3116

File tree

6 files changed

+458
-25
lines changed

6 files changed

+458
-25
lines changed

custom-words.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1752,6 +1752,7 @@ readwrite
17521752
realtime
17531753
reassociate
17541754
Rebalance
1755+
rebalancing
17551756
recommendedactions
17561757
reconfig
17571758
recordset
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,141 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff",
4+
"resourceGroupName": "TestGroup",
5+
"clusterName": "testcluster-burstablev1",
6+
"api-version": "2022-11-08",
7+
"parameters": {
8+
"location": "westus",
9+
"properties": {
10+
"administratorLoginPassword": "password",
11+
"postgresqlVersion": "15",
12+
"citusVersion": "11.3",
13+
"enableHa": false,
14+
"enableShardsOnCoordinator": true,
15+
"coordinatorServerEdition": "BurstableMemoryOptimized",
16+
"coordinatorStorageQuotaInMb": 131072,
17+
"coordinatorVCores": 1,
18+
"coordinatorEnablePublicIpAccess": true,
19+
"nodeCount": 0,
20+
"preferredPrimaryZone": "1"
21+
},
22+
"tags": {
23+
"owner": "JohnDoe"
24+
}
25+
}
26+
},
27+
"responses": {
28+
"200": {
29+
"body": {
30+
"id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestResourceGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/testcluster-burstablev1",
31+
"name": "testcluster-burstablev1",
32+
"type": "Microsoft.DBforPostgreSQL/serverGroupsv2",
33+
"tags": {
34+
"owner": "JohnDoe"
35+
},
36+
"location": "westus",
37+
"systemData": {
38+
"createdBy": "user1",
39+
"createdByType": "User",
40+
"createdAt": "2022-01-01T17:18:19.1234567Z",
41+
"lastModifiedBy": "user2",
42+
"lastModifiedByType": "User",
43+
"lastModifiedAt": "2022-01-02T17:18:19.1234567Z"
44+
},
45+
"properties": {
46+
"provisioningState": "Provisioning",
47+
"state": "Provisioning",
48+
"postgresqlVersion": "15",
49+
"citusVersion": "11.3",
50+
"maintenanceWindow": {
51+
"customWindow": "Disabled",
52+
"dayOfWeek": 0,
53+
"startHour": 0,
54+
"startMinute": 0
55+
},
56+
"administratorLogin": "citus",
57+
"preferredPrimaryZone": "1",
58+
"nodeCount": 0,
59+
"enableShardsOnCoordinator": true,
60+
"coordinatorServerEdition": "BurstableMemoryOptimized",
61+
"coordinatorStorageQuotaInMb": 131072,
62+
"coordinatorVCores": 1,
63+
"coordinatorEnablePublicIpAccess": true,
64+
"nodeEnablePublicIpAccess": false,
65+
"nodeServerEdition": "MemoryOptimized",
66+
"nodeStorageQuotaInMb": 131072,
67+
"nodeVCores": 2,
68+
"serverNames": [
69+
{
70+
"name": "testcluster-burstablev1-c",
71+
"fullyQualifiedDomainName": "c.testcluster-burstablev1.postgres.database.azure.com"
72+
}
73+
],
74+
"sourceResourceId": null,
75+
"enableHa": false,
76+
"readReplicas": [],
77+
"earliestRestoreTime": null,
78+
"privateEndpointConnections": []
79+
}
80+
}
81+
},
82+
"201": {
83+
"headers": {
84+
"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",
85+
"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"
86+
},
87+
"body": {
88+
"id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestResourceGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/testcluster-burstablev1",
89+
"name": "testcluster-burstablev1",
90+
"type": "Microsoft.DBforPostgreSQL/serverGroupsv2",
91+
"tags": {
92+
"owner": "JohnDoe"
93+
},
94+
"location": "westus",
95+
"systemData": {
96+
"createdBy": "user1",
97+
"createdByType": "User",
98+
"createdAt": "2022-01-01T17:18:19.1234567Z",
99+
"lastModifiedBy": "user2",
100+
"lastModifiedByType": "User",
101+
"lastModifiedAt": "2022-01-02T17:18:19.1234567Z"
102+
},
103+
"properties": {
104+
"provisioningState": "Provisioning",
105+
"state": "Provisioning",
106+
"postgresqlVersion": "15",
107+
"citusVersion": "11.3",
108+
"maintenanceWindow": {
109+
"customWindow": "Disabled",
110+
"dayOfWeek": 0,
111+
"startHour": 0,
112+
"startMinute": 0
113+
},
114+
"administratorLogin": "citus",
115+
"preferredPrimaryZone": "1",
116+
"nodeCount": 0,
117+
"enableShardsOnCoordinator": true,
118+
"coordinatorServerEdition": "BurstableMemoryOptimized",
119+
"coordinatorStorageQuotaInMb": 131072,
120+
"coordinatorVCores": 1,
121+
"coordinatorEnablePublicIpAccess": true,
122+
"nodeEnablePublicIpAccess": false,
123+
"nodeServerEdition": "MemoryOptimized",
124+
"nodeStorageQuotaInMb": 131072,
125+
"nodeVCores": 2,
126+
"serverNames": [
127+
{
128+
"name": "testcluster-burstablev1-c",
129+
"fullyQualifiedDomainName": "c.testcluster-burstablev1.postgres.database.azure.com"
130+
}
131+
],
132+
"sourceResourceId": null,
133+
"enableHa": false,
134+
"readReplicas": [],
135+
"earliestRestoreTime": null,
136+
"privateEndpointConnections": []
137+
}
138+
}
139+
}
140+
}
141+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,141 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff",
4+
"resourceGroupName": "TestGroup",
5+
"clusterName": "testcluster-burstablev2",
6+
"api-version": "2022-11-08",
7+
"parameters": {
8+
"location": "westus",
9+
"properties": {
10+
"administratorLoginPassword": "password",
11+
"postgresqlVersion": "15",
12+
"citusVersion": "11.3",
13+
"enableHa": false,
14+
"enableShardsOnCoordinator": true,
15+
"coordinatorServerEdition": "BurstableGeneralPurpose",
16+
"coordinatorStorageQuotaInMb": 131072,
17+
"coordinatorVCores": 2,
18+
"coordinatorEnablePublicIpAccess": true,
19+
"nodeCount": 0,
20+
"preferredPrimaryZone": "1"
21+
},
22+
"tags": {
23+
"owner": "JohnDoe"
24+
}
25+
}
26+
},
27+
"responses": {
28+
"200": {
29+
"body": {
30+
"id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestResourceGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/testcluster-burstablev2",
31+
"name": "testcluster-burstablev2",
32+
"type": "Microsoft.DBforPostgreSQL/serverGroupsv2",
33+
"tags": {
34+
"owner": "JohnDoe"
35+
},
36+
"location": "westus",
37+
"systemData": {
38+
"createdBy": "user1",
39+
"createdByType": "User",
40+
"createdAt": "2022-01-01T17:18:19.1234567Z",
41+
"lastModifiedBy": "user2",
42+
"lastModifiedByType": "User",
43+
"lastModifiedAt": "2022-01-02T17:18:19.1234567Z"
44+
},
45+
"properties": {
46+
"provisioningState": "Provisioning",
47+
"state": "Provisioning",
48+
"postgresqlVersion": "15",
49+
"citusVersion": "11.3",
50+
"maintenanceWindow": {
51+
"customWindow": "Disabled",
52+
"dayOfWeek": 0,
53+
"startHour": 0,
54+
"startMinute": 0
55+
},
56+
"administratorLogin": "citus",
57+
"preferredPrimaryZone": "1",
58+
"nodeCount": 0,
59+
"enableShardsOnCoordinator": true,
60+
"coordinatorServerEdition": "BurstableGeneralPurpose",
61+
"coordinatorStorageQuotaInMb": 131072,
62+
"coordinatorVCores": 2,
63+
"coordinatorEnablePublicIpAccess": true,
64+
"nodeEnablePublicIpAccess": false,
65+
"nodeServerEdition": "MemoryOptimized",
66+
"nodeStorageQuotaInMb": 131072,
67+
"nodeVCores": 2,
68+
"serverNames": [
69+
{
70+
"name": "testcluster-burstablev2-c",
71+
"fullyQualifiedDomainName": "c.testcluster-burstablev2.postgres.database.azure.com"
72+
}
73+
],
74+
"sourceResourceId": null,
75+
"enableHa": false,
76+
"readReplicas": [],
77+
"earliestRestoreTime": null,
78+
"privateEndpointConnections": []
79+
}
80+
}
81+
},
82+
"201": {
83+
"headers": {
84+
"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",
85+
"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"
86+
},
87+
"body": {
88+
"id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestResourceGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/testcluster-burstablev2",
89+
"name": "testcluster-burstablev2",
90+
"type": "Microsoft.DBforPostgreSQL/serverGroupsv2",
91+
"tags": {
92+
"owner": "JohnDoe"
93+
},
94+
"location": "westus",
95+
"systemData": {
96+
"createdBy": "user1",
97+
"createdByType": "User",
98+
"createdAt": "2022-01-01T17:18:19.1234567Z",
99+
"lastModifiedBy": "user2",
100+
"lastModifiedByType": "User",
101+
"lastModifiedAt": "2022-01-02T17:18:19.1234567Z"
102+
},
103+
"properties": {
104+
"provisioningState": "Provisioning",
105+
"state": "Provisioning",
106+
"postgresqlVersion": "15",
107+
"citusVersion": "11.3",
108+
"maintenanceWindow": {
109+
"customWindow": "Disabled",
110+
"dayOfWeek": 0,
111+
"startHour": 0,
112+
"startMinute": 0
113+
},
114+
"administratorLogin": "citus",
115+
"preferredPrimaryZone": "1",
116+
"nodeCount": 0,
117+
"enableShardsOnCoordinator": true,
118+
"coordinatorServerEdition": "BurstableGeneralPurpose",
119+
"coordinatorStorageQuotaInMb": 131072,
120+
"coordinatorVCores": 2,
121+
"coordinatorEnablePublicIpAccess": true,
122+
"nodeEnablePublicIpAccess": false,
123+
"nodeServerEdition": "MemoryOptimized",
124+
"nodeStorageQuotaInMb": 131072,
125+
"nodeVCores": 2,
126+
"serverNames": [
127+
{
128+
"name": "testcluster-burstablev2-c",
129+
"fullyQualifiedDomainName": "c.testcluster-burstablev2.postgres.database.azure.com"
130+
}
131+
],
132+
"sourceResourceId": null,
133+
"enableHa": false,
134+
"readReplicas": [],
135+
"earliestRestoreTime": null,
136+
"privateEndpointConnections": []
137+
}
138+
}
139+
}
140+
}
141+
}
Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"parameters": {
33
"subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff",
44
"resourceGroupName": "TestGroup",
5-
"clusterName": "testcluster",
5+
"clusterName": "testcluster-multinode",
66
"api-version": "2022-11-08",
77
"parameters": {
88
"location": "westus",
@@ -29,8 +29,8 @@
2929
"responses": {
3030
"200": {
3131
"body": {
32-
"id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestResourceGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/testcluster",
33-
"name": "testcluster",
32+
"id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestResourceGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/testcluster-multinode",
33+
"name": "testcluster-multinode",
3434
"type": "Microsoft.DBforPostgreSQL/serverGroupsv2",
3535
"tags": {},
3636
"location": "westus",
@@ -67,20 +67,20 @@
6767
"nodeEnablePublicIpAccess": false,
6868
"serverNames": [
6969
{
70-
"name": "testcluster-c",
71-
"fullyQualifiedDomainName": "c.testcluster.postgres.database.azure.com"
70+
"name": "testcluster-multinode-c",
71+
"fullyQualifiedDomainName": "c.testcluster-multinode.postgres.database.azure.com"
7272
},
7373
{
74-
"name": "testcluster-w0",
75-
"fullyQualifiedDomainName": "w0.testcluster.postgres.database.azure.com"
74+
"name": "testcluster-multinode-w0",
75+
"fullyQualifiedDomainName": "w0.testcluster-multinode.postgres.database.azure.com"
7676
},
7777
{
78-
"name": "testcluster-w2",
79-
"fullyQualifiedDomainName": "w0.testcluster.postgres.database.azure.com"
78+
"name": "testcluster-multinode-w2",
79+
"fullyQualifiedDomainName": "w0.testcluster-multinode.postgres.database.azure.com"
8080
},
8181
{
82-
"name": "testcluster-w3",
83-
"fullyQualifiedDomainName": "w0.testcluster.postgres.database.azure.com"
82+
"name": "testcluster-multinode-w3",
83+
"fullyQualifiedDomainName": "w0.testcluster-multinode.postgres.database.azure.com"
8484
}
8585
],
8686
"sourceResourceId": null,
@@ -97,8 +97,8 @@
9797
"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"
9898
},
9999
"body": {
100-
"id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestResourceGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/testcluster",
101-
"name": "testcluster",
100+
"id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestResourceGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/testcluster-multinode",
101+
"name": "testcluster-multinode",
102102
"type": "Microsoft.DBforPostgreSQL/serverGroupsv2",
103103
"tags": {},
104104
"location": "westus",
@@ -135,20 +135,20 @@
135135
"nodeEnablePublicIpAccess": false,
136136
"serverNames": [
137137
{
138-
"name": "testcluster-c",
139-
"fullyQualifiedDomainName": "c.testcluster.postgres.database.azure.com"
138+
"name": "testcluster-multinode-c",
139+
"fullyQualifiedDomainName": "c.testcluster-multinode.postgres.database.azure.com"
140140
},
141141
{
142-
"name": "testcluster-w0",
143-
"fullyQualifiedDomainName": "w0.testcluster.postgres.database.azure.com"
142+
"name": "testcluster-multinode-w0",
143+
"fullyQualifiedDomainName": "w0.testcluster-multinode.postgres.database.azure.com"
144144
},
145145
{
146-
"name": "testcluster-w2",
147-
"fullyQualifiedDomainName": "w0.testcluster.postgres.database.azure.com"
146+
"name": "testcluster-multinode-w2",
147+
"fullyQualifiedDomainName": "w0.testcluster-multinode.postgres.database.azure.com"
148148
},
149149
{
150-
"name": "testcluster-w3",
151-
"fullyQualifiedDomainName": "w0.testcluster.postgres.database.azure.com"
150+
"name": "testcluster-multinode-w3",
151+
"fullyQualifiedDomainName": "w0.testcluster-multinode.postgres.database.azure.com"
152152
}
153153
],
154154
"sourceResourceId": null,

0 commit comments

Comments
 (0)